Move bSound cache handling during undo to new system.

This commit is contained in:
2020-07-03 12:55:50 +02:00
parent ae5529c848
commit aab41401f9
3 changed files with 16 additions and 11 deletions

View File

@@ -8408,13 +8408,9 @@ static void direct_link_sound(BlendDataReader *reader, bSound *sound)
sound->cache = NULL;
}
if (reader->fd->soundmap) {
sound->waveform = newsoundadr(reader->fd, sound->waveform);
if (reader->fd->memfile != NULL) {
sound->tags |= SOUND_TAGS_WAVEFORM_NO_RELOAD;
}
else {
sound->waveform = NULL;
}
sound->spinlock = MEM_mallocN(sizeof(SpinLock), "sound_spinlock");
BLI_spin_init(sound->spinlock);