@@ -1152,12 +1152,8 @@ void Document::_checkTransaction(DocumentObject* pcDelObj, const Property *What,
|
||||
const char *name = GetApplication().getActiveTransaction(&tid);
|
||||
if(name && tid>0) {
|
||||
bool ignore = false;
|
||||
if(What) {
|
||||
auto parent = What->getContainer();
|
||||
auto parentObj = Base::freecad_dynamic_cast<DocumentObject>(parent);
|
||||
if(!parentObj || What->testStatus(Property::NoModify))
|
||||
ignore = true;
|
||||
}
|
||||
if(What && What->testStatus(Property::NoModify))
|
||||
ignore = true;
|
||||
if(FC_LOG_INSTANCE.isEnabled(FC_LOGLEVEL_LOG)) {
|
||||
if(What)
|
||||
FC_LOG((ignore?"ignore":"auto") << " transaction ("
|
||||
|
||||
Reference in New Issue
Block a user