Skip to content
Snippets Groups Projects
Commit c0e9f36e authored by Antonio Vazquez's avatar Antonio Vazquez
Browse files

Fix T52020: Archimesh autohole not working

The boolean modifier was created but was removed later.

This remove is not necessary.
parent be067588
No related branches found
No related tags found
No related merge requests found
...@@ -135,11 +135,12 @@ class AchmHoleAction(Operator): ...@@ -135,11 +135,12 @@ class AchmHoleAction(Operator):
else: else:
child.scale.y = 1 child.scale.y = 1
# add boolean modifier # add boolean modifier
if isboolean(context.object, child) is False: if isboolean(myroom, child) is False:
set_modifier_boolean(context.object, child) set_modifier_boolean(myroom, child)
except: except:
# print("Unexpected error:" + str(sys.exc_info())) # print("Unexpected error:" + str(sys.exc_info()))
pass pass
# --------------------------------------- # ---------------------------------------
# Now add the modifiers to baseboard # Now add the modifiers to baseboard
# --------------------------------------- # ---------------------------------------
...@@ -154,11 +155,6 @@ class AchmHoleAction(Operator): ...@@ -154,11 +155,6 @@ class AchmHoleAction(Operator):
set_modifier_boolean(mybaseboard, obj) set_modifier_boolean(mybaseboard, obj)
except: except:
pass pass
# Clear empty booleans
for mod in mybaseboard.modifiers:
if mod.type == 'BOOLEAN':
if mod.object is None:
bpy.ops.object.modifier_remove(modifier=mod.name)
# --------------------------------------- # ---------------------------------------
# Now add the modifiers to shell # Now add the modifiers to shell
...@@ -180,12 +176,7 @@ class AchmHoleAction(Operator): ...@@ -180,12 +176,7 @@ class AchmHoleAction(Operator):
set_modifier_boolean(myshell, obj) set_modifier_boolean(myshell, obj)
except: except:
pass pass
# Clear empty booleans
for mod in myshell.modifiers:
if mod.type == 'BOOLEAN':
if mod.object is None:
bpy.ops.object.modifier_remove(modifier=mod.name)
return {'FINISHED'} return {'FINISHED'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment