Fix T40556: Curve Modifier does not work when used in a Background scene

A bit hackish solution for now, cleaner solution we'll look into as a
part of the new DAG project, when it's clear what kind of data is passed
to the evaluation callbacks.
This commit is contained in:
Sergey Sharybin 2014-07-01 17:46:55 +06:00
parent 8c9c93ca6f
commit 61e5f81e37
Notes: blender-bot 2023-02-14 10:31:49 +01:00
Referenced by issue #40903, Rendering: Alpha Channel is Broken.
Referenced by issue #40556, Curve Modifier does not work when used in a Background scene
1 changed files with 10 additions and 0 deletions

View File

@ -3106,7 +3106,17 @@ short DAG_get_eval_flags_for_object(Scene *scene, void *object)
/* Happens when external render engine exports temporary objects
* which are not in the DAG.
*/
/* TODO(sergey): Doublecheck objects with Curve Deform exports all fine. */
/* TODO(sergey): Weak but currently we can't really access proper DAG from
* the modifiers stack. This is because in most cases modifier is to use
* the foreground scene, but to access evaluation flags we need to know
* active background scene, which we don't know.
*/
if (scene->set) {
return DAG_get_eval_flags_for_object(scene->set, object);
}
return 0;
}
}