add in asserts for when array/non array RNA funcions are used incorrectly, would have made previous fix a lot easier to find.

also remove unused argument from RNA_property_array_check.
This commit is contained in:
2011-08-14 10:28:18 +00:00
parent 62fdee3d8a
commit 540f0c64b5
9 changed files with 41 additions and 16 deletions

View File

@@ -143,7 +143,7 @@ int uiDefAutoButsRNA(uiLayout *layout, PointerRNA *ptr, int (*check_prop)(Proper
if(label_align != '\0') {
PropertyType type = RNA_property_type(prop);
int is_boolean = (type == PROP_BOOLEAN && !RNA_property_array_check(ptr, prop));
int is_boolean = (type == PROP_BOOLEAN && !RNA_property_array_check(prop));
name= RNA_property_ui_name(prop);