浏览代码

Added easy access to the demo scene loaded

Gwenaël Hagenmuller 11 年之前
父节点
当前提交
6b697694f7

+ 2 - 0
Tools/BuildOurOwnBabylonJS/BuildOurOwnBabylonJSServer/Views/BabylonJSDemo/Index.cshtml

@@ -17,6 +17,8 @@
 
             // Launch render loop
             scene.getEngine().runRenderLoop(renderLoop);
+
+            OURBABYLON.currentScene = scene;
         });
     });
 </script>