UI: remove unnecessary colon on toggle array buttons.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 2 Dec 2009 13:21:22 +0000 (13:21 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 2 Dec 2009 13:21:22 +0000 (13:21 +0000)
source/blender/editors/interface/interface_layout.c

index 175f1ff1e2a467d3e69af6ee5a2937a97bfbd7a9..ceb5ac104869e0dd766ee43b5b5e9489ffc3139e 100644 (file)
@@ -896,7 +896,7 @@ void uiItemFullR(uiLayout *layout, char *name, int icon, PointerRNA *ptr, Proper
 
        if(ELEM4(type, PROP_INT, PROP_FLOAT, PROP_STRING, PROP_POINTER))
                name= ui_item_name_add_colon(name, namestr);
-       else if(type == PROP_BOOLEAN && len)
+       else if(type == PROP_BOOLEAN && len && index == RNA_NO_INDEX)
                name= ui_item_name_add_colon(name, namestr);
        else if(type == PROP_ENUM && index != RNA_ENUM_VALUE)
                name= ui_item_name_add_colon(name, namestr);