src/editmodes/circleMode.cpp

changeset 996
9ecc878c7dea
parent 986
525921eae58c
equal deleted inserted replaced
995:7986584e7498 996:9ecc878c7dea
108 for (const RingFinder::Component& cmp : g_RingFinder.bestSolution()->getComponents()) 108 for (const RingFinder::Component& cmp : g_RingFinder.bestSolution()->getComponents())
109 { 109 {
110 refFile = GetPrimitive (::Ring, segments, divisions, cmp.num); 110 refFile = GetPrimitive (::Ring, segments, divisions, cmp.num);
111 LDSubfile* ref = LDSpawn<LDSubfile>(); 111 LDSubfile* ref = LDSpawn<LDSubfile>();
112 ref->setFileInfo (refFile); 112 ref->setFileInfo (refFile);
113 ref->setTransform (getCircleDrawMatrix (cmp.scale)); 113 ref->setTransformationMatrix (getCircleDrawMatrix (cmp.scale));
114 ref->setPosition (m_drawedVerts[0]); 114 ref->setPosition (m_drawedVerts[0]);
115 ref->setColor (MainColor); 115 ref->setColor (MainColor);
116 objs << ref; 116 objs << ref;
117 } 117 }
118 } 118 }
161 161
162 if (circleOrDisc and refFile) 162 if (circleOrDisc and refFile)
163 { 163 {
164 LDSubfile* ref = LDSpawn<LDSubfile>(); 164 LDSubfile* ref = LDSpawn<LDSubfile>();
165 ref->setFileInfo (refFile); 165 ref->setFileInfo (refFile);
166 ref->setTransform (transform); 166 ref->setTransformationMatrix (transform);
167 ref->setPosition (m_drawedVerts[0]); 167 ref->setPosition (m_drawedVerts[0]);
168 ref->setColor (MainColor); 168 ref->setColor (MainColor);
169 objs << ref; 169 objs << ref;
170 } 170 }
171 171

mercurial