Component attributes no longer get set on the wrong entity when switching selection while editing a field

This commit is contained in:
2015-12-17 10:44:34 +01:00
parent a914a7f924
commit d4f5856304
+1
View File
@@ -199,6 +199,7 @@ bool EditorSystem::OnPicking(const Events::Picking& e)
//auto selectionTransform = m_World->GetComponent(m_Selection, "Transform");
//widgetTransform["Position"] = (glm::vec3)selectionTransform["Position"];
} else {
ImGui::SetActiveID(0, nullptr);
m_Selection = entity;
setWidgetMode(m_WidgetMode);
}