diff --git a/MovePlugin.cc b/MovePlugin.cc index 77fe8033f21aab192d5efbd70d5b7964da51fd13..f70a9bdba571049e1b9c2f80c7a7a8ccf4c6b5c1 100644 --- a/MovePlugin.cc +++ b/MovePlugin.cc @@ -452,7 +452,7 @@ void MovePlugin::moveObject(ACG::Matrix4x4d mat, int _id) { return; } - emit updatedObject(_id); + emit updatedObject(_id, UPDATE_GEOMETRY); emit createBackup(_id,"Move"); } @@ -477,7 +477,7 @@ void MovePlugin::moveSelection(ACG::Matrix4x4d mat, int _id) { else if (selectionType_ == EDGE) transformEdgeSelection( _id , mat ); - emit updatedObject(_id); + emit updatedObject(_id, UPDATE_GEOMETRY); // emit createBackup(_id,"MoveSelection"); } @@ -1050,7 +1050,7 @@ void MovePlugin::slotTranslation() { object->manipulatorNode()->set_center( object->manipulatorNode()->center() + translation); emit createBackup(object->id(), "Translation"); - emit updatedObject(object->id()); + emit updatedObject(object->id(), UPDATE_GEOMETRY); } } else { return; @@ -1205,7 +1205,7 @@ void MovePlugin::slotRotate() { updateManipulatorDialog(); emit createBackup(object->id(), "Rotation"); - emit updatedObject(object->id()); + emit updatedObject(object->id(), UPDATE_GEOMETRY); } } @@ -1281,7 +1281,7 @@ void MovePlugin::slotScale() { updateManipulatorDialog(); emit createBackup(object->id(), "Scaling"); - emit updatedObject(object->id()); + emit updatedObject(object->id(), UPDATE_GEOMETRY); } } @@ -1378,7 +1378,7 @@ void MovePlugin::slotMoveToOrigin() { } #endif - emit updatedObject( o_it->id() ); + emit updatedObject( o_it->id(), UPDATE_GEOMETRY ); updateManipulatorDialog(); o_it->manipulatorNode()->loadIdentity(); @@ -1462,7 +1462,7 @@ void MovePlugin::slotUnifyBoundingBoxDiagonal() #endif } - emit updatedObject( o_it->id() ); + emit updatedObject( o_it->id(), UPDATE_GEOMETRY ); } diff --git a/MovePlugin.hh b/MovePlugin.hh index 4bca8825ac057804c4d9f992509dc4b86d4a4e8d..fae671cd99087f625a50c8ff51d1883ad57cef30 100644 --- a/MovePlugin.hh +++ b/MovePlugin.hh @@ -88,7 +88,7 @@ class MovePlugin : public QObject, BaseInterface, MouseInterface, KeyInterface, signals: // BaseInterface void updateView(); - void updatedObject(int); + void updatedObject(int, UpdateType _type); void nodeVisibilityChanged(int); // PickingInterface diff --git a/MovePluginScript.cc b/MovePluginScript.cc index 72613159fa51ba77ba4d4644e04fed989f0aa01b..524da49d0884739af46510ed45138fa76ffc54f7 100644 --- a/MovePluginScript.cc +++ b/MovePluginScript.cc @@ -162,7 +162,7 @@ void MovePlugin::translate( int _objectId , Vector _vector) { } #endif - emit updatedObject(_objectId); + emit updatedObject(_objectId, UPDATE_GEOMETRY); emit scriptInfo( "translate( ObjectId , Vector(" + QString::number( _vector[0] ) + " , " + @@ -234,7 +234,7 @@ void MovePlugin::translate( int _objectId , IdList _vHandles, Vector _vector ){ } #endif - emit updatedObject(_objectId); + emit updatedObject(_objectId, UPDATE_GEOMETRY); emit scriptInfo( "translate( ObjectId , Vector(" + QString::number( _vector[0] ) + " , " + @@ -305,7 +305,7 @@ void MovePlugin::translateSelection( int _objectId , Vector _vector) { } #endif - emit updatedObject(_objectId); + emit updatedObject(_objectId, UPDATE_GEOMETRY); emit scriptInfo( "translate( ObjectId , Vector(" + QString::number( _vector[0] ) + " , " + @@ -377,7 +377,7 @@ void MovePlugin::transform( int _objectId , Matrix4x4 _matrix ){ } #endif - emit updatedObject(_objectId); + emit updatedObject(_objectId, UPDATE_GEOMETRY); QString matString; for (int i=0; i < 4; i++) @@ -464,7 +464,7 @@ void MovePlugin::transform( int _objectId , IdList _vHandles, Matrix4x4 _matrix } #endif - emit updatedObject(_objectId); + emit updatedObject(_objectId, UPDATE_GEOMETRY); QString matString; for (int i=0; i < 4; i++) @@ -547,7 +547,7 @@ void MovePlugin::transformVertexSelection( int _objectId , Matrix4x4 _matrix ){ } #endif - emit updatedObject(_objectId); + emit updatedObject(_objectId, UPDATE_GEOMETRY); QString matString; for (int i=0; i < 4; i++) @@ -651,7 +651,7 @@ void MovePlugin::transformFaceSelection( int _objectId , Matrix4x4 _matrix ){ #endif - emit updatedObject(_objectId); + emit updatedObject(_objectId, UPDATE_GEOMETRY); QString matString; for (int i=0; i < 4; i++) @@ -771,7 +771,7 @@ void MovePlugin::transformEdgeSelection( int _objectId , Matrix4x4 _matrix ){ } #endif - emit updatedObject(_objectId); + emit updatedObject(_objectId, UPDATE_GEOMETRY); QString matString; for (int i=0; i < 4; i++)