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:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-11-07 17:04:08 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-11-07 17:06:39 +0300
commit7b271d5fc11ada5d5dbd066f0e4523c33933ef51 (patch)
tree83c73fea29ec392656b6b898d09e873d76c3a0cc /source/blender/depsgraph/intern/depsgraph_types.h
parent4610ca599a778a33b958d196a7782cebd5758072 (diff)
Depsgraph: Ensure dependency cycle does not clear runtime memory
If there was a dependency cycle involved, it was possible that pchan array will be freed before all bones are evaluated. Now clear is done in a dedicated node, which is never a part of dependency cycle.
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_types.h')
-rw-r--r--source/blender/depsgraph/intern/depsgraph_types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_types.h b/source/blender/depsgraph/intern/depsgraph_types.h
index f5892f49955..ef64fe8c5fe 100644
--- a/source/blender/depsgraph/intern/depsgraph_types.h
+++ b/source/blender/depsgraph/intern/depsgraph_types.h
@@ -223,7 +223,9 @@ typedef enum eDepsOperation_Code {
DEG_OPCODE_POSE_INIT,
/* Initialize IK solver related pose stuff. */
DEG_OPCODE_POSE_INIT_IK,
- /* Free IK Trees + Compute Deform Matrices */
+ /* Pose is evaluated, and runtime data can be freed. */
+ DEG_OPCODE_POSE_CLEANUP,
+ /* Pose has been fully evaluated and ready to be used by others. */
DEG_OPCODE_POSE_DONE,
/* IK/Spline Solvers */
DEG_OPCODE_POSE_IK_SOLVER,