Ver código fonte

fix light gizmo update

Cedric Guillemet 5 anos atrás
pai
commit
2a79fb8fb4
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Gizmos/gizmo.ts

+ 1 - 1
src/Gizmos/gizmo.ts

@@ -161,7 +161,7 @@ export class Gizmo implements IDisposable {
         if (!this._attachedNode) {
             return;
         }
-        if (this._attachedNode.getClassName() === "Mesh" || this._attachedNode.getClassName() === "TransformNode") {
+        if (this._attachedNode.getClassName() === "Mesh" || this._attachedNode.getClassName() === "AbstractMesh" ||this._attachedNode.getClassName() === "TransformNode") {
             var transform = this._attachedNode as TransformNode;
             var transformQuaternion = new Quaternion(0, 0, 0, 1);
             if (transform.parent) {