Procházet zdrojové kódy

fix light gizmo update

Cedric Guillemet před 5 roky
rodič
revize
2a79fb8fb4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) {