diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-01-05 16:40:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-01-05 16:40:09 +0400 |
commit | 7fd67392ebd5061ea1bc695ebd7feabe4755eaac (patch) | |
tree | 0614d1a94fb610c0157b8b684d21052d159a0999 /source/blender/modifiers/intern/MOD_boolean.c | |
parent | 348f116fe574ee38a70e8c9bdff7fc62ad1ec2e8 (diff) |
added a function to ensure derived mesh has tessface's, in preparation for removal of tessface recalculation after each modifier runs.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_boolean.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_boolean.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_boolean.c b/source/blender/modifiers/intern/MOD_boolean.c index 9670f661d75..ef8d71928d3 100644 --- a/source/blender/modifiers/intern/MOD_boolean.c +++ b/source/blender/modifiers/intern/MOD_boolean.c @@ -137,6 +137,10 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob, result = get_quick_derivedMesh(derivedData, dm, bmd->operation); if(result == NULL) { + + DM_ensure_tessface(dm); /* BMESH - UNTIL MODIFIER IS UPDATED FOR MPoly */ + DM_ensure_tessface(derivedData); /* BMESH - UNTIL MODIFIER IS UPDATED FOR MPoly */ + result = NewBooleanDerivedMesh(dm, bmd->object, derivedData, ob, 1 + bmd->operation); } |