144 { |
144 { |
145 Model::EditContext edit = document->editModel(); |
145 Model::EditContext edit = document->editModel(); |
146 switch (this->polygon.size()) |
146 switch (this->polygon.size()) |
147 { |
147 { |
148 case 2: |
148 case 2: |
149 edit.append<ldraw::Edge>(vectorToArray<2>(this->polygon), ldraw::edgeColor); |
149 edit.append<ldraw::Edge>(vectorToArray<2>(this->polygon), ldraw::EDGE_COLOR); |
150 break; |
150 break; |
151 case 3: |
151 case 3: |
152 edit.append<ldraw::Triangle>(vectorToArray<3>(this->polygon), ldraw::mainColor); |
152 edit.append<ldraw::Triangle>(vectorToArray<3>(this->polygon), ldraw::MAIN_COLOR); |
153 break; |
153 break; |
154 case 4: |
154 case 4: |
155 edit.append<ldraw::Quadrilateral>(vectorToArray<4>(this->polygon), ldraw::mainColor); |
155 edit.append<ldraw::Quadrilateral>(vectorToArray<4>(this->polygon), ldraw::MAIN_COLOR); |
156 break; |
156 break; |
157 } |
157 } |
158 } |
158 } |
159 this->polygon.clear(); |
159 this->polygon.clear(); |
160 } |
160 } |