Reduced distance of moved instanced of ISM and forced a move on a variable
This commit is contained in:
parent
03b354d291
commit
b58f86382d
|
@ -112,7 +112,7 @@ void UObjectRegister::RegisterEnvironmentObject(
|
|||
EnvironmentObject.BoundingBox = BoundingBox;
|
||||
EnvironmentObject.ObjectLabel = static_cast<crp::CityObjectLabel>(Tag);
|
||||
EnvironmentObject.Type = Type;
|
||||
EnvironmentObjects.Emplace(EnvironmentObject);
|
||||
EnvironmentObjects.Emplace(std::move(EnvironmentObject));
|
||||
}
|
||||
|
||||
void UObjectRegister::RegisterVehicle(ACarlaWheeledVehicle* Vehicle)
|
||||
|
@ -377,7 +377,7 @@ void UObjectRegister::EnableISMComp(FEnvironmentObject& EnvironmentObject, bool
|
|||
|
||||
if(!Enable)
|
||||
{
|
||||
InstanceTransform.SetTranslation(FVector(5000000.0f));
|
||||
InstanceTransform.SetTranslation(FVector(1000000.0f));
|
||||
InstanceTransform.SetScale3D(FVector(0.0f));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue