Fix: Remove header socket along with panel
If panel has boolean header socket, deleting this panel won't remove its boolean socket. Now Handled this case in `NODE_OT_interface_item_remove`. Pull Request: https://projects.blender.org/blender/blender/pulls/135430
This commit is contained in:
committed by
Pratik Borhade
parent
e7778593f8
commit
ac9a7ca0b8
@@ -440,6 +440,11 @@ class NODE_OT_interface_item_remove(NodeInterfaceOperator, Operator):
|
||||
item = interface.active
|
||||
|
||||
if item:
|
||||
if item.item_type == 'PANEL':
|
||||
child = item.interface_items
|
||||
if child and child[0].is_panel_toggle:
|
||||
panel_toggle = item.interface_items[0]
|
||||
interface.remove(panel_toggle)
|
||||
interface.remove(item)
|
||||
interface.active_index = min(interface.active_index, len(interface.items_tree) - 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user