16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00

Replace LODController with NodeLODController in deserialize_node

This commit is contained in:
2026-03-15 01:26:54 +01:00
parent de7dbadc47
commit a737e4ecaf

View File

@@ -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<ECSComponent::LODController>(CSEntity);
auto lodController = CS.AddComponent<ECSComponent::NodeLODController>(CSEntity);
lodController.RangeMax = nodedata.range_max;
lodController.RangeMin = nodedata.range_min;