From 0f751c7e7d3dbffc9ee3d91b647010915e6529d7 Mon Sep 17 00:00:00 2001 From: Pratik Borhade Date: Wed, 13 Mar 2024 09:48:45 +0100 Subject: [PATCH] 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 --- source/blender/animrig/intern/bone_collections.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/animrig/intern/bone_collections.cc b/source/blender/animrig/intern/bone_collections.cc index 26ecbffd303..dd044869ec3 100644 --- a/source/blender/animrig/intern/bone_collections.cc +++ b/source/blender/animrig/intern/bone_collections.cc @@ -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] :