replacement for PR 698

This commit is contained in:
wmayer
2017-04-27 23:05:40 +02:00
parent 712766c3e8
commit 7150e9ab23
6 changed files with 53 additions and 9 deletions

View File

@@ -45,7 +45,8 @@ PyObjectBase::PyObjectBase(void* p,PyTypeObject *T)
#ifdef FC_LOGPYOBJECTS
Base::Console().Log("PyO+: %s (%p)\n",T->tp_name, this);
#endif
StatusBits.set(0); // valid, the second bit is NOT set, i.e. it's mutable
StatusBits.set(Valid); // valid, the second bit is NOT set, i.e. it's mutable
StatusBits.set(Notify);
}
/// destructor
@@ -325,6 +326,9 @@ void PyObjectBase::setAttributeOf(const char* attr, PyObject* par)
void PyObjectBase::startNotify()
{
if (!shouldNotify())
return;
if (attrDict) {
// This is the attribute name to the parent structure
// which we search for in the dict