LmbrCentral
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -355,7 +355,7 @@ namespace LmbrCentral
|
||||
return;
|
||||
}
|
||||
|
||||
const AZ::u32 segments = segmentCount * spline->GetSegmentGranularity() + segmentCount - 1;
|
||||
const AZ::u32 segments = static_cast<AZ::u32>(segmentCount * spline->GetSegmentGranularity() + segmentCount - 1);
|
||||
const AZ::u32 totalSegments = segments + capSegments * 2;
|
||||
const AZ::u32 capSegmentTipVerts = capSegments > 0 ? 2 : 0;
|
||||
const size_t numVerts = sides * (totalSegments + 1) + capSegmentTipVerts;
|
||||
@@ -594,7 +594,7 @@ namespace LmbrCentral
|
||||
// to ensure the total radius stays positive
|
||||
if (GetTotalRadius(AZ::SplineAddress(vertIndex)) < 0.0f)
|
||||
{
|
||||
SetVariableRadius(vertIndex, -GetRadius());
|
||||
SetVariableRadius(static_cast<int>(vertIndex), -GetRadius());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -406,7 +406,7 @@ namespace UnitTest
|
||||
float variableRadius = 0.0f;
|
||||
LmbrCentral::TubeShapeComponentRequestsBus::EventResult(
|
||||
variableRadius, entity.GetId(), &LmbrCentral::TubeShapeComponentRequestsBus::Events::GetVariableRadius,
|
||||
vertIndex);
|
||||
static_cast<int>(vertIndex));
|
||||
|
||||
EXPECT_THAT(totalRadius, FloatEq(radiis.first));
|
||||
EXPECT_THAT(variableRadius, FloatEq(radiis.second));
|
||||
|
||||
Reference in New Issue
Block a user