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;