[Bf-blender-cvs] [acafc7327ec] blender-v3.2-release: Fix T97466: Assert when pack sound in blender DEBUG.

Bastien Montagne noreply at git.blender.org
Fri May 6 15:06:44 CEST 2022


Commit: acafc7327ec94358d7b9599a153c509989b809ed
Author: Bastien Montagne
Date:   Fri May 6 15:05:26 2022 +0200
Branches: blender-v3.2-release
https://developer.blender.org/rBacafc7327ec94358d7b9599a153c509989b809ed

Fix T97466: Assert when pack sound in blender DEBUG.

This was very old code from 2008, totaly invalid with new depgraph &
evaluation system, now we just need to tag the Sound ID for update.

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

M	source/blender/editors/sound/sound_ops.c

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

diff --git a/source/blender/editors/sound/sound_ops.c b/source/blender/editors/sound/sound_ops.c
index a63ed142ed8..2a8a2be8b65 100644
--- a/source/blender/editors/sound/sound_ops.c
+++ b/source/blender/editors/sound/sound_ops.c
@@ -761,7 +761,8 @@ static int sound_pack_exec(bContext *C, wmOperator *op)
 
   sound->packedfile = BKE_packedfile_new(
       op->reports, sound->filepath, ID_BLEND_PATH(bmain, &sound->id));
-  BKE_sound_load(bmain, sound);
+
+  DEG_id_tag_update_ex(bmain, &sound->id, ID_RECALC_AUDIO);
 
   return OPERATOR_FINISHED;
 }



More information about the Bf-blender-cvs mailing list