Fix #34421: cycles viewport render stuck with no objects in the scene.

This commit is contained in:
Brecht Van Lommel 2013-02-26 17:06:05 +00:00
parent 1c8377b030
commit 0f91a283d4

@ -301,6 +301,8 @@ void ObjectManager::device_update(Device *device, DeviceScene *dscene, Scene *sc
device_free(device, dscene); device_free(device, dscene);
need_update = false;
if(scene->objects.size() == 0) if(scene->objects.size() == 0)
return; return;
@ -322,8 +324,6 @@ void ObjectManager::device_update(Device *device, DeviceScene *dscene, Scene *sc
/* allocate object flag */ /* allocate object flag */
device->tex_alloc("__object_flag", dscene->object_flag); device->tex_alloc("__object_flag", dscene->object_flag);
need_update = false;
} }
void ObjectManager::device_free(Device *device, DeviceScene *dscene) void ObjectManager::device_free(Device *device, DeviceScene *dscene)