Fix #34240: cycles material preview of sphere + sky had black sky, now it uses

the current scene world.
This commit is contained in:
Brecht Van Lommel
2013-02-14 16:01:34 +00:00
parent 59a2ed19df
commit a47af30561

View File

@@ -360,7 +360,11 @@ static Scene *preview_prepare_scene(Scene *scene, ID *id, int id_type, ShaderPre
}
}
}
else {
/* use current scene world to light sphere */
if (ma->pr_type == MA_SPHERE_A)
sce->world = scene->world;
}
if (sp->pr_method == PR_ICON_RENDER) {
if (mat->material_type == MA_TYPE_HALO) {