Blender changed use_quit_dialog
into use_save_prompt
This commit is contained in:
parent
352fe239f2
commit
60d1fbff50
@ -129,7 +129,12 @@ def silently_quit_blender():
|
|||||||
# Backward compatibility with Blender < 2.80
|
# Backward compatibility with Blender < 2.80
|
||||||
prefs = bpy.context.user_preferences
|
prefs = bpy.context.user_preferences
|
||||||
|
|
||||||
prefs.view.use_quit_dialog = False
|
try:
|
||||||
|
prefs.view.use_save_prompt = False
|
||||||
|
except AttributeError:
|
||||||
|
# Backward compatibility with Blender < 2.80
|
||||||
|
prefs.view.use_quit_dialog = False
|
||||||
|
|
||||||
bpy.ops.wm.quit_blender()
|
bpy.ops.wm.quit_blender()
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user