src/editmodes/drawMode.cc

changeset 944
1a6f1997fcbe
parent 897
ef9e4469975a
child 945
c310073e4f22
equal deleted inserted replaced
943:af81220741d9 944:1a6f1997fcbe
110 } 110 }
111 111
112 case 3: 112 case 3:
113 case 4: 113 case 4:
114 { 114 {
115 LDObjectPtr obj = (verts.size() == 3) ? 115 LDObject* obj = (verts.size() == 3) ?
116 static_cast<LDObjectPtr> (LDSpawn<LDTriangle>()) : 116 static_cast<LDObject*> (LDSpawn<LDTriangle>()) :
117 static_cast<LDObjectPtr> (LDSpawn<LDQuad>()); 117 static_cast<LDObject*> (LDSpawn<LDQuad>());
118 118
119 obj->setColor (MainColor()); 119 obj->setColor (MainColor());
120 120
121 for (int i = 0; i < verts.size(); ++i) 121 for (int i = 0; i < verts.size(); ++i)
122 obj->setVertex (i, verts[i]); 122 obj->setVertex (i, verts[i]);

mercurial