| 600 | } |
| 601 | |
| 602 | void TerrainBlock::updateGridMaterials( const Point2I &minPt, const Point2I &maxPt ) |
| 603 | { |
| 604 | if ( mCell ) |
| 605 | { |
| 606 | // Tell the terrain cell that something changed. |
| 607 | const RectI gridRect( minPt, maxPt - minPt ); |
| 608 | mCell->updateGrid( gridRect, true ); |
| 609 | } |
| 610 | |
| 611 | // We mark us as dirty... it will be updated |
| 612 | // before the next time we render the terrain. |
| 613 | mLayerTexDirty = true; |
| 614 | |
| 615 | // Signal anyone that cares that the opacity was changed. |
| 616 | smUpdateSignal.trigger( LayersUpdate, this, minPt, maxPt ); |
| 617 | } |
| 618 | |
| 619 | |
| 620 | Point2I TerrainBlock::getGridPos( const Point3F &worldPos ) const |
no test coverage detected