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:
authorBastien Montagne <montagne29@wanadoo.fr>2019-08-23 16:39:19 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-08-23 16:55:00 +0300
commit18f4182e983f2c99e09f0a9203be91b53c161e22 (patch)
tree9b9a6dba022b858eb012fc4a0719160b1fa6faef /source/blender/makesrna/intern/rna_access.c
parent6d64da1e67e319e826450cefc1f6541b0fbb57e9 (diff)
LibOverride: Fixed bug in removing override op operator.
In case the property is a RNA pointer, `RNA_path_resolve()` will try to resolve it and return that pointer, instead of returning expected container... That is a bad inconsistency in the rNA path API, but no proper way to solve it for now...
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r--source/blender/makesrna/intern/rna_access.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index d44020a52a1..8327456f460 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -5360,6 +5360,10 @@ static bool rna_path_parse(PointerRNA *ptr,
* Resolve the given RNA Path to find the pointer and/or property
* indicated by fully resolving the path.
*
+ * \warning Unlike \a RNA_path_resolve_property(), that one *will* try to follow RNAPointers,
+ * e.g. the path 'parent' applied to a RNAObject \a ptr will return the object.parent in \a r_ptr,
+ * and a NULL \a r_prop...
+ *
* \note Assumes all pointers provided are valid
* \return True if path can be resolved to a valid "pointer + property" OR "pointer only"
*/