diff --git a/tools/vtooldetail.cpp b/tools/vtooldetail.cpp index 93c1c8f3d..56126fcef 100644 --- a/tools/vtooldetail.cpp +++ b/tools/vtooldetail.cpp @@ -166,6 +166,14 @@ VToolDetail::VToolDetail(VDomDocument *doc, VContainer *data, const qint64 &id, tool->setParentItem(this); break; } + case(Tool::PointOfIntersection):{ + VModelingPointOfIntersection *tool = qobject_cast(tools->value(detail[i].getId())); + Q_ASSERT(tool != 0); + connect(tool, &VModelingPointOfIntersection::ChoosedTool, scene, &VMainGraphicsScene::ChoosedItem); + connect(tool, &VModelingPointOfIntersection::RemoveTool, scene, &VMainGraphicsScene::RemoveTool); + tool->setParentItem(this); + break; + } default: qWarning()<<"Get wrong tool type. Ignore."; break;