diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-18 18:24:51 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-18 18:24:51 +0300 |
commit | d02ad52b2de250fa371f664f1f2d08329e0b5a20 (patch) | |
tree | d6ca23e8f739d8128c50a8040612ede912bcdd42 /source/blender/depsgraph/intern/builder/deg_builder_nodes.h | |
parent | c3ceefb6715bc17fd3a6a0f409eb27d50695681b (diff) |
Depsgraph: Make node an owner of its name
The initial idea of using char pointer was to save some
memory since the dependency graph was kind of the one
with the main database.
Nowadays dependency graph should be separatable from the
main database and being self-sustainable.
Other issue which was caused by this pointer is the
re-tagging of operations during relations update: it is
possible to have node which as tagged for update but had
the owner of the name removed (i.e. driver or bone was
removed).
Diffstat (limited to 'source/blender/depsgraph/intern/builder/deg_builder_nodes.h')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_nodes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes.h b/source/blender/depsgraph/intern/builder/deg_builder_nodes.h index 602eee1e403..3b55131d7e2 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_nodes.h +++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes.h @@ -238,7 +238,7 @@ protected: ID *id_orig; NodeType component_type; OperationCode opcode; - const char *name; + string name; int name_tag; }; vector<SavedEntryTag> saved_entry_tags_; |