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@blender.org>2020-08-05 17:49:20 +0300
committerSergey Sharybin <sergey@blender.org>2020-08-11 13:17:22 +0300
commitaa4fb22cac0c8b653cc9925700bfce74dcc08574 (patch)
tree9f1875eb1b46ddc78be85c04a6d4ed8c0ee508cf /source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_object.h
parent6f99dfc0c6032fa5644031f6355ff59e8e10261d (diff)
Depsgraph: Use UUID to match modifiers
Solves possible pointer-based comparison fiasco. Another nice outcome of this is that topology cache will now be preserved throughout the undo system. For example, undo of object transform will not require topology cache to be re-created. Differential Revision: https://developer.blender.org/D8493
Diffstat (limited to 'source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_object.h')
-rw-r--r--source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_object.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_object.h b/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_object.h
index a10f15634ce..5f6b443a2b2 100644
--- a/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_object.h
+++ b/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_object.h
@@ -36,6 +36,8 @@ struct Object;
namespace blender {
namespace deg {
+struct Depsgraph;
+
class ObjectRuntimeBackup {
public:
ObjectRuntimeBackup(const Depsgraph *depsgraph);
@@ -56,7 +58,7 @@ class ObjectRuntimeBackup {
Object_Runtime runtime;
short base_flag;
unsigned short base_local_view_bits;
- ModifierRuntimeDataBackup modifier_runtime_data;
+ Map<SessionUUID, ModifierDataBackup> modifier_runtime_data;
Map<SessionUUID, bPoseChannel_Runtime> pose_channel_runtime_data;
};