Depsgraph: Add extra name tag for operation nodes
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 3 Nov 2016 13:31:27 +0000 (14:31 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 7 Nov 2016 10:04:49 +0000 (11:04 +0100)
commitc9eca0c6c9e710b706711872526634bdd95a3ffa
tree6f134d13078fb34c44d8c2f1fc221115db93c9b4
parentd872aeaf51166554c747527e7e6d9a3ff099ce89
Depsgraph: Add extra name tag for operation nodes

The idea here is to address issue that name on it's own is not
always unique: for example, when adding driver operations the
name used for nodes is the RNA path (and multiple drivers can
write to different array indices of the path). Basically, now
it's possible to pass extra integer value to distinguish
operations in such cases.

So now we've already switched from sprintf() to construct unique
operation name to pass RNA path and array index.

There should be no functional changes yet, but this work is
required for further work about replacing string with const
char*.
source/blender/depsgraph/intern/builder/deg_builder_nodes.cc
source/blender/depsgraph/intern/builder/deg_builder_nodes.h
source/blender/depsgraph/intern/builder/deg_builder_relations.cc
source/blender/depsgraph/intern/builder/deg_builder_relations.h
source/blender/depsgraph/intern/nodes/deg_node_component.cc
source/blender/depsgraph/intern/nodes/deg_node_component.h