File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import bpy
12from bl_ui .space_node import NODE_HT_header , NODE_MT_editor_menus
23from .material import lux_mat_template_ID
34
@@ -188,10 +189,12 @@ def lux_node_header_draw(panel, context):
188189
189190 # Snap
190191 row = layout .row (align = True )
191- row .prop (tool_settings , "use_snap" , text = "" )
192- row .prop (tool_settings , "snap_node_element" , icon_only = True )
193- if tool_settings .snap_node_element != 'GRID' :
194- row .prop (tool_settings , "snap_target" , text = "" )
192+ row .prop (tool_settings , "use_snap_node" , text = "" )
193+ if bpy .app .version < (4 , 4 , 0 ):
194+ # snap_node_element was removed in Blender 4.4
195+ row .prop (tool_settings , "snap_node_element" , icon_only = True )
196+ if tool_settings .snap_node_element != 'GRID' :
197+ row .prop (tool_settings , "snap_target" , text = "" )
195198
196199
197200def lux_draw_switch (panel , context ):
You can’t perform that action at this time.
0 commit comments