Skip to content

Commit

Permalink
Don't display empty morph targets (#15998)
Browse files Browse the repository at this point in the history
  • Loading branch information
Popov72 authored Dec 16, 2024
1 parent 506d020 commit 2461571
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,10 @@ export class MeshPropertyGridComponent extends React.Component<

if (mesh.morphTargetManager) {
for (let index = 0; index < mesh.morphTargetManager.numTargets; index++) {
morphTargets.push(mesh.morphTargetManager.getTarget(index));
const target = mesh.morphTargetManager.getTarget(index);
if (target.hasPositions) {
morphTargets.push(target);
}
}
}

Expand Down

0 comments on commit 2461571

Please sign in to comment.