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:
authorAlexander Gavrilov <angavrilov@gmail.com>2020-07-15 11:37:16 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2020-07-15 11:37:16 +0300
commit38dfced7bba68b38b17322c0ea2acf18f27c1804 (patch)
treeb30ca5aa47294619d317748ce7d002df3e160659 /mesh_bsurfaces.py
parent19a666fb7f097ee8963223775d15da297f20e7fb (diff)
Fix T78864: the apply_as parameter of modifier_apply was removed.
Explicitly specifying DATA was redundant anyway, as that was the default.
Diffstat (limited to 'mesh_bsurfaces.py')
-rw-r--r--mesh_bsurfaces.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesh_bsurfaces.py b/mesh_bsurfaces.py
index c0c7a4f9..9e7f7a59 100644
--- a/mesh_bsurfaces.py
+++ b/mesh_bsurfaces.py
@@ -1660,7 +1660,7 @@ class MESH_OT_SURFSK_add_surface(Operator):
shrinkwrap_modifier.wrap_method = "NEAREST_VERTEX"
shrinkwrap_modifier.target = self.main_object
- bpy.ops.object.modifier_apply('INVOKE_REGION_WIN', apply_as='DATA', modifier=shrinkwrap_modifier.name)
+ bpy.ops.object.modifier_apply('INVOKE_REGION_WIN', modifier=shrinkwrap_modifier.name)
# Make list with verts of original mesh as index and coords as value
main_object_verts_coords = []
@@ -4010,7 +4010,7 @@ class CURVE_OT_SURFSK_reorder_splines(Operator):
bpy.ops.object.modifier_add('INVOKE_REGION_WIN', type='SHRINKWRAP')
curves_duplicate_2.modifiers["Shrinkwrap"].wrap_method = "NEAREST_VERTEX"
curves_duplicate_2.modifiers["Shrinkwrap"].target = GP_strokes_mesh
- bpy.ops.object.modifier_apply('INVOKE_REGION_WIN', apply_as='DATA', modifier='Shrinkwrap')
+ bpy.ops.object.modifier_apply('INVOKE_REGION_WIN', modifier='Shrinkwrap')
# Get the distance of each vert from its original position to its position with Shrinkwrap
nearest_points_coords = {}