MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / updateGridMaterials

Method updateGridMaterials

Engine/source/terrain/terrData.cpp:602–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600}
601
602void 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
620Point2I TerrainBlock::getGridPos( const Point3F &worldPos ) const

Callers 3

terrImport.cppFile · 0.80
gridUpdateCompleteMethod · 0.80

Calls 2

updateGridMethod · 0.45
triggerMethod · 0.45

Tested by

no test coverage detected