src/toolsets/filetoolset.cpp

changeset 1231
ce0c9f2e6b9c
parent 1224
5a31b6d4bf81
equal deleted inserted replaced
1230:29dc03eceb5f 1231:ce0c9f2e6b9c
132 132
133 for (LDObject* obj : objs) 133 for (LDObject* obj : objs)
134 { 134 {
135 currentDocument()->insertObj(idx, obj); 135 currentDocument()->insertObj(idx, obj);
136 obj->select(); 136 obj->select();
137 m_window->renderer()->compileObject(obj); 137 m_window->currentRenderer()->compileObject(obj);
138 138
139 idx++; 139 idx++;
140 } 140 }
141 141
142 m_window->refresh(); 142 m_window->refresh();
191 PartDownloader* dialog = new PartDownloader(m_window); 191 PartDownloader* dialog = new PartDownloader(m_window);
192 connect(dialog, &PartDownloader::primaryFileDownloaded, [&]() 192 connect(dialog, &PartDownloader::primaryFileDownloaded, [&]()
193 { 193 {
194 m_window->changeDocument(dialog->primaryFile()); 194 m_window->changeDocument(dialog->primaryFile());
195 m_window->doFullRefresh(); 195 m_window->doFullRefresh();
196 m_window->renderer()->resetAngles(); 196 m_window->currentRenderer()->resetAngles();
197 }); 197 });
198 dialog->exec(); 198 dialog->exec();
199 } 199 }
200 200
201 void FileToolset::makePrimitive() 201 void FileToolset::makePrimitive()

mercurial