diff options
author | Sergey Sharybin <sergey@blender.org> | 2022-04-12 11:56:51 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2022-04-13 12:48:12 +0300 |
commit | 25c357124de8905360c44a5a842284089ddec341 (patch) | |
tree | d7f7de7c459d622366ba5b0a7caec720c97f35c7 /source/blender/depsgraph | |
parent | da66c0519fce9bff981370868a359e64198552bc (diff) |
Cover some DNA files with C++ utility macros
Solves compilation warning with Clang, and moves manipulation with
DNA structures to the designed way for C++.
The tests and few other places are update to the new code by Jacques.
Ref T96847
Maniphest Tasks: T96847
Differential Revision: https://developer.blender.org/D14625
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r-- | source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc index 5597d496890..058f57e5a61 100644 --- a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc +++ b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc @@ -163,7 +163,7 @@ const ID *nested_id_hack_get_discarded_pointers(NestedIDHackTempStorage *storage switch (GS(id->name)) { # define SPECIAL_CASE(id_type, dna_type, field, variable) \ case id_type: { \ - storage->variable = *(dna_type *)id; \ + storage->variable = dna::shallow_copy(*(dna_type *)id); \ storage->variable.field = nullptr; \ return &storage->variable.id; \ } |