]> git.sesse.net Git - nageru/commitdiff
Give a slightly friendlier error message if the user forgets to connect an input.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 15 Jun 2019 13:03:52 +0000 (15:03 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 15 Jun 2019 13:03:52 +0000 (15:03 +0200)
nageru/scene.cpp

index d7da7db997ba1fbc3d4b74a7549ed36feaca1335..0d10be5b8cba5876363367b7007c43cb2f0ac2ba 100644 (file)
@@ -327,6 +327,8 @@ Scene::get_chain(Theme *theme, lua_State *L, unsigned num, const InputState &inp
 #endif
                        } else if (block->signal_type_to_connect == Block::CONNECT_VIDEO) {
                                signals_to_connect.emplace(input, block->video_to_connect->get_card_index());
+                       } else if (block->signal_type_to_connect == Block::CONNECT_NONE) {
+                               luaL_error(L, "An input in a chain was not connected to anything (forgot to call display())");
                        } else {
                                assert(false);
                        }