Skip to content

Commit 5e9bac6

Browse files
committed
Fixes for the UE5.0 release
1 parent b8b9084 commit 5e9bac6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/HoudiniNiagara/Private/HoudiniPointCache.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ bool UHoudiniPointCache::GetVectorValueForString(const int32& sampleIndex, const
196196
// Returns a Vector 4 for a given point in the Point Cache
197197
bool UHoudiniPointCache::GetVector4Value( const int32& sampleIndex, const int32& attrIndex, FVector4& value ) const
198198
{
199-
FVector4f V(FVector::ZeroVector, 0);
199+
FVector4f V(0.f, 0.f, 0.f, 0.f);
200200
if ( !GetFloatValue( sampleIndex, attrIndex, V.X ) )
201201
return false;
202202

@@ -209,7 +209,7 @@ bool UHoudiniPointCache::GetVector4Value( const int32& sampleIndex, const int32&
209209
if ( !GetFloatValue( sampleIndex, attrIndex + 3, V.W ) )
210210
return false;
211211

212-
value = FVector4(V.X, V.Y, V.Z, V.W);
212+
value = (FVector4)V;
213213

214214
return true;
215215
}

0 commit comments

Comments
 (0)