Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/library_remap.c
| Context not available. | |||||
| #include <stddef.h> | #include <stddef.h> | ||||
| #include <assert.h> | #include <assert.h> | ||||
| #include "CLG_log.h" | |||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| /* all types are needed here, in order to do memory operations */ | /* all types are needed here, in order to do memory operations */ | ||||
| Context not available. | |||||
| #include "BPY_extern.h" | #include "BPY_extern.h" | ||||
| #endif | #endif | ||||
| static CLG_LogRef LOG = { "bke.library_remap" }; | |||||
| static BKE_library_free_window_manager_cb free_windowmanager_cb = NULL; | static BKE_library_free_window_manager_cb free_windowmanager_cb = NULL; | ||||
| void BKE_library_callback_free_window_manager_set(BKE_library_free_window_manager_cb func) | void BKE_library_callback_free_window_manager_set(BKE_library_free_window_manager_cb func) | ||||
| Context not available. | |||||
| } | } | ||||
| if (old_id->us - skipped_refcounted < 0) { | if (old_id->us - skipped_refcounted < 0) { | ||||
| printf("Error in remapping process from '%s' (%p) to '%s' (%p): " | CLOG_FATAL(&LOG, "Error in remapping process from '%s' (%p) to '%s' (%p): " | ||||
| "wrong user count in old ID after process (summing up to %d)\n", | "wrong user count in old ID after process (summing up to %d)", | ||||
| old_id->name, old_id, new_id ? new_id->name : "<NULL>", new_id, old_id->us - skipped_refcounted); | old_id->name, old_id, new_id ? new_id->name : "<NULL>", new_id, old_id->us - skipped_refcounted); | ||||
| BLI_assert(0); | BLI_assert(0); | ||||
| } | } | ||||
| Context not available. | |||||