Gui: Fix regression in SelectionObserverPython::removeObserver.

This commit is contained in:
tritao
2025-02-25 09:18:54 +00:00
committed by Chris Hennes
parent 28aa531a02
commit 7b21ed43da
2 changed files with 1 additions and 5 deletions

View File

@@ -34,8 +34,6 @@ std::vector<SelectionObserverPython*> SelectionObserverPython::_instances;
void SelectionObserverPythonHandler::init(PyObject* obj)
{
this->inst = obj;
#undef FC_PY_ELEMENT
#define FC_PY_ELEMENT(_name) FC_PY_GetCallable(obj,#_name,py_##_name);
FC_PY_SEL_OBSERVER
@@ -209,7 +207,7 @@ void SelectionObserverPythonHandler::removePreselection(const SelectionChanges&
SelectionObserverPython::SelectionObserverPython(const Py::Object& obj, ResolveMode resolve)
: SelectionObserver(true, resolve)
: SelectionObserver(true, resolve), inst(obj)
{
this->init(obj.ptr());
}