Merge pull request #93 from DavidWyand-GG/issue90-CameraOrbitObjectMove

Fix for Issue #90 for Camera orbit object bug
This commit is contained in:
David Wyand 2012-10-17 00:01:12 -07:00
commit 18c716a304
5 changed files with 15 additions and 0 deletions

View file

@ -2911,6 +2911,9 @@ void WorldEditor::dropCurrentSelection( bool skipUndo )
submitUndo( mSelected );
dropSelection( mSelected );
if ( mSelected->hasCentroidChanged() )
Con::executef( this, "onSelectionCentroidChanged" );
}
void WorldEditor::redirectConsole( S32 objID )

View file

@ -119,6 +119,9 @@ function WorldEditor::onSelectionCentroidChanged( %this )
{
// Inform the camera
commandToServer('EditorOrbitCameraSelectChange', %this.getSelectionSize(), %this.getSelectionCentroid());
// Refresh inspector.
Inspector.refresh();
}
//////////////////////////////////////////////////////////////////////////

View file

@ -119,6 +119,9 @@ function WorldEditor::onSelectionCentroidChanged( %this )
{
// Inform the camera
commandToServer('EditorOrbitCameraSelectChange', %this.getSelectionSize(), %this.getSelectionCentroid());
// Refresh inspector.
Inspector.refresh();
}
//////////////////////////////////////////////////////////////////////////

View file

@ -119,6 +119,9 @@ function WorldEditor::onSelectionCentroidChanged( %this )
{
// Inform the camera
commandToServer('EditorOrbitCameraSelectChange', %this.getSelectionSize(), %this.getSelectionCentroid());
// Refresh inspector.
Inspector.refresh();
}
//////////////////////////////////////////////////////////////////////////

View file

@ -119,6 +119,9 @@ function WorldEditor::onSelectionCentroidChanged( %this )
{
// Inform the camera
commandToServer('EditorOrbitCameraSelectChange', %this.getSelectionSize(), %this.getSelectionCentroid());
// Refresh inspector.
Inspector.refresh();
}
//////////////////////////////////////////////////////////////////////////