Skip to content

Commit

Permalink
fix: don't resolve "weights" on SkinnedMeshRenderer, that's a glTF co…
Browse files Browse the repository at this point in the history
…re property
  • Loading branch information
hybridherbst committed Jan 10, 2023
1 parent 70218b9 commit 96fad0b
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,16 @@ public void Resolve(GLTFSceneExporter exporter)
case Camera camera:
reg.path = "/cameras/" + id + "/" + reg.propertyBinding;
break;
case SkinnedMeshRenderer smr:
if (smr && reg.propertyBinding == "weights")
{
reg.path = "/nodes/" + id + "/" + reg.propertyBinding;
break;
}
goto ResolveComponent;
case Component comp:
case GameObject g:
ResolveComponent:
reg.path = "/nodes/" + id + "/" + reg.propertyBinding;
var componentPath = reg.path;

Expand Down

0 comments on commit 96fad0b

Please sign in to comment.