Commit 5ee72fcb authored by Yumin Yuan's avatar Yumin Yuan

Fixed a bug in transfering model operator results.

When a model is removed from the manager by a model op, all its children
are also removed from the topology records in manager. However, while transfering
the op result back to local client, the ImportJSON only removes the model
record, not its children, from the local manager's topology, which causes inconsistency
between server and client's managers.
parent 68b231c8
......@@ -899,7 +899,17 @@ int ImportJSON::ofOperatorResult(cJSON* node, OperatorResult& resOut, smtk::mode
smtk::attribute::ModelEntityItemPtr expunged = resOut->findModelEntity("expunged");
std::size_t num = expunged->numberOfValues();
for (std::size_t i = 0; i < num; ++i)
// if this is a removed model, the children of the model should also be removed.
// Deserialize the relevant transcribed entities into the
// remote operator's model manager:
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment