From f6db9978d2c7a28639c54fd752bf7e391e22f935 Mon Sep 17 00:00:00 2001 From: Hirek193 Date: Thu, 26 Mar 2026 16:47:11 +0100 Subject: [PATCH] Remove NodeLODController --- entitysystem/components/RenderComponents.h | 12 ------------ simulation/simulationstateserializer.cpp | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/entitysystem/components/RenderComponents.h b/entitysystem/components/RenderComponents.h index 5fe1c458..ef8cf7f6 100644 --- a/entitysystem/components/RenderComponents.h +++ b/entitysystem/components/RenderComponents.h @@ -30,17 +30,5 @@ struct LODController double RangeMax; }; -/// -/// Component for entities that can be rendered with LOD -/// -/// -/// Has higher priority as it's for node objects -/// -struct NodeLODController -{ - double RangeMin; - double RangeMax; -}; - } // namespace ECSComponent #endif // EU07_RENDERCOMPONENTS_H diff --git a/simulation/simulationstateserializer.cpp b/simulation/simulationstateserializer.cpp index 51c84c88..0a694336 100644 --- a/simulation/simulationstateserializer.cpp +++ b/simulation/simulationstateserializer.cpp @@ -437,7 +437,7 @@ state_serializer::deserialize_node( cParser &Input, scene::scratch_data &Scratch nodeTransform.Rotation = Scratchpad.location.rotation; //nodeTransform.Scale = Scratchpad.location.scale; - auto lodController = CS.AddComponent(CSEntity); + auto lodController = CS.AddComponent(CSEntity); lodController.RangeMax = nodedata.range_max; lodController.RangeMin = nodedata.range_min;