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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-15 18:55:28 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-15 19:05:28 +0300
commit8c37a7fe4a81e89c2400d4264b7fea8e89b56638 (patch)
tree6a21e76f5821b1f1f734f294c6a875211c48a159 /archipack
parent467303ba70d6f406a1942321f1962d2ce2491928 (diff)
Update for object add align property changes
Diffstat (limited to 'archipack')
-rw-r--r--archipack/archipack_thumbs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archipack/archipack_thumbs.py b/archipack/archipack_thumbs.py
index 46d01543..3cdbee64 100644
--- a/archipack/archipack_thumbs.py
+++ b/archipack/archipack_thumbs.py
@@ -37,7 +37,7 @@ def create_lamp(context, loc):
bpy.ops.object.light_add(
type='POINT',
radius=1,
- view_align=False,
+ align='WORLD',
location=loc)
lamp = context.active_object
lamp.data.use_nodes = True
@@ -47,7 +47,7 @@ def create_lamp(context, loc):
def create_camera(context, loc, rot):
bpy.ops.object.camera_add(
- view_align=True,
+ align='VIEW',
enter_editmode=False,
location=loc,
rotation=rot)
@@ -159,7 +159,7 @@ def generateThumb(context, cls, preset, engine):
# add plane
bpy.ops.mesh.primitive_plane_add(
size=1000,
- view_align=False,
+ align='WORLD',
enter_editmode=False,
location=(0, 0, 0)
)