浏览代码

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{