Cleanup: avoid incrementing/decrementing id->us outside of BKE_library.

We have callbacks for that, they also do some checks and help ensure things are done
correctly. Only place where this is assumed not true is blenloader (since here we
may affect refcount of library IDs as well...).
This commit is contained in:
2015-11-09 19:47:10 +01:00
parent cf959a879e
commit 865796375b
59 changed files with 278 additions and 228 deletions

View File

@@ -198,7 +198,7 @@ static void BKE_sequence_free_ex(Scene *scene, Sequence *seq, const bool do_cach
}
if (seq->sound) {
((ID *)seq->sound)->us--;
id_us_min(((ID *)seq->sound));
}
if (seq->stereo3d_format) {