Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/gizmo/intern/wm_gizmo_group.c
| Show All 31 Lines | |||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| #include "BLI_buffer.h" | #include "BLI_buffer.h" | ||||
| #include "BLI_listbase.h" | #include "BLI_listbase.h" | ||||
| #include "BLI_rect.h" | #include "BLI_rect.h" | ||||
| #include "BLI_string.h" | #include "BLI_string.h" | ||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_idprop.h" | |||||
| #include "BKE_main.h" | #include "BKE_main.h" | ||||
| #include "BKE_report.h" | #include "BKE_report.h" | ||||
| #include "BKE_workspace.h" | #include "BKE_workspace.h" | ||||
| #include "RNA_access.h" | #include "RNA_access.h" | ||||
| #include "RNA_define.h" | #include "RNA_define.h" | ||||
| #include "WM_api.h" | #include "WM_api.h" | ||||
| ▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | #ifdef WITH_PYTHON | ||||
| } | } | ||||
| #endif | #endif | ||||
| if (gzgroup->reports && (gzgroup->reports->flag & RPT_FREE)) { | if (gzgroup->reports && (gzgroup->reports->flag & RPT_FREE)) { | ||||
| BKE_reports_clear(gzgroup->reports); | BKE_reports_clear(gzgroup->reports); | ||||
| MEM_freeN(gzgroup->reports); | MEM_freeN(gzgroup->reports); | ||||
| } | } | ||||
| if (gzgroup->ptr) { | |||||
| gzgroup->properties = gzgroup->ptr->data; | |||||
| MEM_freeN(gzgroup->ptr); | |||||
| } | |||||
| if (gzgroup->properties) { | |||||
| IDP_FreeProperty(gzgroup->properties); | |||||
| } | |||||
| if (gzgroup->customdata_free) { | if (gzgroup->customdata_free) { | ||||
| gzgroup->customdata_free(gzgroup->customdata); | gzgroup->customdata_free(gzgroup->customdata); | ||||
| } | } | ||||
| else { | else { | ||||
| MEM_SAFE_FREE(gzgroup->customdata); | MEM_SAFE_FREE(gzgroup->customdata); | ||||
| } | } | ||||
| BLI_remlink(&gzmap->groups, gzgroup); | BLI_remlink(&gzmap->groups, gzgroup); | ||||
| ▲ Show 20 Lines • Show All 1,060 Lines • Show Last 20 Lines | |||||