io_scene_3ds: Added light radius, distance and attenuation #104817
@ -98,6 +98,7 @@ else:
|
|||||||
addon_prefs = context.preferences.addons[__package__].preferences
|
addon_prefs = context.preferences.addons[__package__].preferences
|
||||||
|
|
||||||
if addon_prefs.show_overlays and sun_props.show_north:
|
if addon_prefs.show_overlays and sun_props.show_north:
|
||||||
|
if _north_handle is None:
|
||||||
_north_handle = bpy.types.SpaceView3D.draw_handler_add(north_draw, (), 'WINDOW', 'POST_VIEW')
|
_north_handle = bpy.types.SpaceView3D.draw_handler_add(north_draw, (), 'WINDOW', 'POST_VIEW')
|
||||||
elif _north_handle is not None:
|
elif _north_handle is not None:
|
||||||
bpy.types.SpaceView3D.draw_handler_remove(_north_handle, 'WINDOW')
|
bpy.types.SpaceView3D.draw_handler_remove(_north_handle, 'WINDOW')
|
||||||
|
Loading…
Reference in New Issue
Block a user