src/editmodes/drawMode.cc

changeset 928
0fef7bb7b7a2
parent 927
409b82a4765e
equal deleted inserted replaced
927:409b82a4765e 928:0fef7bb7b7a2
89 LDObjectList objs; 89 LDObjectList objs;
90 90
91 switch (verts.size()) 91 switch (verts.size())
92 { 92 {
93 case 1: 93 case 1:
94 { 94 return;
95 // 1 vertex - add a vertex object
96 LDVertexPtr obj = LDSpawn<LDVertex>();
97 obj->pos = verts[0];
98 obj->setColor (MainColor());
99 objs << obj;
100 break;
101 }
102 95
103 case 2: 96 case 2:
104 { 97 {
105 // 2 verts - make a line 98 // 2 verts - make a line
106 LDLinePtr obj = LDSpawn<LDLine> (verts[0], verts[1]); 99 LDLinePtr obj = LDSpawn<LDLine> (verts[0], verts[1]);

mercurial