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:
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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue