mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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:
parent
c926b65132
commit
b1636bc781
2 changed files with 8 additions and 33 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue