diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-07-01 15:46:55 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-07-01 15:46:55 +0400 |
commit | 61e5f81e37d5365ebb9da49ea9b6f62f4110d054 (patch) | |
tree | 1b095cde398335cd7558bae78f6c51f4823416ed /source | |
parent | 8c9c93ca6f4201f51c6db6caa6564f748d1b8bf7 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/depsgraph.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c index 21579098266..24b580672d1 100644 --- a/source/blender/blenkernel/intern/depsgraph.c +++ b/source/blender/blenkernel/intern/depsgraph.c @@ -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; } } |