@@ -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 ("
|
||||
|
||||
@@ -381,7 +381,13 @@ void Command::invoke(int i, TriggerSource trigger)
|
||||
if(displayText.empty())
|
||||
displayText = getName();
|
||||
}
|
||||
App::AutoTransaction committer((eType&NoTransaction)?0:displayText.c_str(),true);
|
||||
|
||||
// Because Transaction now captures ViewObject changes, auto named
|
||||
// transaction is disabled here to avoid too many unnecessary transactions.
|
||||
//
|
||||
// App::AutoTransaction committer((eType&NoTransaction)?0:displayText.c_str(),true);
|
||||
App::AutoTransaction committer(0,true);
|
||||
|
||||
// Do not query _pcAction since it isn't created necessarily
|
||||
#ifdef FC_LOGUSERACTION
|
||||
Base::Console().Log("CmdG: %s\n",sName);
|
||||
|
||||
Reference in New Issue
Block a user