diff options
author | Bastien Montagne <bastien@blender.org> | 2022-05-06 16:05:26 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-05-06 16:05:26 +0300 |
commit | acafc7327ec94358d7b9599a153c509989b809ed (patch) | |
tree | c586cbc035632346c1cc8620441fd9154d76b618 /source/blender/editors/sound | |
parent | 90042b7d796608cf680620041785bfa432975d48 (diff) |
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.
Diffstat (limited to 'source/blender/editors/sound')
-rw-r--r-- | source/blender/editors/sound/sound_ops.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |