Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/gizmo/intern/wm_gizmo_type.c
| Show All 15 Lines | |||||
| /** \file | /** \file | ||||
| * \ingroup wm | * \ingroup wm | ||||
| */ | */ | ||||
| #include "BLI_ghash.h" | #include "BLI_ghash.h" | ||||
| #include "BLI_listbase.h" | #include "BLI_listbase.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include <CLG_log.h> | |||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_main.h" | #include "BKE_main.h" | ||||
| #include "DNA_screen_types.h" | #include "DNA_screen_types.h" | ||||
| #include "DNA_space_types.h" | #include "DNA_space_types.h" | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| Show All 26 Lines | if (idname[0]) { | ||||
| wmGizmoType *gzt; | wmGizmoType *gzt; | ||||
| gzt = BLI_ghash_lookup(global_gizmotype_hash, idname); | gzt = BLI_ghash_lookup(global_gizmotype_hash, idname); | ||||
| if (gzt) { | if (gzt) { | ||||
| return gzt; | return gzt; | ||||
| } | } | ||||
| if (!quiet) { | if (!quiet) { | ||||
| printf("search for unknown gizmo '%s'\n", idname); | CLOG_INFO(WM_LOG_GIZMO, "search for unknown gizmo '%s'", idname); | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| if (!quiet) { | if (!quiet) { | ||||
| printf("search for empty gizmo\n"); | CLOG_INFO(WM_LOG_GIZMO, "search for empty gizmo"); | ||||
| } | } | ||||
| } | } | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| /* caller must free */ | /* caller must free */ | ||||
| void WM_gizmotype_iter(GHashIterator *ghi) | void WM_gizmotype_iter(GHashIterator *ghi) | ||||
| ▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines | |||||