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:
authorJoshua Leung <aligorith@gmail.com>2018-05-19 20:12:26 +0300
committerJoshua Leung <aligorith@gmail.com>2018-05-19 20:54:47 +0300
commit4a0dea88bf2cffdbf298b2e388d7c3698d2b6bad (patch)
tree6e1f0dca0f00c947545558dfed9fc7cc2bfc4df5 /source/blender/depsgraph/DEG_depsgraph_query.h
parent6ba28ff8b1658d69e2f4c1c92a8eeec230f573ba (diff)
WIP: Improved implementation of DEG_get_evaluated_rna_pointer()
This now works by getting the RNA Path from the given PointerRNA to go from the ID block to the data it points to, then uses this path to find the new data relative to the COW ID. Note: This currently still has all the debug prints left in - As can be seen, I was testing this against the earlier PoseBone hack/special case. We may still need to bring such special cases back in future, since looking up RNA Paths like this can be slow.
Diffstat (limited to 'source/blender/depsgraph/DEG_depsgraph_query.h')
-rw-r--r--source/blender/depsgraph/DEG_depsgraph_query.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph_query.h b/source/blender/depsgraph/DEG_depsgraph_query.h
index e77bf62bab6..99c5d2dc291 100644
--- a/source/blender/depsgraph/DEG_depsgraph_query.h
+++ b/source/blender/depsgraph/DEG_depsgraph_query.h
@@ -87,7 +87,7 @@ struct ID *DEG_get_evaluated_id(const struct Depsgraph *depsgraph,
/* Get evaluated version of data pointed to by RNA pointer */
void DEG_get_evaluated_rna_pointer(const struct Depsgraph *depsgraph,
- const struct PointerRNA *ptr,
+ struct PointerRNA *ptr,
struct PointerRNA *r_ptr_eval);
/* Get original version of object for given evaluated one. */