sunrize 1.7.3 → 1.7.4

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.7.3",
4
+ "version": "1.7.4",
5
5
  "description": "A Multi-Platform X3D Editor",
6
6
  "main": "src/main.js",
7
7
  "bin": {
@@ -1676,7 +1676,7 @@ module .exports = class OutlineView extends Interface
1676
1676
  {
1677
1677
  function truncate (string, n)
1678
1678
  {
1679
- return string .length > n ? string .slice (0, n - 1) + "..." : string;
1679
+ return string .length > n ? string .slice (0, n) + "..." : string;
1680
1680
  };
1681
1681
 
1682
1682
  const description = fieldElement .attr ("description");
@@ -31,7 +31,7 @@ module .exports = new class Panel extends Interface
31
31
 
32
32
  this .container .on ("mousedown", event => this .onmousedown (event));
33
33
 
34
- this .browser .getBrowserOptions () ._ColorSpace .addFieldCallback ("Panel", () => this .setNode (this .node));
34
+ this .browser .getBrowserOptions () ._ColorSpace .addFieldCallback ("Panel", () => this .updateNode ());
35
35
 
36
36
  this .setup ();
37
37
  }
@@ -750,7 +750,7 @@ module .exports = new class Panel extends Interface
750
750
  {
751
751
  function truncate (string, n)
752
752
  {
753
- return string .length > n ? string .slice (0, n - 1) + "..." : string;
753
+ return string .length > n ? string .slice (0, n) + "..." : string;
754
754
  };
755
755
 
756
756
  const description = fieldElement .attr ("description");
@@ -176,7 +176,7 @@ class X3DNodeTool extends X3DBaseTool
176
176
 
177
177
  createTool (scene, protoName)
178
178
  {
179
- this .tool = scene .createProto (protoName);
179
+ this .tool = scene .protos .get (protoName) .createInstance (this .getExecutionContext ());
180
180
 
181
181
  this .tool .getValue () .setPrivate (true);
182
182