Commit: 8326973ac2b67491343e4559a4061913f2aecdf9
Author: Antonio Vazquez
Date:   Wed Jan 22 17:10:01 2020 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rB8326973ac2b67491343e4559a4061913f2aecdf9

GPencil: Enable Lights in Render mode

The lights were not enabled in render

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

M       source/blender/draw/engines/gpencil/gpencil_engine.c

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c 
b/source/blender/draw/engines/gpencil/gpencil_engine.c
index 443cc5346e8..bccc34c441b 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -124,8 +124,12 @@ void GPENCIL_engine_init(void *ved)
     stl->pd->v3d_color_type = (v3d->shading.type == OB_SOLID) ? 
v3d->shading.color_type : -1;
     copy_v3_v3(stl->pd->v3d_single_color, v3d->shading.single_color);
   }
+  else if (stl->pd->is_render) {
+    use_scene_lights = true;
+    use_scene_world = true;
+  }
 
-  stl->pd->use_lighting = (v3d && v3d->shading.type > OB_SOLID);
+  stl->pd->use_lighting = (v3d && v3d->shading.type > OB_SOLID) || 
stl->pd->is_render;
   stl->pd->use_lights = use_scene_lights;
 
   if (txl->render_depth_tx != NULL) {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to