src/glCompiler.cc

changeset 945
c310073e4f22
parent 944
1a6f1997fcbe
child 946
9cbd658b63f9
equal deleted inserted replaced
944:1a6f1997fcbe 945:c310073e4f22
245 m_staged.removeOne (obj); 245 m_staged.removeOne (obj);
246 } 246 }
247 247
248 // ============================================================================= 248 // =============================================================================
249 // 249 //
250 void GLCompiler::compileDocument (LDDocumentPtr doc) 250 void GLCompiler::compileDocument (LDDocument* doc)
251 { 251 {
252 if (doc == null) 252 if (doc == null)
253 return; 253 return;
254 254
255 for (LDObject* obj : doc->objects()) 255 for (LDObject* obj : doc->objects())
354 break; 354 break;
355 } 355 }
356 356
357 case OBJ_Subfile: 357 case OBJ_Subfile:
358 { 358 {
359 LDSubfilePtr ref = static_cast<LDSubfile*> (obj); 359 LDSubfile* ref = static_cast<LDSubfile*> (obj);
360 auto data = ref->inlinePolygons(); 360 auto data = ref->inlinePolygons();
361 361
362 for (LDPolygon& poly : data) 362 for (LDPolygon& poly : data)
363 { 363 {
364 poly.id = obj->id(); 364 poly.id = obj->id();

mercurial