MiguelCastillo / scenic

Scene graph
MIT License
4 stars 0 forks source link

Default to the info tab when a skinned-mesh doesn't have animation #11

Open MiguelCastillo opened 2 years ago

MiguelCastillo commented 2 years ago

When we select a skinned-mesh node in the scene tree, we will default to the animation tab. But if the skinned-mesh does not have animation then no tab is selected. Let's default to the info tab in those cases.

MiguelCastillo commented 2 years ago

One way to reproduce this issue is by changing jedi-star-fighter.json to be skinned-mesh and use use that file by changing skinning-mesh-animation-dancing-character.json to jedi-star-fighter.json

I ran into the issue because I had loaded the default scene (skinning-mesh-animation-dancing-character.json) which loads the dancing character. And loaded up the jedi start fighter (which does not have animation) by choosing a different resource in the info panel.

Screen Shot 2022-05-01 at 9 23 14 PM