sunrize 1.8.4 → 1.8.6
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": "1.8.
|
|
4
|
+
"version": "1.8.6",
|
|
5
5
|
"description": "A Multi-Platform X3D Editor",
|
|
6
6
|
"main": "src/main.js",
|
|
7
7
|
"bin": {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"dependencies": {
|
|
91
91
|
"capitalize": "^2.0.4",
|
|
92
92
|
"console": "^0.7.2",
|
|
93
|
-
"electron": "^
|
|
93
|
+
"electron": "^36.2.0",
|
|
94
94
|
"electron-prompt": "^1.7.0",
|
|
95
95
|
"electron-squirrel-startup": "^1.0.1",
|
|
96
96
|
"electron-tabs": "^1.0.4",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"string-similarity": "^4.0.4",
|
|
110
110
|
"tweakpane": "^3.1.10",
|
|
111
111
|
"update-electron-app": "^3.1.1",
|
|
112
|
-
"x_ite": "^11.5.
|
|
112
|
+
"x_ite": "^11.5.7",
|
|
113
113
|
"x3d-traverse": "^1.0.12"
|
|
114
114
|
}
|
|
115
115
|
}
|
|
@@ -23,9 +23,9 @@ Object .assign (Object .setPrototypeOf (Switch .prototype, X3D .Switch .prototyp
|
|
|
23
23
|
|
|
24
24
|
this .getBrowser () .addBrowserEvent ();
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
addChild (childNode)
|
|
27
27
|
{
|
|
28
|
-
X3D .Switch .prototype .
|
|
28
|
+
X3D .Switch .prototype .addChild .call (this, this .editChild ?.getTool () ?? this .editChild ?? childNode);
|
|
29
29
|
},
|
|
30
30
|
});
|
|
31
31
|
|
|
@@ -23,9 +23,9 @@ Object .assign (Object .setPrototypeOf (LOD .prototype, X3D .LOD .prototype),
|
|
|
23
23
|
|
|
24
24
|
this .getBrowser () .addBrowserEvent ();
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
addChild (childNode)
|
|
27
27
|
{
|
|
28
|
-
X3D .LOD .prototype .
|
|
28
|
+
X3D .LOD .prototype .addChild .call (this, this .editChild ?.getTool () ?? this .editChild ?? childNode);
|
|
29
29
|
},
|
|
30
30
|
});
|
|
31
31
|
|
|
@@ -458,12 +458,15 @@ module .exports = class OutlineEditor extends OutlineRouteGraph
|
|
|
458
458
|
}
|
|
459
459
|
case X3D .X3DConstants .X3DPrototypeInstance:
|
|
460
460
|
{
|
|
461
|
+
if (!$.try (() => node .getInnerNode ()))
|
|
462
|
+
continue;
|
|
463
|
+
|
|
461
464
|
menu .push ({
|
|
462
465
|
label: _("Unwrap Inner Node"),
|
|
463
466
|
args: ["unwrapInnerNode", element .attr ("id"), executionContext .getId (), node .getId ()],
|
|
464
467
|
});
|
|
465
468
|
|
|
466
|
-
if (
|
|
469
|
+
if (node .getInnerNode () .getType () .includes (X3D .X3DConstants .X3DChildNode))
|
|
467
470
|
continue;
|
|
468
471
|
|
|
469
472
|
// Proceed with next case:
|
|
@@ -1943,7 +1946,7 @@ module .exports = class OutlineEditor extends OutlineRouteGraph
|
|
|
1943
1946
|
parentNode = this .getNode (parentNodeElement),
|
|
1944
1947
|
parentField = parentFieldElement .hasClass ("scene") ? parentNode .rootNodes : this .getField (parentFieldElement),
|
|
1945
1948
|
node = this .objects .get (nodeId),
|
|
1946
|
-
x3dSyntax = await Editor .exportX3D (this .executionContext, [node]),
|
|
1949
|
+
x3dSyntax = await Editor .exportX3D (this .executionContext, [node .getInnerNode ()]),
|
|
1947
1950
|
importedNodes = await Editor .importX3D (this .executionContext, x3dSyntax),
|
|
1948
1951
|
innerNode = importedNodes [0],
|
|
1949
1952
|
index = parseInt (element .attr ("index"));
|