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 /object_carver
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 'object_carver')
-rw-r--r--object_carver/carver_operator.py6
-rw-r--r--object_carver/carver_utils.py8
2 files changed, 7 insertions, 7 deletions
diff --git a/object_carver/carver_operator.py b/object_carver/carver_operator.py
index 95fa4af0..880f6491 100644
--- a/object_carver/carver_operator.py
+++ b/object_carver/carver_operator.py
@@ -1196,7 +1196,7 @@ class CARVER_OT_operator(bpy.types.Operator):
for mb in ActiveObj.modifiers:
if (mb.type == 'BOOLEAN') and (mb.name == BMname):
try:
- bpy.ops.object.modifier_apply(apply_as='DATA', modifier=BMname)
+ bpy.ops.object.modifier_apply(modifier=BMname)
except:
bpy.ops.object.modifier_remove(modifier=BMname)
exc_type, exc_value, exc_traceback = sys.exc_info()
@@ -1208,7 +1208,7 @@ class CARVER_OT_operator(bpy.types.Operator):
for mb in self.CurrentObj.modifiers:
if (mb.type == 'SOLIDIFY') and (mb.name == "CT_SOLIDIFY"):
try:
- bpy.ops.object.modifier_apply(apply_as='DATA', modifier="CT_SOLIDIFY")
+ bpy.ops.object.modifier_apply(modifier="CT_SOLIDIFY")
except:
exc_type, exc_value, exc_traceback = sys.exc_info()
self.report({'ERROR'}, str(exc_value))
@@ -1243,7 +1243,7 @@ class CARVER_OT_operator(bpy.types.Operator):
for mb in ActiveObj.modifiers:
if (mb.type == 'BOOLEAN') and (mb.name == BMname):
try:
- bpy.ops.object.modifier_apply(apply_as='DATA', modifier=BMname)
+ bpy.ops.object.modifier_apply(modifier=BMname)
except:
bpy.ops.object.modifier_remove(modifier=BMname)
exc_type, exc_value, exc_traceback = sys.exc_info()
diff --git a/object_carver/carver_utils.py b/object_carver/carver_utils.py
index 495aa1ce..1bd7455f 100644
--- a/object_carver/carver_utils.py
+++ b/object_carver/carver_utils.py
@@ -695,7 +695,7 @@ def boolean_operation(bool_type="DIFFERENCE"):
ActiveObj = bpy.context.active_object
sel_index = 0 if bpy.context.selected_objects[0] != bpy.context.active_object else 1
- # bpy.ops.object.modifier_apply(apply_as='DATA', modifier="CT_SOLIDIFY")
+ # bpy.ops.object.modifier_apply(modifier="CT_SOLIDIFY")
bool_name = "CT_" + bpy.context.selected_objects[sel_index].name
BoolMod = ActiveObj.modifiers.new(bool_name, "BOOLEAN")
BoolMod.object = bpy.context.selected_objects[sel_index]
@@ -736,14 +736,14 @@ def Rebool(context, self):
if self.ObjectBrush or self.ProfileBrush:
rebool_obj.show_in_front = False
try:
- bpy.ops.object.modifier_apply(apply_as='DATA', modifier="CT_SOLIDIFY")
+ bpy.ops.object.modifier_apply(modifier="CT_SOLIDIFY")
except:
exc_type, exc_value, exc_traceback = sys.exc_info()
self.report({'ERROR'}, str(exc_value))
if self.dont_apply_boolean is False:
try:
- bpy.ops.object.modifier_apply(apply_as='DATA', modifier="CT_INTERSECT")
+ bpy.ops.object.modifier_apply(modifier="CT_INTERSECT")
except:
exc_type, exc_value, exc_traceback = sys.exc_info()
self.report({'ERROR'}, str(exc_value))
@@ -758,7 +758,7 @@ def Rebool(context, self):
target_obj.select_set(True)
if self.dont_apply_boolean is False:
try:
- bpy.ops.object.modifier_apply(apply_as='DATA', modifier="CT_DIFFERENCE")
+ bpy.ops.object.modifier_apply(modifier="CT_DIFFERENCE")
except:
exc_type, exc_value, exc_traceback = sys.exc_info()
self.report({'ERROR'}, str(exc_value))