Browse Source

Fix radio buttons support in ItemListEditorPlugin

This was missed in bf14a6deffe4c9b74920080851f7e4e273f66116.
Rémi Verschelde 6 years ago
parent
commit
e4f1b995cc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/plugins/item_list_editor_plugin.cpp

+ 1 - 1
editor/plugins/item_list_editor_plugin.cpp

@@ -109,7 +109,7 @@ void ItemListPlugin::_get_property_list(List<PropertyInfo> *p_list) const {
 		int flags = get_flags();
 		int flags = get_flags();
 
 
 		if (flags & FLAG_CHECKABLE) {
 		if (flags & FLAG_CHECKABLE) {
-			p_list->push_back(PropertyInfo(Variant::BOOL, base + "checkable", PROPERTY_HINT_ENUM, "No,As checkbox,As radio button"));
+			p_list->push_back(PropertyInfo(Variant::INT, base + "checkable", PROPERTY_HINT_ENUM, "No,As checkbox,As radio button"));
 			p_list->push_back(PropertyInfo(Variant::BOOL, base + "checked"));
 			p_list->push_back(PropertyInfo(Variant::BOOL, base + "checked"));
 		}
 		}