RNA_property_as_string support for pointer properties, without this macro arguments...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 9 Nov 2010 05:58:30 +0000 (05:58 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 9 Nov 2010 05:58:30 +0000 (05:58 +0000)
source/blender/makesrna/intern/rna_access.c

index fe82c6e..0144a0c 100644 (file)
@@ -3772,7 +3772,10 @@ char *RNA_property_as_string(bContext *C, PointerRNA *ptr, PropertyRNA *prop)
        }
        case PROP_POINTER:
        {
-               BLI_dynstr_append(dynstr, "'<POINTER>'"); /* TODO */
+               PointerRNA tptr= RNA_property_pointer_get(ptr, prop);
+               cstring= RNA_pointer_as_string(&tptr);
+               BLI_dynstr_append(dynstr, cstring);
+               MEM_freeN(cstring);
                break;
        }
        case PROP_COLLECTION: