MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / OnDebugDrawSelected

Method OnDebugDrawSelected

Source/Engine/Terrain/Terrain.cpp:664–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

662//#include "Engine/Debug/DebugDraw.h"
663
664void 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

Callers

nothing calls this directly

Calls 1

OnDebugDrawSelectedFunction · 0.85

Tested by

no test coverage detected