src/glcompiler.cpp

changeset 1427
b7ba2af33c13
parent 1416
ba63c7286767
child 1428
ece049033adc
equal deleted inserted replaced
1426:e5a2ddfe2ba5 1427:b7ba2af33c13
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);

mercurial