Commit 66d1ea0b authored by David Thompson's avatar David Thompson Committed by Kitware Robot
Browse files

Merge topic 'clean-on-save'

8a2edfa1

 Mark all saved models modified so they become clean.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Haocheng LIU's avatarHaocheng Liu <haocheng.liu@kitware.com>
Merge-request: !540
parents 9d83f8bc 8a2edfa1
......@@ -127,7 +127,6 @@ OperatorResult SaveSMTKModel::operateInternal()
}
smtkDebugMacro(this->log(), "Renaming " << oldmodelname << " to " << newname.str());
modit->setName(newname.str());
modified.push_back(*modit);
}
}
......@@ -143,6 +142,8 @@ OperatorResult SaveSMTKModel::operateInternal()
smtk::common::FileLocation wfLocation(write_path, smtkfilepath);
(*cit)->writeLocation(wfLocation);
}
modified.push_back(*modit); // All models saved should be marked clean.
}
smtk::io::SaveJSON::forManagerSessionPartial(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment