Fixed editor enum selection

This commit is contained in:
2016-01-19 11:35:31 +01:00
parent 9e3dfff7b6
commit b62e42567c
+1
View File
@@ -367,6 +367,7 @@ void EditorGUI::drawComponentField_enum(ComponentWrapper &c, const ComponentInfo
if (val == kv.second) {
selectedItem = i;
}
i++;
}
if (ImGui::Combo("", &selectedItem, enumKeys.str().c_str())) {
val = enumValues.at(selectedItem);