Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Porces <cmporces>2019-03-16 20:54:00 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-16 22:21:16 +0300
commit5797a5fc65c87b69460d910a82d219b5e3ea12ad (patch)
tree98ffac5a6ad2904d916987720460765b763d2e50 /source/blender/windowmanager
parentb9af4efe41712680d554a389d771e83c66fce5c4 (diff)
Fix ID user counting issues with NodeCustomGroup.
User counting now happens before init() and after free() methods, so that the ID users are in a valid state when Python might modify them. ID user counting was moved into node.c and simplified. Patch by Miguel with further refactoring by Brecht. Ref D4370.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index 946e7c4a856..00ab4fd1be6 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -497,6 +497,7 @@ void WM_exit_ext(bContext *C, const bool do_python)
BKE_tracking_clipboard_free();
BKE_mask_clipboard_free();
BKE_vfont_clipboard_free();
+ BKE_node_clipboard_free();
#ifdef WITH_COMPOSITOR
COM_deinitialize();
@@ -518,7 +519,6 @@ void WM_exit_ext(bContext *C, const bool do_python)
ANIM_fmodifiers_copybuf_free();
ED_gpencil_anim_copybuf_free();
ED_gpencil_strokes_copybuf_free();
- BKE_node_clipboard_clear();
/* free gizmo-maps after freeing blender, so no deleted data get accessed during cleaning up of areas */
wm_gizmomaptypes_free();