Skip to content
Snippets Groups Projects
Commit f0a61d7a authored by Lynch, Vickie's avatar Lynch, Vickie
Browse files

Refs #2763 Fixed MoveInstrumentComponent for new groups in SNAP

parent 880a495e
Branches 28238_updated_indirect_release_notes
No related tags found
No related merge requests found
...@@ -109,6 +109,13 @@ void MoveInstrumentComponent::exec() ...@@ -109,6 +109,13 @@ void MoveInstrumentComponent::exec()
rot.inverse(); rot.inverse();
rot.rotate(Pos); rot.rotate(Pos);
} }
boost::shared_ptr<const IComponent>grandparent = parent->getParent();
if (grandparent)
{
Quat rot = grandparent->getRelativeRot();
rot.inverse();
rot.rotate(Pos);
}
Geometry::ParameterMap& pmap = WS->instrumentParameters(); Geometry::ParameterMap& pmap = WS->instrumentParameters();
// Add a parameter for the new position // Add a parameter for the new position
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment