[Bf-blender-cvs] [4124aeee5c9] master: Lights: reduce default strength of sun light to 1.0

Brecht Van Lommel noreply at git.blender.org
Wed May 15 16:24:59 CEST 2019


Commit: 4124aeee5c9d71feedf497068f7ad58af9bdcac7
Author: Brecht Van Lommel
Date:   Wed May 15 16:07:34 2019 +0200
Branches: master
https://developer.blender.org/rB4124aeee5c9d71feedf497068f7ad58af9bdcac7

Lights: reduce default strength of sun light to 1.0

===================================================================

M	source/blender/editors/object/object_add.c

===================================================================

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;
 }



More information about the Bf-blender-cvs mailing list