Fun with config nodes that modifiy other config nodes. Circular connections lead to a crash.

This commit is contained in:
Sebastian
2024-12-11 01:16:06 +01:00
parent 456528f230
commit bc8c433e47
7 changed files with 162 additions and 41 deletions
+6 -2
View File
@@ -81,8 +81,12 @@ namespace VISEQ::INTERACTION{
removeNodes(gm->getSelection());
}
if(IsKeyPressed(KEY_TAB)) {
state->node_mode = (state->node_mode + 1) % 3;
if(!KEYS_DOWN.shift && IsKeyPressed(KEY_TAB)) {
state->node_mode = (state->node_mode + 1) % 6;
}
if(KEYS_DOWN.shift && IsKeyPressed(KEY_TAB)) {
state->node_mode -= state->node_mode > 0 ? 1 : -5;
}
}