Editor should now set dirty flag when component field changes

This commit is contained in:
2016-03-12 05:17:56 +01:00
parent df7b4faf24
commit 24bb05ec67
+4
View File
@@ -381,6 +381,10 @@ bool EditorGUI::drawComponentField(ComponentWrapper& c, const ComponentInfo::Fie
ImGui::TextDisabled(field.Type.c_str());
}
if (dirty) {
c[field.Name].SetAllDirty();
}
ImGui::PopID();
return dirty;