Browse Source

Added easy access to the demo scene loaded

Gwenaël Hagenmuller 11 years ago
parent
commit
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>