Fix: Crash When Dragging Other Object Types into Bone Collection List #118393

Merged
Harley Acheson merged 1 commits from Harley/blender:BoneCollectionDragObject into blender-v4.1-release 2024-02-16 18:20:45 +01:00
1 changed files with 4 additions and 0 deletions

View File

@ -99,6 +99,10 @@ class BoneCollectionDropTarget : public TreeViewItemDropTarget {
bool can_drop(const wmDrag &drag, const char **r_disabled_hint) const override
{
if (drag.type != WM_DRAG_BONE_COLLECTION) {
return false;
}
const ArmatureBoneCollection *drag_arm_bcoll = static_cast<const ArmatureBoneCollection *>(
drag.poin);