Skip to content

Commit d684a38

Browse files
committed
Fix tests to use new enum.
Signed-off-by: Danilo Aimini <[email protected]>
1 parent fd4c9cc commit d684a38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Gems/LmbrCentral/Code/Tests/SplineComponentTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ namespace UnitTest
106106
AZ_TEST_ASSERT(linearSplinePtr->GetVertexCount() == 4);
107107

108108
// change spline type to Bezier
109-
LmbrCentral::SplineComponentRequestBus::Event(entity.GetId(), &LmbrCentral::SplineComponentRequests::ChangeSplineType, AZ::BezierSpline::RTTI_Type().GetHash());
109+
LmbrCentral::SplineComponentRequestBus::Event(entity.GetId(), &LmbrCentral::SplineComponentRequests::ChangeSplineType, LmbrCentral::SplineType::BEZIER);
110110

111111
// check data was created after change correctly
112112
AZ::ConstSplinePtr bezierSplinePtr;
@@ -164,7 +164,7 @@ namespace UnitTest
164164
}
165165

166166
// change spline type to CatmullRom
167-
LmbrCentral::SplineComponentRequestBus::Event(entity.GetId(), &LmbrCentral::SplineComponentRequests::ChangeSplineType, AZ::CatmullRomSpline::RTTI_Type().GetHash());
167+
LmbrCentral::SplineComponentRequestBus::Event(entity.GetId(), &LmbrCentral::SplineComponentRequests::ChangeSplineType, LmbrCentral::SplineType::CATMULL_ROM);
168168

169169
AZ::ConstSplinePtr catmullRomSplinePtr;
170170
LmbrCentral::SplineComponentRequestBus::EventResult(catmullRomSplinePtr, entity.GetId(), &LmbrCentral::SplineComponentRequests::GetSpline);

0 commit comments

Comments
 (0)