diff options
author | Vilém Duha <vilda.novak@gmail.com> | 2021-01-28 15:59:29 +0300 |
---|---|---|
committer | Vilém Duha <vilda.novak@gmail.com> | 2021-01-28 15:59:47 +0300 |
commit | 2afbdc806e23fbd0ee8aedddafab6eb84b3cccb3 (patch) | |
tree | 2da648c1c86a9840e2ea3b09ed5f4fb1f2824a53 /blenderkit/autothumb.py | |
parent | 4b6ee68c00f1400e2d9824d46ac0ef6c747b5510 (diff) |
BlederKit: fix snapping with particles
Now the snap also ignores particles.
Also fix a case if user didn't fill a name in profile, now it draws at least users email.
Diffstat (limited to 'blenderkit/autothumb.py')
-rw-r--r-- | blenderkit/autothumb.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/blenderkit/autothumb.py b/blenderkit/autothumb.py index da6e6d29..2a649427 100644 --- a/blenderkit/autothumb.py +++ b/blenderkit/autothumb.py @@ -17,7 +17,7 @@ # ##### END GPL LICENSE BLOCK ##### -from blenderkit import paths, utils, bg_blender +from blenderkit import paths, utils, bg_blender, ui_panels import tempfile, os, subprocess, json, sys @@ -262,13 +262,10 @@ class GenerateThumbnailOperator(bpy.types.Operator): def invoke(self, context, event): wm = context.window_manager if bpy.data.filepath == '': - title = "Can't render thumbnail" - message = "please save your file first" + ui_panels.ui_message( + title = "Can't render thumbnail", + message = "please save your file first") - def draw_message(self, context): - self.layout.label(text=message) - - bpy.context.window_manager.popup_menu(draw_message, title=title, icon='INFO') return {'FINISHED'} return wm.invoke_props_dialog(self) |