Fix #36725: mismatch between viewport and render result when no world is linked

to the scene in cycles.
This commit is contained in:
2013-09-16 21:05:42 +00:00
parent bf8c078c55
commit 2513886f43
2 changed files with 2 additions and 8 deletions

View File

@@ -348,12 +348,6 @@ void ShaderManager::add_default(Scene *scene)
{
graph = new ShaderGraph();
closure = graph->add(new BackgroundNode());
closure->input("Color")->value = make_float3(0.8f, 0.8f, 0.8f);
out = graph->output();
graph->connect(closure->output("Background"), out->input("Surface"));
shader = new Shader();
shader->name = "default_background";
shader->graph = graph;