fix dragging out from block children not working

This commit is contained in:
csd4ni3l
2025-12-07 12:11:35 +01:00
parent f51260d94f
commit fe7b42ec40

View File

@@ -338,6 +338,7 @@ class RuleUI(arcade.gui.UIAnchorLayout):
def remove_from_parent(self, block_to_remove, parents): def remove_from_parent(self, block_to_remove, parents):
for parent in parents: for parent in parents:
if block_to_remove in parent.children: if block_to_remove in parent.children:
self.rulesets[block_to_remove.rule_num] = block_to_remove
parent.children.remove(block_to_remove) parent.children.remove(block_to_remove)
return True return True
if self.remove_from_parent(block_to_remove, parent.children): if self.remove_from_parent(block_to_remove, parent.children):