File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+ import bpy
1
2
from bl_ui .space_node import NODE_HT_header , NODE_MT_editor_menus
2
3
from .material import lux_mat_template_ID
3
4
@@ -188,10 +189,12 @@ def lux_node_header_draw(panel, context):
188
189
189
190
# Snap
190
191
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 = "" )
195
198
196
199
197
200
def lux_draw_switch (panel , context ):
You can’t perform that action at this time.
0 commit comments