Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/gizmo/intern/wm_gizmo_map.c
| Show All 15 Lines | |||||
| * The Original Code is Copyright (C) 2014 Blender Foundation. | * The Original Code is Copyright (C) 2014 Blender Foundation. | ||||
| * All rights reserved. | * All rights reserved. | ||||
| */ | */ | ||||
| /** \file | /** \file | ||||
| * \ingroup wm | * \ingroup wm | ||||
| */ | */ | ||||
| #include <CLG_log.h> | |||||
| #include <string.h> | #include <string.h> | ||||
| #include "BLI_buffer.h" | #include "BLI_buffer.h" | ||||
| #include "BLI_ghash.h" | #include "BLI_ghash.h" | ||||
| #include "BLI_listbase.h" | #include "BLI_listbase.h" | ||||
| #include "BLI_math.h" | #include "BLI_math.h" | ||||
| #include "BLI_math_bits.h" | #include "BLI_math_bits.h" | ||||
| #include "BLI_rect.h" | #include "BLI_rect.h" | ||||
| ▲ Show 20 Lines • Show All 935 Lines • ▼ Show 20 Lines | if (screen) { | ||||
| for (area = screen->areabase.first; area; area = area->next) { | for (area = screen->areabase.first; area; area = area->next) { | ||||
| if (area == handler->context.area) { | if (area == handler->context.area) { | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| if (area == NULL) { | if (area == NULL) { | ||||
| /* when changing screen layouts with running modal handlers (like render display), this | /* when changing screen layouts with running modal handlers (like render display), this | ||||
| * is not an error to print */ | * is not an error to print */ | ||||
| printf("internal error: modal gizmo-map handler has invalid area\n"); | CLOG_ERROR(WM_LOG_GIZMO, "internal error: modal gizmo-map handler has invalid area"); | ||||
| } | } | ||||
| else { | else { | ||||
| ARegion *region; | ARegion *region; | ||||
| CTX_wm_area_set(C, area); | CTX_wm_area_set(C, area); | ||||
| for (region = area->regionbase.first; region; region = region->next) { | for (region = area->regionbase.first; region; region = region->next) { | ||||
| if (region == handler->context.region) { | if (region == handler->context.region) { | ||||
| break; | break; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 435 Lines • Show Last 20 Lines | |||||