Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/gizmo/intern/wm_gizmo_group_type.c
| Show All 14 Lines | |||||
| */ | */ | ||||
| /** \file | /** \file | ||||
| * \ingroup wm | * \ingroup wm | ||||
| */ | */ | ||||
| #include "BLI_ghash.h" | #include "BLI_ghash.h" | ||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include <CLG_log.h> | |||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "RNA_access.h" | #include "RNA_access.h" | ||||
| #include "RNA_define.h" | #include "RNA_define.h" | ||||
| Show All 20 Lines | if (idname[0]) { | ||||
| wmGizmoGroupType *gzgt; | wmGizmoGroupType *gzgt; | ||||
| gzgt = BLI_ghash_lookup(global_gizmogrouptype_hash, idname); | gzgt = BLI_ghash_lookup(global_gizmogrouptype_hash, idname); | ||||
| if (gzgt) { | if (gzgt) { | ||||
| return gzgt; | return gzgt; | ||||
| } | } | ||||
| if (!quiet) { | if (!quiet) { | ||||
| printf("search for unknown gizmo group '%s'\n", idname); | CLOG_INFO(WM_LOG_GIZMO, "search for unknown gizmo group '%s'", idname); | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| if (!quiet) { | if (!quiet) { | ||||
| printf("search for empty gizmo group\n"); | CLOG_INFO(WM_LOG_GIZMO, "search for empty gizmo group"); | ||||
| } | } | ||||
| } | } | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| /* caller must free */ | /* caller must free */ | ||||
| void WM_gizmogrouptype_iter(GHashIterator *ghi) | void WM_gizmogrouptype_iter(GHashIterator *ghi) | ||||
| ▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines | |||||