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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user