mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Fix for Issue #90 for Camera orbit object bug
This commit is contained in:
parent
9ed0f467d8
commit
497f3c96dc
5 changed files with 15 additions and 0 deletions
|
|
@ -2911,6 +2911,9 @@ void WorldEditor::dropCurrentSelection( bool skipUndo )
|
||||||
submitUndo( mSelected );
|
submitUndo( mSelected );
|
||||||
|
|
||||||
dropSelection( mSelected );
|
dropSelection( mSelected );
|
||||||
|
|
||||||
|
if ( mSelected->hasCentroidChanged() )
|
||||||
|
Con::executef( this, "onSelectionCentroidChanged" );
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldEditor::redirectConsole( S32 objID )
|
void WorldEditor::redirectConsole( S32 objID )
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,9 @@ function WorldEditor::onSelectionCentroidChanged( %this )
|
||||||
{
|
{
|
||||||
// Inform the camera
|
// Inform the camera
|
||||||
commandToServer('EditorOrbitCameraSelectChange', %this.getSelectionSize(), %this.getSelectionCentroid());
|
commandToServer('EditorOrbitCameraSelectChange', %this.getSelectionSize(), %this.getSelectionCentroid());
|
||||||
|
|
||||||
|
// Refresh inspector.
|
||||||
|
Inspector.refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,9 @@ function WorldEditor::onSelectionCentroidChanged( %this )
|
||||||
{
|
{
|
||||||
// Inform the camera
|
// Inform the camera
|
||||||
commandToServer('EditorOrbitCameraSelectChange', %this.getSelectionSize(), %this.getSelectionCentroid());
|
commandToServer('EditorOrbitCameraSelectChange', %this.getSelectionSize(), %this.getSelectionCentroid());
|
||||||
|
|
||||||
|
// Refresh inspector.
|
||||||
|
Inspector.refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,9 @@ function WorldEditor::onSelectionCentroidChanged( %this )
|
||||||
{
|
{
|
||||||
// Inform the camera
|
// Inform the camera
|
||||||
commandToServer('EditorOrbitCameraSelectChange', %this.getSelectionSize(), %this.getSelectionCentroid());
|
commandToServer('EditorOrbitCameraSelectChange', %this.getSelectionSize(), %this.getSelectionCentroid());
|
||||||
|
|
||||||
|
// Refresh inspector.
|
||||||
|
Inspector.refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,9 @@ function WorldEditor::onSelectionCentroidChanged( %this )
|
||||||
{
|
{
|
||||||
// Inform the camera
|
// Inform the camera
|
||||||
commandToServer('EditorOrbitCameraSelectChange', %this.getSelectionSize(), %this.getSelectionCentroid());
|
commandToServer('EditorOrbitCameraSelectChange', %this.getSelectionSize(), %this.getSelectionCentroid());
|
||||||
|
|
||||||
|
// Refresh inspector.
|
||||||
|
Inspector.refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue