Fix T42065: Shading issue using Array modifier
Gah... Dirty normal flag should be set on *real* final dm, after merge is done. :/
This commit is contained in:
parent
60bdb7da48
commit
8ac3c3d3ee
Notes:
blender-bot
2023-02-14 10:00:08 +01:00
Referenced by issue #42065, Shading issue using modifiers
|
@ -704,13 +704,6 @@ static DerivedMesh *arrayModifier_doArray(
|
|||
}
|
||||
/* done capping */
|
||||
|
||||
/* In case org dm has dirty normals, or we made some merging, mark normals as dirty in new dm!
|
||||
* TODO: we may need to set other dirty flags as well?
|
||||
*/
|
||||
if (use_recalc_normals) {
|
||||
result->dirty |= DM_DIRTY_NORMALS;
|
||||
}
|
||||
|
||||
/* Handle merging */
|
||||
tot_doubles = 0;
|
||||
if (use_merge) {
|
||||
|
@ -729,6 +722,14 @@ static DerivedMesh *arrayModifier_doArray(
|
|||
}
|
||||
MEM_freeN(full_doubles_map);
|
||||
}
|
||||
|
||||
/* In case org dm has dirty normals, or we made some merging, mark normals as dirty in new dm!
|
||||
* TODO: we may need to set other dirty flags as well?
|
||||
*/
|
||||
if (use_recalc_normals) {
|
||||
result->dirty |= DM_DIRTY_NORMALS;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue