Skip to content

Commit

Permalink
Fixes for the UE5.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
dpernuit committed Apr 6, 2022
1 parent b8b9084 commit 5e9bac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/HoudiniNiagara/Private/HoudiniPointCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}
Expand Down

0 comments on commit 5e9bac6

Please sign in to comment.