Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2018-05-28 16:25:41 +0300
committerAntonio Vazquez <blendergit@gmail.com>2018-05-28 16:25:41 +0300
commite673be1ebc83b1c156eb608935dace95437eccba (patch)
tree1737cc02db725997b34ca7c4601f5c89002849c8 /intern/cycles/render/light.cpp
parent95c5d1193f12375cd7423be9bde1606cd0a05809 (diff)
parentdc0eed178a0f71634399a61b929a544e554ef6aa (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'intern/cycles/render/light.cpp')
-rw-r--r--intern/cycles/render/light.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/render/light.cpp b/intern/cycles/render/light.cpp
index 806f1cad03e..d45d4543e16 100644
--- a/intern/cycles/render/light.cpp
+++ b/intern/cycles/render/light.cpp
@@ -898,9 +898,10 @@ void LightManager::tag_update(Scene * /*scene*/)
int LightManager::add_ies_from_file(ustring filename)
{
string content;
+
/* If the file can't be opened, call with an empty line */
if(filename.empty() || !path_read_text(filename.c_str(), content)) {
- content == "\n";
+ content = "\n";
}
return add_ies(ustring(content));