Преглед изворни кода

refresh the inspector when the scene is loaded

Adam Bowman пре 8 година
родитељ
комит
ca0b0c079b
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      Playground/js/index.js

+ 3 - 0
Playground/js/index.js

@@ -399,6 +399,9 @@
                 if(scene){
                     if(showInspector){
                         scene.debugLayer.show({initialTab:initialTabIndex});
+                        scene.executeWhenReady(function(){
+                            scene.debugLayer._inspector.refresh();
+                        })
                     }else if(showDebugLayer){
                         scene.debugLayer.show();
                     }