diff --git a/Source/HoudiniNiagara/Private/HoudiniPointCache.cpp b/Source/HoudiniNiagara/Private/HoudiniPointCache.cpp index f82ad26..a5be76a 100644 --- a/Source/HoudiniNiagara/Private/HoudiniPointCache.cpp +++ b/Source/HoudiniNiagara/Private/HoudiniPointCache.cpp @@ -196,7 +196,7 @@ bool UHoudiniPointCache::GetVectorValueForString(const int32& sampleIndex, const // Returns a Vector 4 for a given point in the Point Cache bool UHoudiniPointCache::GetVector4Value( const int32& sampleIndex, const int32& attrIndex, FVector4& value ) const { - FVector4f V(FVector::ZeroVector, 0); + FVector4f V(0.f, 0.f, 0.f, 0.f); if ( !GetFloatValue( sampleIndex, attrIndex, V.X ) ) return false; @@ -209,7 +209,7 @@ bool UHoudiniPointCache::GetVector4Value( const int32& sampleIndex, const int32& if ( !GetFloatValue( sampleIndex, attrIndex + 3, V.W ) ) return false; - value = FVector4(V.X, V.Y, V.Z, V.W); + value = (FVector4)V; return true; }