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:
authorPhilipp Oeser <info@graphics-engineer.com>2021-01-28 17:52:54 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2021-01-29 12:18:53 +0300
commit3fb5e838677d8db0c193da1a7c70cb5c392a4610 (patch)
tree16087458208d7d1fd5104e10f0e89469f988bc0c /source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
parentca4ac742f4b15254b59b4f77392af6d2a3d6ecec (diff)
Fix T85139: Force field texture missing depsgraph relation
If a force field was of type "Texture", any changes of that texture (e.g. its type - as reported in T85139 - or also its properties) were not properly updating rigid bodies and particle systems. Now ensure that texture is actually in the depsgraph and set up relation accordingly. Also fixes T75198. Maniphest Tasks: T85139 Differential Revision: https://developer.blender.org/D10234
Diffstat (limited to 'source/blender/depsgraph/intern/builder/deg_builder_nodes.cc')
-rw-r--r--source/blender/depsgraph/intern/builder/deg_builder_nodes.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
index dcdf2f48607..2edd4ddf853 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
@@ -650,6 +650,11 @@ void DepsgraphNodeBuilder::build_object(int base_index,
if (object->particlesystem.first != nullptr) {
build_particle_systems(object, is_visible);
}
+ /* Force field Texture. */
+ if ((object->pd != nullptr) && (object->pd->forcefield == PFIELD_TEXTURE) &&
+ (object->pd->tex != nullptr)) {
+ build_texture(object->pd->tex);
+ }
/* Proxy object to copy from. */
build_object_proxy_from(object, is_visible);
build_object_proxy_group(object, is_visible);