[Bf-blender-cvs] [685ceaa2f72] master: Fix reference counting error for world drag & drop

Campbell Barton noreply at git.blender.org
Wed Oct 13 23:58:05 CEST 2021


Commit: 685ceaa2f7236a9a76a42609f568b161d5d6d479
Author: Campbell Barton
Date:   Thu Oct 14 08:57:14 2021 +1100
Branches: master
https://developer.blender.org/rB685ceaa2f7236a9a76a42609f568b161d5d6d479

Fix reference counting error for world drag & drop

Error in 986d60490c0694941e27c070780c55f07b7b4842

===================================================================

M	source/blender/editors/space_view3d/view3d_edit.c

===================================================================

diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c
index 302862b1a8f..d34fbc4562a 100644
--- a/source/blender/editors/space_view3d/view3d_edit.c
+++ b/source/blender/editors/space_view3d/view3d_edit.c
@@ -4891,6 +4891,7 @@ static int drop_world_exec(bContext *C, wmOperator *op)
     return OPERATOR_CANCELLED;
   }
 
+  id_us_min((ID *)scene->world);
   id_us_plus(&world->id);
   scene->world = world;



More information about the Bf-blender-cvs mailing list