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.
This commit is contained in:
Bastien Montagne 2022-05-06 15:05:26 +02:00
parent 90042b7d79
commit acafc7327e
Notes: blender-bot 2023-02-13 15:40:13 +01:00
Referenced by issue #97466, Assert when pack sound in blender DEBUG
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}