Explorar o código

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

Adam Bowman %!s(int64=8) %!d(string=hai) anos
pai
achega
1ebe0ee35d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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{