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]); |