Gui.TreeWidget: removed incorrect assertion

This commit is contained in:
Zheng, Lei
2017-03-16 00:43:38 +08:00
committed by wmayer
parent 38abd868a7
commit 92ea1ac578

View File

@@ -1003,7 +1003,6 @@ void DocumentItem::slotNewObject(DocumentObjectItem *parent,
std::string name = obj.getObject()->getNameInDocument();
auto &ptrs = ObjectMap[name];
if(!ptrs) {
assert(parent==NULL);
ptrs.reset(new DocumentObjectItems);
}else if(ptrs->size() && parent==NULL) {
Base::Console().Warning("DocumentItem::slotNewObject: Cannot add view provider twice.\n");