sideeffects / HoudiniEngineForUnreal

Houdini Engine Plugin for Unreal Engine.
http://www.sidefx.com/unreal
Other
1.36k stars 374 forks source link

Fix nil matrix error when importing flat heightfields #107

Closed drichardson closed 5 years ago

drichardson commented 5 years ago

This addresses a problem that occurs when importing a flat heightfield.

The flat heightfield was creating a LandscapeTransform with a 0 Z component, which caused the following message to be logged when FMatrix::InverseFast was called from FLandscapeComponentSceneProxy::OnTransformChanged:

LogUnrealMath: Error: FMatrix::InverseFast(), trying to invert a NIL matrix, this results in NaNs! Use Inverse() instead.
dpernuit commented 5 years ago

Hi, Thanks a lot for sharing this with us. I've merged the change on our side, it will be in tomorrow's daily build (H17.5.400)