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-01-31 12:18:39 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-01-31 15:00:11 +0300
commit13de53ecc5bea0f49a13dfc560442c2637f9ca37 (patch)
tree2d416be606e5416c0c8e48b17f4d72ca3112ccca /source/blender/depsgraph/intern/depsgraph.cc
parent39de1dc342b9f81a7319478b25f1de3255a4e233 (diff)
Depsgraph: Specify whether RNA path to be resolved as entry or exit
Makes it more explicit whether RNA property is used as a source dependency for something else, or whether some other dependency is being hooked up to evaluate that property.
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph.cc')
-rw-r--r--source/blender/depsgraph/intern/depsgraph.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph.cc b/source/blender/depsgraph/intern/depsgraph.cc
index dabab482eff..d7da6658e3e 100644
--- a/source/blender/depsgraph/intern/depsgraph.cc
+++ b/source/blender/depsgraph/intern/depsgraph.cc
@@ -121,6 +121,7 @@ Depsgraph::~Depsgraph()
static bool pointer_to_component_node_criteria(
const PointerRNA *ptr,
const PropertyRNA *prop,
+ RNAPointerSource /*source*/,
ID **id,
eDepsNode_Type *type,
const char **subdata,
@@ -287,16 +288,16 @@ static bool pointer_to_component_node_criteria(
/* Convenience wrapper to find node given just pointer + property. */
DepsNode *Depsgraph::find_node_from_pointer(const PointerRNA *ptr,
- const PropertyRNA *prop) const
+ const PropertyRNA *prop,
+ RNAPointerSource source) const
{
ID *id;
eDepsNode_Type node_type;
const char *component_name, *operation_name;
eDepsOperation_Code operation_code;
int operation_name_tag;
-
if (pointer_to_component_node_criteria(
- ptr, prop,
+ ptr, prop, source,
&id, &node_type, &component_name,
&operation_code, &operation_name, &operation_name_tag))
{