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:
authorTon Roosendaal <ton@blender.org>2010-12-15 16:08:34 +0300
committerTon Roosendaal <ton@blender.org>2010-12-15 16:08:34 +0300
commit0efdb860f195edc5899d4698f62d21dc0599ab83 (patch)
tree42ac63d68b9218dd5479698b7367330fe8e08dc6 /source/blender/modifiers/intern/MOD_displace.c
parentdbbd12d76006a3032fd22ec90e3fefc95bf984ac (diff)
Bugfix #22982
Displace modifier: mapping "Global" didn't set a dependency entry. Fix provided by the reporter himself, thanks Jacob F!
Diffstat (limited to 'source/blender/modifiers/intern/MOD_displace.c')
-rw-r--r--source/blender/modifiers/intern/MOD_displace.c6
1 files changed, 6 insertions, 0 deletions
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,