Fix #118769: Remove parent parameter from new_panel function
Nested panels are not supported currently, and this parameter serves no actual purposes. Only the root panel supports adding child panels and it is not user-accessible (adding the root panel is done using a nullptr for the parent). Pull Request: https://projects.blender.org/blender/blender/pulls/118792
This commit is contained in:
@@ -272,13 +272,6 @@ class NodeGroupInterfaceTests:
|
||||
self.assertSequenceEqual([s.name for s in group_node.inputs], ["Input 0", "Input 1"])
|
||||
self.assertSequenceEqual([s.name for s in group_node.outputs], ["Output 0", "Output 1"])
|
||||
|
||||
# Nested panel is not allowed and should return None.
|
||||
panel1 = tree.interface.new_panel("Panel 1", parent=panel0)
|
||||
self.assertIsNone(panel1)
|
||||
self.assertSequenceEqual(tree.interface.items_tree, [out0, in0, panel0, out1, in1])
|
||||
self.assertSequenceEqual([s.name for s in group_node.inputs], ["Input 0", "Input 1"])
|
||||
self.assertSequenceEqual([s.name for s in group_node.outputs], ["Output 0", "Output 1"])
|
||||
|
||||
def do_test_remove(self, socket_type):
|
||||
tree, group_node = self.make_group_and_instance()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user