mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Merge pull request #870 from eightyeight/fix-ear-transform
Andrew's fix for ear transform with detached camera
This commit is contained in:
commit
74e328d09b
1 changed files with 3 additions and 1 deletions
|
|
@ -91,7 +91,9 @@ void SFX3DObject::getEarTransform( MatrixF& transform ) const
|
||||||
if ( !shapeInstance )
|
if ( !shapeInstance )
|
||||||
{
|
{
|
||||||
// Just in case.
|
// Just in case.
|
||||||
transform = mObject->getTransform();
|
GameConnection* connection = dynamic_cast<GameConnection *>(NetConnection::getConnectionToServer());
|
||||||
|
if ( !connection || !connection->getControlCameraTransform( 0.0f, &transform ) )
|
||||||
|
transform = mObject->getTransform();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue