File tree Expand file tree Collapse file tree 8 files changed +25
-8
lines changed Expand file tree Collapse file tree 8 files changed +25
-8
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ class NTPCompositorOperator(NTP_Operator):
2424 compositor_name : bpy .props .StringProperty (name = "Node Group" )
2525 is_scene : bpy .props .BoolProperty (name = "Is Scene" , description = "Blender stores compositing node trees differently for scenes and in groups" )
2626
27- def __init__ (self ):
28- super ().__init__ ()
27+ def __init__ (self , * args , ** kwargs ):
28+ super ().__init__ (* args , ** kwargs )
2929 self ._node_infos = node_settings
3030 for name in COMP_OP_RESERVED_NAMES :
3131 self ._used_vars [name ] = 0
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ class NTPCompositorPanel(Panel):
1111 bl_context = ''
1212 bl_category = "NodeToPython"
1313
14+ def __init__ (self , * args , ** kwargs ):
15+ super ().__init__ (* args , ** kwargs )
16+
1417 @classmethod
1518 def poll (cls , context ):
1619 return True
Original file line number Diff line number Diff line change @@ -23,8 +23,9 @@ class NTPGeoNodesOperator(NTP_Operator):
2323
2424 geo_nodes_group_name : bpy .props .StringProperty (name = "Node Group" )
2525
26- def __init__ (self ):
27- super ().__init__ ()
26+ def __init__ (self , * args , ** kwargs ):
27+ super ().__init__ (* args , ** kwargs )
28+
2829 self ._node_infos = node_settings
2930 for name in GEO_OP_RESERVED_NAMES :
3031 self ._used_vars [name ] = 0
Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ class NTPGeoNodesPanel(Panel):
1212 bl_context = ''
1313 bl_category = "NodeToPython"
1414
15+ def __init__ (self , * args , ** kwargs ):
16+ super ().__init__ (* args , ** kwargs )
17+
1518 @classmethod
1619 def poll (cls , context ):
1720 return True
Original file line number Diff line number Diff line change @@ -64,8 +64,8 @@ class NTP_Operator(Operator):
6464 bpy .types .NodeTreeInterfaceSocketTexture
6565 }
6666
67- def __init__ (self ):
68- super ().__init__ ()
67+ def __init__ (self , * args , ** kwargs ):
68+ super ().__init__ (* args , ** kwargs )
6969
7070 # Write functions after nodes are mostly initialized and linked up
7171 self ._write_after_links : list [Callable ] = []
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ class NTPOptions(bpy.types.PropertyGroup):
44 """
55 Property group used during conversion of node group to python
66 """
7+
8+ def __init__ (self , * args , ** kwargs ):
9+ super ().__init__ (* args , ** kwargs )
10+
711 # General properties
812 mode : bpy .props .EnumProperty (
913 name = "Mode" ,
@@ -170,6 +174,9 @@ class NTPOptionsPanel(bpy.types.Panel):
170174 bl_context = ''
171175 bl_category = "NodeToPython"
172176
177+ def __init__ (self , * args , ** kwargs ):
178+ super ().__init__ (* args , ** kwargs )
179+
173180 @classmethod
174181 def poll (cls , context ):
175182 return True
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ class NTPShaderOperator(NTP_Operator):
2121 #TODO: add option for general shader node groups
2222 material_name : bpy .props .StringProperty (name = "Node Group" )
2323
24- def __init__ (self ):
25- super ().__init__ ()
24+ def __init__ (self , * args , ** kwargs ):
25+ super ().__init__ (* args , ** kwargs )
2626 self ._node_infos = node_settings
2727 for name in SHADER_OP_RESERVED_NAMES :
2828 self ._used_vars [name ] = 0
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ class NTPShaderPanel(Panel):
1111 bl_context = ''
1212 bl_category = "NodeToPython"
1313
14+ def __init__ (self , * args , ** kwargs ):
15+ super ().__init__ (* args , ** kwargs )
16+
1417 @classmethod
1518 def poll (cls , context ):
1619 return True
You can’t perform that action at this time.
0 commit comments