16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 15:09:19 +02:00

Final fix for missing getCommands function inside abstractscreenrenderer

This commit is contained in:
2025-01-09 16:07:57 +01:00
parent a46faf6ff9
commit 76b080deeb

View File

@@ -111,9 +111,11 @@ void render_task::run() {
// get commands from renderer
auto *commandsPO = PyObject_CallMethod(m_renderer, "getCommands", nullptr);
if (commandsPO != nullptr)
{
std::vector<std::string> commands = python_external_utils::PyObjectToStringArray(commandsPO);
Py_DECREF(commandsPO);
Py_DECREF(commandsPO);
// we perform any actions ONLY when there are any commands in buffer
if (!commands.empty())
{
@@ -133,6 +135,10 @@ void render_task::run() {
}
}
}
}