Bugfix regarding callbackInfos

This commit is contained in:
EzFeDezy
2025-05-26 18:03:59 +02:00
parent 30421099b0
commit ecce9a5051
3 changed files with 8 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ public class PythonScriptable : IScriptable
}
Init();
}
public void Init()
{
using (Py.GIL())
@@ -52,8 +52,8 @@ public class PythonScriptable : IScriptable
PythonEngine.Initialize();
using (Py.GIL())
{
ToolSet.callbackInfos = callbackInfos;
pyToolSet = ToolSet.ToPython();
pyToolSet.SetAttr("callbackInfos", callbackInfos.ToPython());
scope.Set("toolset", pyToolSet);
scope.Exec("update(toolset)");
}