Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion dna_viewer/builder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ def add_joints(self) -> None:
joints = self._add_joints()

if self.config.group_by_lod and joints:
cmds.parent(joints[0].name, self.config.get_top_level_group())
for joint in joints:
if joint.name == joint.parent_name:
cmds.parent(joint.name, self.config.get_top_level_group())
break

def create_groups(self) -> None:
"""
Expand Down