Pārlūkot izejas kodu

fixed issue with Ray.attachToMesh not setting direction and origin when Ray.detachFromMesh is called before the scene is rendered

Adam Bowman 8 gadi atpakaļ
vecāks
revīzija
1ebe0ee35d
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      src/Culling/babylon.ray.ts

+ 2 - 0
src/Culling/babylon.ray.ts

@@ -393,6 +393,8 @@
                 this._attachedToMesh.getScene().registerBeforeRender(this._updateToMeshFunction);
             }
 
+            this._updateToMesh();
+
         }
 
         public detachFromMesh(): void{