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>2017-04-04 16:41:39 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2017-04-04 16:41:39 +0300
commite74254dd48c81c29323ea2b2e531e370efb879a7 (patch)
tree80a6bfd15cdc77848cdb8d8a52c921c4d5757729
parente131783384fcb6c566e60f9b892fe388b99f5ee7 (diff)
Some minor cleanup.
-rw-r--r--source/blender/makesrna/intern/rna_access.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index 6a6ec9d1b14..7ee9cda80ed 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -1224,10 +1224,12 @@ int RNA_property_pointer_poll(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *va
PointerPropertyRNA *pprop = (PointerPropertyRNA *)prop;
if (pprop->poll) {
- if (rna_idproperty_check(&prop, ptr))
+ if (rna_idproperty_check(&prop, ptr)) {
return ((PropPointerPollFuncPy) pprop->poll)(ptr, *value, prop);
- else
+ }
+ else {
return pprop->poll(ptr, *value);
+ }
}
return 1;
@@ -2993,8 +2995,9 @@ PointerRNA RNA_property_pointer_get(PointerRNA *ptr, PropertyRNA *prop)
if ((idprop = rna_idproperty_check(&prop, ptr))) {
pprop = (PointerPropertyRNA *)prop;
- if (RNA_struct_is_ID(pprop->type))
+ if (RNA_struct_is_ID(pprop->type)) {
return rna_pointer_inherit_refine(ptr, pprop->type, IDP_Id(idprop));
+ }
/* for groups, data is idprop itself */
if (pprop->typef)