Added sane limit for specified LOD dist on menyoo XML import

This commit is contained in:
PNWParksFan 2020-11-07 02:53:03 -08:00
parent bb453883c2
commit 591f93907f

View File

@ -2371,7 +2371,7 @@ namespace CodeWalker.Project
cent.scaleZ = 1.0f;
cent.flags = placement.Dynamic ? 0 : 32u;// 1572872; //32 = static
cent.parentIndex = -1;
cent.lodDist = placement.LodDistance;
cent.lodDist = (placement.LodDistance < 10000) ? placement.LodDistance : -1;
cent.lodLevel = rage__eLodType.LODTYPES_DEPTH_ORPHANHD;
cent.priorityLevel = rage__ePriorityLevel.PRI_REQUIRED;
cent.ambientOcclusionMultiplier = 255;