1593 QString primitiveName = item->primitive()->name; |
1593 QString primitiveName = item->primitive()->name; |
1594 LDSubfileReference* ref = LDSpawn<LDSubfileReference>(); |
1594 LDSubfileReference* ref = LDSpawn<LDSubfileReference>(); |
1595 ref->setColor(MainColor); |
1595 ref->setColor(MainColor); |
1596 ref->setFileInfo(m_documents->getDocumentByName(primitiveName)); |
1596 ref->setFileInfo(m_documents->getDocumentByName(primitiveName)); |
1597 ref->setPosition(Vertex {}); |
1597 ref->setPosition(Vertex {}); |
1598 ref->setTransform(IdentityMatrix); |
1598 ref->setTransform(Matrix {}); |
1599 currentDocument()->insertObj(m_window->suggestInsertPoint(), ref); |
1599 currentDocument()->insertObj(m_window->suggestInsertPoint(), ref); |
1600 ref->select(); |
1600 ref->select(); |
1601 m_window->buildObjectList(); |
1601 m_window->buildObjectList(); |
1602 m_window->renderer()->refresh(); |
1602 m_window->renderer()->refresh(); |
1603 ev->acceptProposedAction(); |
1603 ev->acceptProposedAction(); |