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:
Diffstat (limited to 'source/blender/io/collada/Materials.cpp')
-rw-r--r--source/blender/io/collada/Materials.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/io/collada/Materials.cpp b/source/blender/io/collada/Materials.cpp
index 06f54884668..16a9691d67e 100644
--- a/source/blender/io/collada/Materials.cpp
+++ b/source/blender/io/collada/Materials.cpp
@@ -323,6 +323,11 @@ void MaterialNode::set_emission(COLLADAFW::ColorOrTexture &cot)
add_link(texture_node, 0, shader_node, 0);
}
}
+
+ bNodeSocket *socket = nodeFindSocket(shader_node, SOCK_IN, "Emission Strength");
+ if (socket) {
+ *(float *)socket->default_value = 1.0f;
+ }
}
void MaterialNode::set_opacity(COLLADAFW::ColorOrTexture &cot)