Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-12-09 15:40:12 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-12-09 15:40:12 +0300
commit1846a7884974a3cde5ce62ee1faaa8295647398d (patch)
tree80a1944098b8a0e7c439a79ecebfaa2e26d68619
parent3bd94b9f45e921186352bed9908f5bb851714d4f (diff)
Depsgraph: Add missing relation for cast modifier
When control object is used we need to known our own transformation as well.
-rw-r--r--source/blender/modifiers/intern/MOD_cast.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_cast.c b/source/blender/modifiers/intern/MOD_cast.c
index 33e5b3615d9..2fe27730370 100644
--- a/source/blender/modifiers/intern/MOD_cast.c
+++ b/source/blender/modifiers/intern/MOD_cast.c
@@ -124,12 +124,13 @@ static void updateDepgraph(ModifierData *md, DagForest *forest,
static void updateDepsgraph(ModifierData *md,
struct Main *UNUSED(bmain),
struct Scene *UNUSED(scene),
- Object *UNUSED(ob),
+ Object *object,
struct DepsNodeHandle *node)
{
CastModifierData *cmd = (CastModifierData *)md;
if (cmd->object != NULL) {
DEG_add_object_relation(node, cmd->object, DEG_OB_COMP_TRANSFORM, "Cast Modifier");
+ DEG_add_object_relation(node, object, DEG_OB_COMP_TRANSFORM, "Cast Modifier");
}
}