MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / EndTransformation

Function EndTransformation

Source/Editors/map_editor.cpp:3465–3481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3463}
3464
3465static 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
3483void MapEditor::UpdateTransformTool(SceneGraph* scenegraph, EditorTypes::Tool type, const LineSegment& mouseray, const Collision& c, GameCursor* cursor) {
3484 PROFILER_ZONE(g_profiler_ctx, "UpdateTransformTool()");

Callers 1

UpdateTransformToolMethod · 0.85

Calls 5

SelectedMethod · 0.80
GetFunction · 0.50
IgnoreMouseInputMethod · 0.45
SetRotationMethod · 0.45

Tested by

no test coverage detected