src/glRenderer.cpp

changeset 1219
8e39b5d7c562
parent 1218
e0b59d183f96
child 1222
34def2630300
equal deleted inserted replaced
1218:e0b59d183f96 1219:8e39b5d7c562
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();

mercurial