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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-15 17:07:34 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-15 17:09:50 +0300
commit4124aeee5c9d71feedf497068f7ad58af9bdcac7 (patch)
treeaea6d4fdfc3d205a0e8a55ccb1d7a4a843e2852a /source/blender
parent5ba1a6bee0426e77a01cec8c89999ee4d15ced63 (diff)
Lights: reduce default strength of sun light to 1.0
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/object/object_add.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index 07c0d42c81a..50a97e309fb 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -1206,6 +1206,10 @@ static int object_light_add_exec(bContext *C, wmOperator *op)
la = (Light *)ob->data;
la->type = type;
+ if (type == LA_SUN) {
+ la->energy = 1.0f;
+ }
+
return OPERATOR_FINISHED;
}