Page MenuHome

Fix T85139: Force field texture missing depsgraph relation
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Jan 28 2021, 3:56 PM.

Details

Summary

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.

Diff Detail

Repository
rB Blender

Event Timeline

Philipp Oeser (lichtwerk) requested review of this revision.Jan 28 2021, 3:56 PM
Philipp Oeser (lichtwerk) created this revision.

Besides the comment below, this looks good to me.

source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
654

Missing null check for object->pd. Same below.

Philipp Oeser (lichtwerk) planned changes to this revision.Jan 28 2021, 4:34 PM

missed one case, update incoming

  • missing NULL check
  • missed building texture for relations as well
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
1740

This null check can be skipped, because it is done a few lines above.

This revision is now accepted and ready to land.Jan 28 2021, 5:06 PM

remove redundant null check

Philipp Oeser (lichtwerk) marked 2 inline comments as done.Jan 28 2021, 6:39 PM