diff --git a/src/Gui/Tree.cpp b/src/Gui/Tree.cpp index 12f6b3f930..73799cd14d 100644 --- a/src/Gui/Tree.cpp +++ b/src/Gui/Tree.cpp @@ -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");