mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 22:09:19 +02:00
Replace LODController with NodeLODController in deserialize_node
This commit is contained in:
@@ -437,7 +437,7 @@ state_serializer::deserialize_node( cParser &Input, scene::scratch_data &Scratch
|
|||||||
nodeTransform.Rotation = Scratchpad.location.rotation;
|
nodeTransform.Rotation = Scratchpad.location.rotation;
|
||||||
//nodeTransform.Scale = Scratchpad.location.scale;
|
//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.RangeMax = nodedata.range_max;
|
||||||
lodController.RangeMin = nodedata.range_min;
|
lodController.RangeMin = nodedata.range_min;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user