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>2019-02-18 18:24:51 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-02-18 18:24:51 +0300
commitd02ad52b2de250fa371f664f1f2d08329e0b5a20 (patch)
treed6ca23e8f739d8128c50a8040612ede912bcdd42 /source/blender/depsgraph/intern/node/deg_node.h
parentc3ceefb6715bc17fd3a6a0f409eb27d50695681b (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/node/deg_node.h')
-rw-r--r--source/blender/depsgraph/intern/node/deg_node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/node/deg_node.h b/source/blender/depsgraph/intern/node/deg_node.h
index 64b38be3190..0677b0edc15 100644
--- a/source/blender/depsgraph/intern/node/deg_node.h
+++ b/source/blender/depsgraph/intern/node/deg_node.h
@@ -155,7 +155,7 @@ struct Node {
* have relationships between these nodes. */
typedef vector<Relation *> Relations;
- const char *name; /* Identifier - mainly for debugging purposes. */
+ string name; /* Identifier - mainly for debugging purposes. */
NodeType type; /* Structural type of node. */
Relations inlinks; /* Nodes which this one depends on. */
Relations outlinks; /* Nodes which depend on this one. */