소스 검색

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

Adam Bowman 8 년 전
부모
커밋
1ebe0ee35d
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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{