@xeokit/xeokit-sdk 2.6.1 → 2.6.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeokit/xeokit-sdk",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "description": "Web Programming Toolkit for 3D/2D BIM and AEC Graphics",
5
5
  "module": "./dist/xeokit-sdk.es.js",
6
6
  "main": "./dist/xeokit-sdk.cjs.js",
@@ -532,7 +532,7 @@ function loadNode(ctx, node, depth, matrix) {
532
532
  meshCfg.opacity = 1.0;
533
533
  }
534
534
 
535
- const backfaces = ((ctx.backfaces !== false) || (material.doubleSided !== false));
535
+ const backfaces = ((ctx.backfaces !== false) || (material && material.doubleSided !== false));
536
536
 
537
537
  switch (primitive.mode) {
538
538
  case 0: // POINTS
@@ -66,7 +66,7 @@ export class SceneModelTransform {
66
66
  _addChildTransform(childTransform) {
67
67
  this._childTransforms.push(childTransform);
68
68
  childTransform._parentTransform = this;
69
- childTransform._setWorldMatrixDirty();
69
+ childTransform._transformDirty();
70
70
  childTransform._setAABBDirty();
71
71
  }
72
72