| 662 | //#include "Engine/Debug/DebugDraw.h" |
| 663 | |
| 664 | void Terrain::OnDebugDrawSelected() |
| 665 | { |
| 666 | Actor::OnDebugDrawSelected(); |
| 667 | |
| 668 | /* |
| 669 | // TODO: add editor option to draw selected terrain chunks bounds? |
| 670 | for (int32 pathIndex = 0; pathIndex < _patches.Count(); pathIndex++) |
| 671 | { |
| 672 | const auto patch = _patches[pathIndex]; |
| 673 | for (int32 chunkIndex = 0; chunkIndex < Terrain::ChunksCount; chunkIndex++) |
| 674 | { |
| 675 | auto chunk = &patch->Chunks[chunkIndex]; |
| 676 | DebugDraw::DrawBox(chunk->_bounds, Color(chunk->_x / (float)Terrain::ChunksCountEdge, 1.0f, chunk->_z / (float)Terrain::ChunksCountEdge)); |
| 677 | } |
| 678 | } |
| 679 | */ |
| 680 | } |
| 681 | |
| 682 | #endif |
| 683 |
nothing calls this directly
no test coverage detected