sunrize 2.0.10 → 2.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sunrize",
3
3
  "productName": "Sunrize X3D Editor",
4
- "version": "2.0.10",
4
+ "version": "2.0.11",
5
5
  "description": "Sunrize — A Multi-Platform X3D Editor",
6
6
  "main": "src/main.js",
7
7
  "bin": {
@@ -48,6 +48,7 @@
48
48
  "PLY",
49
49
  "STL",
50
50
  "SVG",
51
+ "VRM",
51
52
  "VRML",
52
53
  "Wavefront-OBJ",
53
54
  "WebGL",
@@ -92,7 +93,7 @@
92
93
  "@vscode/codicons": "^0.0.45",
93
94
  "capitalize": "^2.0.4",
94
95
  "console": "^0.7.2",
95
- "electron": "^41.0.3",
96
+ "electron": "^41.1.0",
96
97
  "electron-prompt": "^1.7.0",
97
98
  "electron-squirrel-startup": "^1.0.1",
98
99
  "electron-tabs": "^1.0.4",
@@ -111,7 +112,7 @@
111
112
  "string-similarity": "^4.0.4",
112
113
  "tweakpane": "^4.0.5",
113
114
  "update-electron-app": "^3.1.2",
114
- "x_ite": "^14.1.0",
115
+ "x_ite": "^14.1.2",
115
116
  "x3d-traverse": "^1.0.22"
116
117
  }
117
118
  }
@@ -328,7 +328,7 @@ module .exports = class OutlineEditor extends OutlineRouteGraph
328
328
  },
329
329
  {
330
330
  label: _("Fold InlineGeometry Back into Scene"),
331
- enabled: node .checkLoadState () === X3D .X3DConstants .COMPLETE_STATE && !!node .getGeometry (),
331
+ enabled: node .checkLoadState () === X3D .X3DConstants .COMPLETE_STATE && !!$.try (() => node .getInnerNode ()),
332
332
  args: ["foldInlineGeometryBackIntoScene", element .attr ("id"), executionContext .getId (), node .getId ()],
333
333
  });
334
334
 
@@ -1624,7 +1624,7 @@ module .exports = class OutlineEditor extends OutlineRouteGraph
1624
1624
 
1625
1625
  const
1626
1626
  rootNodes = executionContext .rootNodes .copy (),
1627
- nodesToExport = [inlineGeometryNode .getGeometry ()],
1627
+ nodesToExport = [inlineGeometryNode .getInnerNode ()],
1628
1628
  x3dSyntax = await Editor .exportX3D (inlineGeometryNode .getInternalScene (), nodesToExport),
1629
1629
  nodes = await Editor .importX3D (executionContext, x3dSyntax),
1630
1630
  geometryNode = nodes [0];
@@ -303,8 +303,8 @@ module .exports = class Editor
303
303
 
304
304
  const
305
305
  nodes = [... executionContext .rootNodes] .slice (rootNodes .length) .map (n => n ?.getValue ()),
306
- newExternProtos = [... executionContext .externprotos] .slice (externprotos .size),
307
- newProtos = [... executionContext .protos] .slice (protos .size),
306
+ newExternProtos = [... executionContext .externprotos] .slice (externprotos .length),
307
+ newProtos = [... executionContext .protos] .slice (protos .length),
308
308
  updatedExternProtos = new Map (),
309
309
  updatedProtos = new Map (),
310
310
  removedProtoNodes = new Set ();