142 * - polygon is the polygon to colorise. |
142 * - polygon is the polygon to colorise. |
143 * - polygonOwner is the LDObject from which the polygon originated. |
143 * - polygonOwner is the LDObject from which the polygon originated. |
144 * - subclass provides context for the polygon. |
144 * - subclass provides context for the polygon. |
145 */ |
145 */ |
146 QColor GLCompiler::getColorForPolygon( |
146 QColor GLCompiler::getColorForPolygon( |
147 LDPolygon& polygon, |
147 const LDPolygon& polygon, |
148 const QModelIndex& polygonOwnerIndex, |
148 const QModelIndex& polygonOwnerIndex, |
149 VboSubclass subclass |
149 VboSubclass subclass |
150 ) { |
150 ) { |
151 QColor color; |
151 QColor color; |
152 LDObject* polygonOwner = m_renderer->model()->lookup(polygonOwnerIndex); |
152 LDObject* polygonOwner = m_renderer->model()->lookup(polygonOwnerIndex); |