Depsgraph: Ensure scene camera object is always built

This commit is contained in:
Sergey Sharybin 2017-07-19 11:54:39 +02:00
parent b2ca2bb591
commit a532fe561e
2 changed files with 6 additions and 0 deletions

View File

@ -89,6 +89,9 @@ void DepsgraphNodeBuilder::build_scene(Main *bmain, Scene *scene)
base->object->select_color = select_color++;
}
}
if (scene->camera != NULL) {
build_object(scene, scene->camera);
}
/* rigidbody */
if (scene->rigidbody_world) {

View File

@ -84,6 +84,9 @@ void DepsgraphRelationBuilder::build_scene(Main *bmain, Scene *scene)
build_object(bmain, scene, base->object);
}
}
if (scene->camera != NULL) {
build_object(bmain, scene, scene->camera);
}
/* rigidbody */
if (scene->rigidbody_world) {