Close inspector embed mode to false


#1

Hi,

When you open the inspector in the detach mode and click on the closing icon, not all of them close and it produces strange things.

  • Click on the closing of the inspector
  • Then click on the scene that produces a second problem.

https://www.babylonjs-playground.com/#WFIVT3


#2

Definitely a bug…I’m on it


#3

Fixed and published


#4

Thanks


#5

I have another problem, but I do not reproduce on the PG. When I click on this icon:

2018-12-18%2000_53_24-Greenshot

That closes the inspector as if I click on the closing cross. I have his mistakes there in the console :

TypeError: Cannot read property ‘FIRST’ of undefined
at new t (babylon.inspector.bundle.js?1545090694:1)
at Bo (babylon.inspector.bundle.js?1545090694:31)
at ia (babylon.inspector.bundle.js?1545090694:31)
at ua (babylon.inspector.bundle.js?1545090694:31)
at Ya (babylon.inspector.bundle.js?1545090694:31)
at Wa (babylon.inspector.bundle.js?1545090694:31)
at Ti (babylon.inspector.bundle.js?1545090694:31)
at ki (babylon.inspector.bundle.js?1545090694:31)
at Bi (babylon.inspector.bundle.js?1545090694:31)
at wn (babylon.inspector.bundle.js?1545090694:31)
va @ babylon.inspector.bundle.js?1545090694:31
babylon.inspector.bundle.js?1545090694:31

Uncaught TypeError: Cannot read property ‘FIRST’ of undefined
at new t (babylon.inspector.bundle.js?1545090694:1)
at Bo (babylon.inspector.bundle.js?1545090694:31)
at ia (babylon.inspector.bundle.js?1545090694:31)
at ua (babylon.inspector.bundle.js?1545090694:31)
at Ya (babylon.inspector.bundle.js?1545090694:31)
at Wa (babylon.inspector.bundle.js?1545090694:31)
at Ti (babylon.inspector.bundle.js?1545090694:31)
at ki (babylon.inspector.bundle.js?1545090694:31)
at Bi (babylon.inspector.bundle.js?1545090694:31)
at wn (babylon.inspector.bundle.js?1545090694:31)

When I click on the other icons, I do not have this problem, it’s only on the last ‘Tools’.


#6

Ok I think I know why. You are not referencing the gltf loader and the Inspector assumed you did.
I’ve just pushed a fix. Tell me if it works (will be in next nightly)


#7

Yes it works now.

Thank you so much