mirror of
https://github.com/enduro2d/enduro2d.git
synced 2026-09-27 23:37:49 +07:00
fixes after imgui update
This commit is contained in:
@@ -65,7 +65,11 @@ namespace
|
||||
});
|
||||
|
||||
if ( ImGui::IsItemClicked() ) {
|
||||
e.select(owner);
|
||||
if ( ImGui::IsItemToggledOpen() || e.selection() != owner ) {
|
||||
e.select(owner);
|
||||
} else {
|
||||
e.clear_selection();
|
||||
}
|
||||
}
|
||||
|
||||
if ( ImGui::BeginPopupContextItem() ) {
|
||||
@@ -137,12 +141,6 @@ namespace
|
||||
{
|
||||
e.selection().destroy();
|
||||
}
|
||||
|
||||
if ( ImGui::IsMouseClicked(ImGuiMouseButton_Left)
|
||||
&& ImGui::IsWindowHovered(ImGuiHoveredFlags_RootWindow) )
|
||||
{
|
||||
e.clear_selection();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user