Fix #36725: mismatch between viewport and render result when no world is linked
to the scene in cycles.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user