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 /mesh_bsurfaces.py
parent467303ba70d6f406a1942321f1962d2ce2491928 (diff)
Update for object add align property changes
Diffstat (limited to 'mesh_bsurfaces.py')
-rw-r--r--mesh_bsurfaces.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesh_bsurfaces.py b/mesh_bsurfaces.py
index b126371a..78ccfe4d 100644
--- a/mesh_bsurfaces.py
+++ b/mesh_bsurfaces.py
@@ -3507,7 +3507,7 @@ class GPENCIL_OT_SURFSK_init(Operator):
if not context.scene.bsurfaces.SURFSK_use_annotation and bs.SURFSK_object_with_strokes == None:
bpy.ops.object.select_all('INVOKE_REGION_WIN', action='DESELECT')
- bpy.ops.object.gpencil_add(radius=1.0, view_align=False, location=(0.0, 0.0, 0.0), rotation=(0.0, 0.0, 0.0), type='EMPTY')
+ bpy.ops.object.gpencil_add(radius=1.0, align='WORLD', location=(0.0, 0.0, 0.0), rotation=(0.0, 0.0, 0.0), type='EMPTY')
bpy.context.scene.tool_settings.gpencil_stroke_placement_view3d = 'SURFACE'
gpencil_object = bpy.context.scene.objects[bpy.context.scene.objects[-1].name]
gpencil_object.select_set(True)