Render: Solve wrong vertex parent in linked objects with Locked UI

The cleanup function was a bit too much aggressive here, made it much more
conservative. It means memory usage will not be so low anymore, and to
address this we'll need to make this function depsgraph aware.
This commit is contained in:
Sergey Sharybin 2015-07-02 16:12:08 +02:00
parent 84b8ce32a4
commit 2723d10704
1 changed files with 2 additions and 2 deletions

View File

@ -792,13 +792,13 @@ static void clean_viewport_memory(Main *bmain, Scene *scene, int renderlay)
if ((base->lay & renderlay) == 0) {
continue;
}
if (RE_allow_render_generic_object(base->object)) {
base->object->id.flag &= ~LIB_DOIT;
}
}
for (object = bmain->object.first; object; object = object->id.next) {
for (SETLOOPER(scene, sce_iter, base)) {
object = base->object;
if ((object->id.flag & LIB_DOIT) == 0) {
continue;
}