Skip to content

Commit

Permalink
fix(entity): Fix duplicate linked for hierarchy
Browse files Browse the repository at this point in the history
closes #1080
  • Loading branch information
AndreyYashkin committed Apr 1, 2024
1 parent eaf6d86 commit 8ca3fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blenderproc/python/types/EntityUtility.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def duplicate(self, duplicate_children: bool = True, linked: bool = False) -> "E

if duplicate_children:
for child in self.get_children():
duplicate_child = child.duplicate(duplicate_children=duplicate_children)
duplicate_child = child.duplicate(duplicate_children=duplicate_children, linked=linked)
duplicate_child.set_parent(duplicate_obj)

duplicate_child.blender_obj.matrix_basis = child.blender_obj.matrix_basis.copy()
Expand Down

0 comments on commit 8ca3fd5

Please sign in to comment.