Disable selection when patern menu is selected
This commit is contained in:
@@ -172,7 +172,7 @@ int main(int ac, char **av) {
|
||||
mousePos.y / config_json["cell_size"].get<int>());
|
||||
}
|
||||
// Selection behaviour
|
||||
if (!edit_ctrl && !play_ctrl) {
|
||||
if (!edit_ctrl && !play_ctrl && !paterns_ctrl) {
|
||||
if (gesture == GESTURE_TAP && !ImGui::IsWindowHovered(ImGuiHoveredFlags_AnyWindow)) {
|
||||
sel_pos = snapToGrid(mousePos, cell_size_ctrl);
|
||||
selecting = true;
|
||||
|
||||
Reference in New Issue
Block a user