[Bf-blender-cvs] [fa5ce915df2] master: Fix T60722: decimate modifier not working in some cases.
Philipp Oeser
noreply at git.blender.org
Tue Jan 22 20:00:55 CET 2019
Commit: fa5ce915df299ea917bf014749cc905fa1e2028e
Author: Philipp Oeser
Date: Tue Jan 22 19:49:44 2019 +0100
Branches: master
https://developer.blender.org/rBfa5ce915df299ea917bf014749cc905fa1e2028e
Fix T60722: decimate modifier not working in some cases.
===================================================================
M source/blender/modifiers/intern/MOD_decimate.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_decimate.c b/source/blender/modifiers/intern/MOD_decimate.c
index fff94e0d836..c7adedeae25 100644
--- a/source/blender/modifiers/intern/MOD_decimate.c
+++ b/source/blender/modifiers/intern/MOD_decimate.c
@@ -89,8 +89,10 @@ static DecimateModifierData *getOriginalModifierData(
}
static void updateFaceCount(
- const ModifierEvalContext *ctx, const DecimateModifierData *dmd, int face_count)
+ const ModifierEvalContext *ctx, DecimateModifierData *dmd, int face_count)
{
+ dmd->face_count = face_count;
+
if (DEG_is_active(ctx->depsgraph)) {
/* update for display only */
DecimateModifierData *dmd_orig = getOriginalModifierData(dmd, ctx);
More information about the Bf-blender-cvs
mailing list