[Bf-blender-cvs] [821ecbe805b] master: UI: make Save Custom Studio Light pop-ups less wide
Yevgeny Makarov
noreply at git.blender.org
Sun Mar 1 16:22:36 CET 2020
Commit: 821ecbe805b49ea1a19c95e9352be66d29509c69
Author: Yevgeny Makarov
Date: Sun Mar 1 16:09:52 2020 +0100
Branches: master
https://developer.blender.org/rB821ecbe805b49ea1a19c95e9352be66d29509c69
UI: make Save Custom Studio Light pop-ups less wide
Differential Revision: https://developer.blender.org/D6977
===================================================================
M release/scripts/startup/bl_operators/userpref.py
===================================================================
diff --git a/release/scripts/startup/bl_operators/userpref.py b/release/scripts/startup/bl_operators/userpref.py
index b1bd879efa5..f78ee026927 100644
--- a/release/scripts/startup/bl_operators/userpref.py
+++ b/release/scripts/startup/bl_operators/userpref.py
@@ -1040,7 +1040,7 @@ class PREFERENCES_OT_studiolight_new(Operator):
if os.path.isfile(filepath_final):
if not self.ask_overide:
self.ask_overide = True
- return wm.invoke_props_dialog(self, width=600)
+ return wm.invoke_props_dialog(self, width=320)
else:
for studio_light in prefs.studio_lights:
if studio_light.name == filename:
@@ -1066,7 +1066,7 @@ class PREFERENCES_OT_studiolight_new(Operator):
def invoke(self, context, _event):
wm = context.window_manager
- return wm.invoke_props_dialog(self, width=600)
+ return wm.invoke_props_dialog(self, width=320)
class PREFERENCES_OT_studiolight_uninstall(Operator):
More information about the Bf-blender-cvs
mailing list