diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-30 14:51:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-30 14:51:36 +0400 |
commit | 81b6d308a771405ef326b1e4cebbc3359e830a6c (patch) | |
tree | 8485b8abff48cd9d8b84d5e796cb1e17e540c8c6 /source/blender/modifiers/intern/MOD_decimate.c | |
parent | cca8fce807424b0601064387659c3818de1ae049 (diff) |
[#23673] Modifier construction gives correct result in viewport but incorrect in render.
When there are 2+ consecutive deform modifiers, the second modifier was getting incorrect normals, this only showed up for the displace modifier since its the only deform modifier that uses vertex normals.
It would have been easy to fix this by always calculating normals on deform modifiers, but slow.
To fix this I added a function to check if a deform modifier needs normals, so the normal calculation function only runs if there are 2 modifiers in a row and the second uses normals.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_decimate.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_decimate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/modifiers/intern/MOD_decimate.c b/source/blender/modifiers/intern/MOD_decimate.c index 9163a9771f0..03307934e00 100644 --- a/source/blender/modifiers/intern/MOD_decimate.c +++ b/source/blender/modifiers/intern/MOD_decimate.c @@ -194,6 +194,7 @@ ModifierTypeInfo modifierType_Decimate = { /* isDisabled */ 0, /* updateDepgraph */ 0, /* dependsOnTime */ 0, + /* dependsOnNormals */ 0, /* foreachObjectLink */ 0, /* foreachIDLink */ 0, }; |