@@ -69,7 +69,7 @@ void URuntimeMeshBlueprintFunctions::EmptyPositions(FRuntimeMeshVertexPositionSt
6969void URuntimeMeshBlueprintFunctions::AddPosition (FRuntimeMeshVertexPositionStream& Stream, FRuntimeMeshVertexPositionStream& OutStream, FVector InPosition, int32& OutIndex)
7070{
7171 OutStream = Stream;
72- OutIndex = Stream.Add (InPosition);
72+ OutIndex = Stream.Add (FVector3f ( InPosition) );
7373}
7474
7575void URuntimeMeshBlueprintFunctions::AppendPositions (FRuntimeMeshVertexPositionStream& Stream, FRuntimeMeshVertexPositionStream& OutStream, const FRuntimeMeshVertexPositionStream& InOther)
@@ -81,19 +81,19 @@ void URuntimeMeshBlueprintFunctions::AppendPositions(FRuntimeMeshVertexPositionS
8181void URuntimeMeshBlueprintFunctions::GetPosition (FRuntimeMeshVertexPositionStream& Stream, FRuntimeMeshVertexPositionStream& OutStream, int32 Index, FVector& OutPosition)
8282{
8383 OutStream = Stream;
84- OutPosition = Stream.GetPosition (Index);
84+ OutPosition = FVector ( Stream.GetPosition (Index) );
8585}
8686
8787void URuntimeMeshBlueprintFunctions::SetPosition (FRuntimeMeshVertexPositionStream& Stream, FRuntimeMeshVertexPositionStream& OutStream, int32 Index, FVector NewPosition)
8888{
8989 OutStream = Stream;
90- Stream.SetPosition (Index, NewPosition);
90+ Stream.SetPosition (Index, FVector3f ( NewPosition) );
9191}
9292
9393void URuntimeMeshBlueprintFunctions::GetBounds (FRuntimeMeshVertexPositionStream& Stream, FRuntimeMeshVertexPositionStream& OutStream, FBox& OutBounds)
9494{
9595 OutStream = Stream;
96- OutBounds = Stream.GetBounds ();
96+ OutBounds = FBox ( Stream.GetBounds () );
9797}
9898
9999
@@ -120,13 +120,13 @@ void URuntimeMeshBlueprintFunctions::EmptyTangents(FRuntimeMeshVertexTangentStre
120120void URuntimeMeshBlueprintFunctions::AddNormalAndTangent (FRuntimeMeshVertexTangentStream& Stream, FRuntimeMeshVertexTangentStream& OutStream, FVector InNormal, FVector InTangent, int32& OutIndex)
121121{
122122 OutStream = Stream;
123- OutIndex = Stream.Add (InNormal, InTangent);
123+ OutIndex = Stream.Add (FVector3f ( InNormal), FVector3f ( InTangent) );
124124}
125125
126126void URuntimeMeshBlueprintFunctions::AddTangents (FRuntimeMeshVertexTangentStream& Stream, FRuntimeMeshVertexTangentStream& OutStream, FVector InTangentX, FVector InTangentY, FVector InTangentZ, int32& OutIndex)
127127{
128128 OutStream = Stream;
129- OutIndex = Stream.Add (InTangentX, InTangentY, InTangentZ);
129+ OutIndex = Stream.Add (FVector3f ( InTangentX), FVector3f ( InTangentY), FVector3f ( InTangentZ) );
130130}
131131
132132void URuntimeMeshBlueprintFunctions::AppendTangents (FRuntimeMeshVertexTangentStream& Stream, FRuntimeMeshVertexTangentStream& OutStream, const FRuntimeMeshVertexTangentStream& InOther)
@@ -138,41 +138,41 @@ void URuntimeMeshBlueprintFunctions::AppendTangents(FRuntimeMeshVertexTangentStr
138138void URuntimeMeshBlueprintFunctions::GetNormal (FRuntimeMeshVertexTangentStream& Stream, FRuntimeMeshVertexTangentStream& OutStream, int32 Index, FVector& OutNormal)
139139{
140140 OutStream = Stream;
141- OutNormal = Stream.GetNormal (Index);
141+ OutNormal = FVector ( Stream.GetNormal (Index) );
142142}
143143
144144void URuntimeMeshBlueprintFunctions::SetNormal (FRuntimeMeshVertexTangentStream& Stream, FRuntimeMeshVertexTangentStream& OutStream, int32 Index, FVector NewNormal)
145145{
146146 OutStream = Stream;
147- Stream.SetNormal (Index, NewNormal);
147+ Stream.SetNormal (Index, FVector3f ( NewNormal) );
148148}
149149
150150void URuntimeMeshBlueprintFunctions::GetTangent (FRuntimeMeshVertexTangentStream& Stream, FRuntimeMeshVertexTangentStream& OutStream, int32 Index, FVector& OutTangent)
151151{
152152 OutStream = Stream;
153- OutTangent = Stream.GetTangent (Index);
153+ OutTangent = FVector ( Stream.GetTangent (Index) );
154154}
155155
156156void URuntimeMeshBlueprintFunctions::SetTangent (FRuntimeMeshVertexTangentStream& Stream, FRuntimeMeshVertexTangentStream& OutStream, int32 Index, FVector NewTangent)
157157{
158158 OutStream = Stream;
159- Stream.SetTangent (Index, NewTangent);
159+ Stream.SetTangent (Index, FVector3f ( NewTangent) );
160160}
161161
162162void URuntimeMeshBlueprintFunctions::GetTangents (FRuntimeMeshVertexTangentStream& Stream, FRuntimeMeshVertexTangentStream& OutStream, int32 Index, FVector& OutTangentX, FVector& OutTangentY, FVector& OutTangentZ)
163163{
164164 OutStream = Stream;
165165 FVector3f tangentX, tangentY, tangentZ;
166166 Stream.GetTangents (Index, tangentX, tangentY, tangentZ);
167- OutTangentX = ( FVector) tangentX;
168- OutTangentY = ( FVector) tangentY;
169- OutTangentZ = ( FVector) tangentZ;
167+ OutTangentX = FVector ( tangentX) ;
168+ OutTangentY = FVector ( tangentY) ;
169+ OutTangentZ = FVector ( tangentZ) ;
170170}
171171
172172void URuntimeMeshBlueprintFunctions::SetTangents (FRuntimeMeshVertexTangentStream& Stream, FRuntimeMeshVertexTangentStream& OutStream, int32 Index, FVector InTangentX, FVector InTangentY, FVector InTangentZ)
173173{
174174 OutStream = Stream;
175- Stream.SetTangents (Index, InTangentX, InTangentY, InTangentZ);
175+ Stream.SetTangents (Index, FVector3f ( InTangentX), FVector3f ( InTangentY), FVector3f ( InTangentZ) );
176176}
177177
178178
@@ -379,19 +379,19 @@ void URuntimeMeshBlueprintFunctions::EmptyCollisionVertices(FRuntimeMeshCollisio
379379void URuntimeMeshBlueprintFunctions::AddCollisionVertex (FRuntimeMeshCollisionVertexStream& Stream, FRuntimeMeshCollisionVertexStream& OutStream, FVector InVertex, int32& OutIndex)
380380{
381381 OutStream = Stream;
382- OutIndex = Stream.Add (InVertex);
382+ OutIndex = Stream.Add (FVector3f ( InVertex) );
383383}
384384
385385void URuntimeMeshBlueprintFunctions::GetCollisionVertex (FRuntimeMeshCollisionVertexStream& Stream, FRuntimeMeshCollisionVertexStream& OutStream, int32 Index, FVector& OutVertex)
386386{
387387 OutStream = Stream;
388- OutVertex = Stream.GetPosition (Index);
388+ OutVertex = FVector ( Stream.GetPosition (Index) );
389389}
390390
391391void URuntimeMeshBlueprintFunctions::SetCollisionVertex (FRuntimeMeshCollisionVertexStream& Stream, FRuntimeMeshCollisionVertexStream& OutStream, int32 Index, FVector NewVertex)
392392{
393393 OutStream = Stream;
394- Stream.SetPosition (Index, NewVertex);
394+ Stream.SetPosition (Index, FVector3f ( NewVertex) );
395395}
396396
397397
0 commit comments