From 0efdb860f195edc5899d4698f62d21dc0599ab83 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 15 Dec 2010 13:08:34 +0000 Subject: Bugfix #22982 Displace modifier: mapping "Global" didn't set a dependency entry. Fix provided by the reporter himself, thanks Jacob F! --- source/blender/modifiers/intern/MOD_displace.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/modifiers/intern/MOD_displace.c') diff --git a/source/blender/modifiers/intern/MOD_displace.c b/source/blender/modifiers/intern/MOD_displace.c index ce41f6dfc1d..f6e5b9c119a 100644 --- a/source/blender/modifiers/intern/MOD_displace.c +++ b/source/blender/modifiers/intern/MOD_displace.c @@ -148,6 +148,12 @@ static void updateDepgraph(ModifierData *md, DagForest *forest, dag_add_relation(forest, curNode, obNode, DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Displace Modifier"); } + + + if(dmd->texmapping == MOD_DISP_MAP_GLOBAL) + dag_add_relation(forest, obNode, obNode, + DAG_RL_DATA_DATA | DAG_RL_OB_DATA, "Displace Modifier"); + } static void get_texture_coords(DisplaceModifierData *dmd, Object *ob, -- cgit v1.2.3