Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Leger <stephen@3dservices.ch>2017-08-03 16:59:40 +0300
committerStephen Leger <stephen@3dservices.ch>2017-08-04 06:13:39 +0300
commit00b84551cf7798c402508bce9458a2ed2ca1fc77 (patch)
tree786d56eb32024f5fa2a6c84f12afbcc7a1e824e2 /archipack/archipack_manipulator.py
parent83e5b12b75643ea5f71a5de40533d82d9179ab2a (diff)
archipack: thumb generator to replace static thumbs, revert _preset to preset according to talk with ideasman42
Diffstat (limited to 'archipack/archipack_manipulator.py')
-rw-r--r--archipack/archipack_manipulator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archipack/archipack_manipulator.py b/archipack/archipack_manipulator.py
index c96af62a..034507d8 100644
--- a/archipack/archipack_manipulator.py
+++ b/archipack/archipack_manipulator.py
@@ -2094,7 +2094,7 @@ class ARCHIPACK_OT_manipulate(Operator):
return res
def invoke(self, context, event):
- if context.space_data.type == 'VIEW_3D':
+ if context.space_data is not None and context.space_data.type == 'VIEW_3D':
context.window_manager.modal_handler_add(self)
return {'RUNNING_MODAL'}
else:
@@ -2213,7 +2213,7 @@ class Manipulable():
# take care of context switching
# when call from outside of 3d view
- if context.space_data.type != 'VIEW_3D':
+ if context.space_data is not None and context.space_data.type != 'VIEW_3D':
for window in bpy.context.window_manager.windows:
screen = window.screen
for area in screen.areas: