Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/sound.c
| Show First 20 Lines • Show All 1,513 Lines • ▼ Show 20 Lines | |||||
| #else | #else | ||||
| UNUSED_VARS(time); | UNUSED_VARS(time); | ||||
| #endif | #endif | ||||
| } | } | ||||
| void BKE_sound_evaluate(Depsgraph *depsgraph, Main *bmain, bSound *sound) | void BKE_sound_evaluate(Depsgraph *depsgraph, Main *bmain, bSound *sound) | ||||
| { | { | ||||
| DEG_debug_print_eval(depsgraph, __func__, sound->id.name, sound); | DEG_debug_print_eval(depsgraph, __func__, sound->id.name, sound); | ||||
| if (sound->id.recalc & ID_RECALC_AUDIO) { | if (sound->id.recalc & (ID_RECALC_AUDIO | ID_RECALC_SOURCE)) { | ||||
| if (sound->id.recalc & ID_RECALC_SOURCE) { | |||||
| printf("%s IS TAGGED FOR RELOAD\n", sound->id.name); | |||||
| } | |||||
| BKE_sound_load(bmain, sound); | BKE_sound_load(bmain, sound); | ||||
| return; | return; | ||||
| } | } | ||||
| BKE_sound_ensure_loaded(bmain, sound); | BKE_sound_ensure_loaded(bmain, sound); | ||||
| } | } | ||||