Fix T63217: Curve Modifier skipped in Cycles

Only mesh objects have all modifiers applied on the evaluated
object's data, other object types are to apply modifiers during
the conversion process.
This commit is contained in:
Sergey Sharybin 2019-04-03 15:37:30 +02:00
parent 2f8b7030d4
commit b1995e6451
Notes: blender-bot 2023-02-14 07:53:51 +01:00
Referenced by issue #63217, Curve Modifier skipped in Cycles
1 changed files with 10 additions and 1 deletions

View File

@ -872,7 +872,16 @@ Mesh *BKE_mesh_new_from_object(
Object object_for_eval = *object_eval;
if (object_eval == object_input) {
effective_apply_modifiers = false;
/* Evaluated mesh contains all modifiers applied already.
* The other types of object has them applied, but are stored in other
* data structures than a mesh. So need to apply modifiers again on a
* temporary copy before converting result to mesh. */
if (object_for_eval.type == OB_MESH) {
effective_apply_modifiers = false;
}
else {
effective_apply_modifiers = true;
}
}
else {
if (apply_modifiers) {