sunrize 2.1.4 → 2.1.5
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.1.
|
|
4
|
+
"version": "2.1.5",
|
|
5
5
|
"description": "Sunrize — A Multi-Platform X3D Editor",
|
|
6
6
|
"main": "src/main.js",
|
|
7
7
|
"bin": {
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"@vscode/codicons": "^0.0.45",
|
|
97
97
|
"capitalize": "^2.0.4",
|
|
98
98
|
"console": "^0.7.2",
|
|
99
|
-
"electron": "
|
|
99
|
+
"electron": "42.3.3",
|
|
100
100
|
"electron-prompt": "^1.7.0",
|
|
101
101
|
"electron-squirrel-startup": "^1.0.1",
|
|
102
102
|
"electron-tabs": "^1.0.4",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"tweakpane": "^4.0.5",
|
|
117
117
|
"update-electron-app": "^3.2.0",
|
|
118
118
|
"x_ite": "^15.1.2",
|
|
119
|
-
"x_ite-off-parser": "^1.0.
|
|
119
|
+
"x_ite-off-parser": "^1.0.6",
|
|
120
120
|
"x3d-traverse": "^2.0.1"
|
|
121
121
|
}
|
|
122
122
|
}
|
|
@@ -397,7 +397,7 @@ class X3DNodeTool extends X3DBaseTool
|
|
|
397
397
|
}
|
|
398
398
|
catch
|
|
399
399
|
{
|
|
400
|
-
this .#initialValues .set (name, this .tool .getField (name) .copy ());
|
|
400
|
+
this .#initialValues .set (name, this .tool .getValue () .getField (name) .copy ());
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
}
|
|
@@ -429,7 +429,7 @@ class X3DNodeTool extends X3DBaseTool
|
|
|
429
429
|
}
|
|
430
430
|
catch
|
|
431
431
|
{
|
|
432
|
-
const value = this .tool .getField (name) .copy ();
|
|
432
|
+
const value = this .tool .getValue () .getField (name) .copy ();
|
|
433
433
|
|
|
434
434
|
switch (value .getType ())
|
|
435
435
|
{
|
|
@@ -470,7 +470,8 @@ class X3DNodeTool extends X3DBaseTool
|
|
|
470
470
|
return bbox;
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
-
|
|
473
|
+
toolPointing = true;
|
|
474
|
+
nodePush = false;
|
|
474
475
|
|
|
475
476
|
isNodeTraversable (type)
|
|
476
477
|
{
|
|
@@ -486,13 +487,16 @@ class X3DNodeTool extends X3DBaseTool
|
|
|
486
487
|
{
|
|
487
488
|
case X3D .TraverseType .POINTER:
|
|
488
489
|
{
|
|
489
|
-
if (this .
|
|
490
|
+
if (this .toolPointing)
|
|
490
491
|
break;
|
|
491
492
|
|
|
492
493
|
return;
|
|
493
494
|
}
|
|
494
495
|
}
|
|
495
496
|
|
|
497
|
+
if (this .nodePush)
|
|
498
|
+
this .node .push (renderObject);
|
|
499
|
+
|
|
496
500
|
renderObject .getHAnimNode () .push (null);
|
|
497
501
|
renderObject .getSensors () .push (X3DNodeTool .#sensors);
|
|
498
502
|
|
|
@@ -501,6 +505,9 @@ class X3DNodeTool extends X3DBaseTool
|
|
|
501
505
|
|
|
502
506
|
renderObject .getSensors () .pop ();
|
|
503
507
|
renderObject .getHAnimNode () .pop ();
|
|
508
|
+
|
|
509
|
+
if (this .nodePush)
|
|
510
|
+
this .node .pop (renderObject);
|
|
504
511
|
}
|
|
505
512
|
|
|
506
513
|
// Destruction
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict"
|
|
2
|
+
|
|
3
|
+
const
|
|
4
|
+
X3DBoundedObjectTool = require ("../Grouping/X3DBoundedObjectTool"),
|
|
5
|
+
ToolColors = require ("../Core/ToolColors");
|
|
6
|
+
|
|
7
|
+
class ViewportTool extends X3DBoundedObjectTool
|
|
8
|
+
{
|
|
9
|
+
toolBBoxColor = ToolColors .DARK_GREEN;
|
|
10
|
+
nodePush = true;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
module .exports = ViewportTool;
|