浏览代码

fix lighting bug when adding mesh

Trevor Baron 7 年之前
父节点
当前提交
dd605691ab
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/babylon.scene.ts

+ 1 - 0
src/babylon.scene.ts

@@ -2221,6 +2221,7 @@
             if (this.collisionCoordinator) {
                 this.collisionCoordinator.onMeshAdded(newMesh);
             }
+            newMesh._resyncLightSources();
 
             this.onNewMeshAddedObservable.notifyObservers(newMesh);
         }