Fix #119362: Bone collection visibility when moved to root collection
When bone collection is moved to root collection by drag-drop, visibility of dropped collection is lost. This is due to missing flags for the root bone collection which cleared `BONE_COLLECTION_ANCESTORS_VISIBLE` flag of dropped bcol. Pull Request: https://projects.blender.org/blender/blender/pulls/119366
This commit is contained in:
parent
0b19f1f4a0
commit
0f751c7e7d
|
@ -1314,6 +1314,7 @@ int armature_bonecoll_move_to_parent(bArmature *armature,
|
|||
BoneCollection armature_root;
|
||||
armature_root.child_count = armature->collection_root_count;
|
||||
armature_root.child_index = 0;
|
||||
armature_root.flags = default_flags;
|
||||
|
||||
BoneCollection *from_parent = from_parent_index >= 0 ?
|
||||
armature->collection_array[from_parent_index] :
|
||||
|
|
Loading…
Reference in New Issue