Context menu is back, but not quite yet.

This commit is contained in:
Sebastian
2024-12-05 23:39:01 +01:00
parent 638df54ee6
commit ade33b0608
6 changed files with 30 additions and 9 deletions
+6 -1
View File
@@ -210,7 +210,12 @@ namespace VISEQ::INTERACTION{
while(APP::event_queue.size() > 0 && !exit){
auto e = APP::event_queue.front();
if(e.action == APP::Interaction::RIGHTCLICK){
gm->addToSelection();
state->context_menu = !state->context_menu;
}
if(state->context_menu) break;
if(e.action == APP::Interaction::HOVER){
state->mouse_z = e.item->z_index;
}