|
@@ -1397,8 +1397,9 @@ void DrawNodeDebug(Node@ node, DebugRenderer@ debug, bool drawNode = true)
|
|
|
debug.AddNode(node, 1.0, false);
|
|
debug.AddNode(node, 1.0, false);
|
|
|
|
|
|
|
|
// Exception for the scene to avoid bringing the editor to its knees: drawing either the whole hierarchy or the subsystem-
|
|
// Exception for the scene to avoid bringing the editor to its knees: drawing either the whole hierarchy or the subsystem-
|
|
|
- // components can have a large performance hit
|
|
|
|
|
- if (node !is editorScene)
|
|
|
|
|
|
|
+ // components can have a large performance hit. Also do not draw terrain child nodes due to their large amount
|
|
|
|
|
+ // (TerrainPatch component itself draws nothing as debug geometry)
|
|
|
|
|
+ if (node !is editorScene && node.GetComponent("Terrain") is null)
|
|
|
{
|
|
{
|
|
|
for (uint j = 0; j < node.numComponents; ++j)
|
|
for (uint j = 0; j < node.numComponents; ++j)
|
|
|
node.components[j].DrawDebugGeometry(debug, false);
|
|
node.components[j].DrawDebugGeometry(debug, false);
|