Andrew's fix for ear transform with detached camera.

This commit is contained in:
Daniel Buckmaster 2014-10-28 09:26:46 +11:00
parent a17a5ee43a
commit 355ce5d854

View file

@ -91,7 +91,9 @@ void SFX3DObject::getEarTransform( MatrixF& transform ) const
if ( !shapeInstance )
{
// Just in case.
transform = mObject->getTransform();
GameConnection* connection = dynamic_cast<GameConnection *>(NetConnection::getConnectionToServer());
if ( !connection || !connection->getControlCameraTransform( 0.0f, &transform ) )
transform = mObject->getTransform();
return;
}