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:
authorSpivak Vladimir (cwolf3d) <cwolf3d@gmail.com>2019-10-13 16:37:14 +0300
committerSpivak Vladimir (cwolf3d) <cwolf3d@gmail.com>2019-10-13 16:37:14 +0300
commit33a0a0b7a8eac7e601605a02f978b253d1db543a (patch)
tree8039b43f3522558aa76e2cc35e8097f2d1da495b /mesh_bsurfaces.py
parentb60a0302f5d3eb9a371ffd59645fc1a5bec49e83 (diff)
Addon: BSurfaces: Fixed bug
Diffstat (limited to 'mesh_bsurfaces.py')
-rw-r--r--mesh_bsurfaces.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/mesh_bsurfaces.py b/mesh_bsurfaces.py
index 9e9ae09d..731acb68 100644
--- a/mesh_bsurfaces.py
+++ b/mesh_bsurfaces.py
@@ -20,7 +20,7 @@
bl_info = {
"name": "Bsurfaces GPL Edition",
"author": "Eclectiel, Spivak Vladimir(cwolf3d)",
- "version": (1, 7, 1),
+ "version": (1, 7, 2),
"blender": (2, 80, 0),
"location": "View3D EditMode > Sidebar > Edit Tab",
"description": "Modeling and retopology tool",
@@ -3502,7 +3502,8 @@ class GPENCIL_OT_SURFSK_init(Operator):
bs = bpy.context.scene.bsurfaces
- bpy.ops.object.mode_set('INVOKE_REGION_WIN', mode='OBJECT')
+ if bpy.ops.object.mode_set.poll():
+ bpy.ops.object.mode_set('INVOKE_REGION_WIN', mode='OBJECT')
global global_color
global global_offset
@@ -3567,7 +3568,9 @@ class GPENCIL_OT_SURFSK_init(Operator):
bpy.context.scene.tool_settings.annotation_stroke_placement_view3d = 'SURFACE'
if context.scene.bsurfaces.SURFSK_guide == 'Curve':
- bpy.data.objects[global_mesh_object].data.vertices.add(1)
+ #bpy.data.objects[global_mesh_object].data.vertices.add(1)
+ if bpy.ops.object.mode_set.poll():
+ bpy.ops.object.mode_set('INVOKE_REGION_WIN', mode='EDIT')
return {"FINISHED"}