correct warning messages - ptr/prop mismatch.
authorCampbell Barton <ideasman42@gmail.com>
Sat, 24 Nov 2012 04:51:56 +0000 (04:51 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 24 Nov 2012 04:51:56 +0000 (04:51 +0000)
source/blender/editors/interface/interface_layout.c

index e000265bb1e6b7fa49ee98e883733f4dd79807fa..7fa0f79b14d4d7b5b3d0b7d81870ac48161f5b64 100644 (file)
@@ -1401,7 +1401,8 @@ void uiItemPointerR(uiLayout *layout, struct PointerRNA *ptr, const char *propna
        prop = RNA_struct_find_property(ptr, propname);
 
        if (!prop) {
-               RNA_warning("property not found: %s.%s", RNA_struct_identifier(ptr->type), propname);
+               RNA_warning("property not found: %s.%s",
+                           RNA_struct_identifier(ptr->type), propname);
                return;
        }
        
@@ -1415,11 +1416,13 @@ void uiItemPointerR(uiLayout *layout, struct PointerRNA *ptr, const char *propna
 
 
        if (!searchprop) {
-               RNA_warning("search collection property not found: %s.%s", RNA_struct_identifier(ptr->type), searchpropname);
+               RNA_warning("search collection property not found: %s.%s",
+                           RNA_struct_identifier(searchptr->type), searchpropname);
                return;
        }
        else if (RNA_property_type(searchprop) != PROP_COLLECTION) {
-               RNA_warning("search collection property is not a collection type: %s.%s", RNA_struct_identifier(ptr->type), searchpropname);
+               RNA_warning("search collection property is not a collection type: %s.%s",
+                           RNA_struct_identifier(searchptr->type), searchpropname);
                return;
        }