diff options
-rw-r--r-- | release/scripts/startup/bl_ui/space_node.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py index 939102bc11b..0f926e596de 100644 --- a/release/scripts/startup/bl_ui/space_node.py +++ b/release/scripts/startup/bl_ui/space_node.py @@ -676,7 +676,12 @@ def node_draw_tree_view(_layout, _context): # Adapt properties editor panel to display in node editor. We have to # copy the class rather than inherit due to the way bpy registration works. def node_panel(cls): - node_cls = type('NODE_' + cls.__name__, cls.__bases__, dict(cls.__dict__)) + node_cls_dict = cls.__dict__.copy() + + # Needed for re-registration. + node_cls_dict.pop("bl_rna", None) + + node_cls = type('NODE_' + cls.__name__, cls.__bases__, node_cls_dict) node_cls.bl_space_type = 'NODE_EDITOR' node_cls.bl_region_type = 'UI' |