diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-03-20 18:35:23 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-03-20 18:37:15 +0300 |
commit | 099a41047882bbd835941e70c419290008ee35cd (patch) | |
tree | 024417dd079c0fb8b6cc8b83e8a12b1fd65a8542 /source/blender/depsgraph/intern/node/deg_node_operation.h | |
parent | c5fc861172879102034129ecbe653e91eeff5caf (diff) |
Depsgraph: Fix cycle with rigid body and Weight Proximity
The issue is a feedback loop with point cache reset operation.
Solved by introducing extra node which ensures object's transformation
is ready for simulator input. Allows to route relations without causing
a fake dependency cycle now.
Diffstat (limited to 'source/blender/depsgraph/intern/node/deg_node_operation.h')
-rw-r--r-- | source/blender/depsgraph/intern/node/deg_node_operation.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/node/deg_node_operation.h b/source/blender/depsgraph/intern/node/deg_node_operation.h index c6db7b012d7..56207b08d4a 100644 --- a/source/blender/depsgraph/intern/node/deg_node_operation.h +++ b/source/blender/depsgraph/intern/node/deg_node_operation.h @@ -76,6 +76,10 @@ enum class OperationCode { TRANSFORM_CONSTRAINTS, /* Handle object-level updates, mainly proxies hacks and recalc flags. */ TRANSFORM_EVAL, + /* Initializes transformation for simulation. + * For example, ensures point cache is properly reset before doing rigid + * body simulation. */ + TRANSFORM_SIMULATION_INIT, /* Transform exit point */ TRANSFORM_FINAL, |