| 3463 | } |
| 3464 | |
| 3465 | static void EndTransformation(SceneGraph* scenegraph, EditorTypes::Tool type, Object* control_obj, ControlEditorInfo* control_editor_info, GameCursor* cursor) { |
| 3466 | for (auto obj : scenegraph->objects_) { |
| 3467 | if (obj->Selected()) { |
| 3468 | obj->HandleTransformationOccurred(); |
| 3469 | } |
| 3470 | } |
| 3471 | if (control_obj != NULL) { |
| 3472 | // turn on camera controls |
| 3473 | if (ActiveCameras::Get()->m_camera_object != NULL) { |
| 3474 | ActiveCameras::Get()->m_camera_object->IgnoreMouseInput(false); |
| 3475 | } |
| 3476 | if (control_editor_info->tool_.mode == ROTATE_CIRCLE) { |
| 3477 | cursor->SetRotation(0); |
| 3478 | } |
| 3479 | control_obj = NULL; |
| 3480 | } |
| 3481 | } |
| 3482 | |
| 3483 | void MapEditor::UpdateTransformTool(SceneGraph* scenegraph, EditorTypes::Tool type, const LineSegment& mouseray, const Collision& c, GameCursor* cursor) { |
| 3484 | PROFILER_ZONE(g_profiler_ctx, "UpdateTransformTool()"); |
no test coverage detected