add debug GUI render mode (F8)

This commit is contained in:
MihailRis 2025-03-10 18:06:39 +03:00
parent a74a4fcf53
commit 5af6b91b22
18 changed files with 93 additions and 29 deletions

View file

@ -96,7 +96,7 @@ static int l_node_destruct(lua::State* L) {
engine->getGUI()->postRunnable([node]() {
auto parent = node->getParent();
if (auto container = dynamic_cast<Container*>(parent)) {
container->remove(node);
container->remove(node.get());
}
});
return 0;