diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2017-07-13 14:37:55 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2017-07-13 14:38:25 +0300 |
commit | c0e9f36eb97eb8763053475e8eeb269e67a6c413 (patch) | |
tree | 916eadefef5309a72122070ffd6376a08df70e45 /archimesh | |
parent | be06758806159fa4f6a0b0c8e750f11890a2274a (diff) |
Fix T52020: Archimesh autohole not working
The boolean modifier was created but was removed later.
This remove is not necessary.
Diffstat (limited to 'archimesh')
-rw-r--r-- | archimesh/achm_main_panel.py | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/archimesh/achm_main_panel.py b/archimesh/achm_main_panel.py index 622cb21e..9d9bb25c 100644 --- a/archimesh/achm_main_panel.py +++ b/archimesh/achm_main_panel.py @@ -135,11 +135,12 @@ class AchmHoleAction(Operator): else: child.scale.y = 1 # add boolean modifier - if isboolean(context.object, child) is False: - set_modifier_boolean(context.object, child) + if isboolean(myroom, child) is False: + set_modifier_boolean(myroom, child) except: # print("Unexpected error:" + str(sys.exc_info())) pass + # --------------------------------------- # Now add the modifiers to baseboard # --------------------------------------- @@ -154,11 +155,6 @@ class AchmHoleAction(Operator): set_modifier_boolean(mybaseboard, obj) except: 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 @@ -180,12 +176,7 @@ class AchmHoleAction(Operator): set_modifier_boolean(myshell, obj) except: 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'} |