[Bf-blender-cvs] [9c7f5362513] temp-lanpr-review: LANPR: Fix cmake option in render to allow lanpr callback for gp updates.
YimingWu
noreply at git.blender.org
Wed Nov 20 10:23:51 CET 2019
Commit: 9c7f536251399ecf3b5f31e4fa8da1f5265de00b
Author: YimingWu
Date: Wed Nov 20 16:02:29 2019 +0800
Branches: temp-lanpr-review
https://developer.blender.org/rB9c7f536251399ecf3b5f31e4fa8da1f5265de00b
LANPR: Fix cmake option in render to allow lanpr callback for gp updates.
===================================================================
M source/blender/editors/lanpr/lanpr_cpu.c
M source/blender/editors/render/CMakeLists.txt
===================================================================
diff --git a/source/blender/editors/lanpr/lanpr_cpu.c b/source/blender/editors/lanpr/lanpr_cpu.c
index 26ab5ae9fee..09f7ad4267b 100644
--- a/source/blender/editors/lanpr/lanpr_cpu.c
+++ b/source/blender/editors/lanpr/lanpr_cpu.c
@@ -4447,9 +4447,7 @@ static void lanpr_update_gp_strokes_actual(Scene *scene, Depsgraph *dg)
{
int frame = scene->r.cfra;
- if (scene->lanpr.flags & LANPR_AUTO_UPDATE) {
- ED_lanpr_compute_feature_lines_internal(dg, 0);
- }
+ ED_lanpr_compute_feature_lines_internal(dg, 0);
ED_lanpr_chain_clear_picked_flag(lanpr_share.render_buffer_shared);
diff --git a/source/blender/editors/render/CMakeLists.txt b/source/blender/editors/render/CMakeLists.txt
index 6c62dbcb3a2..5b712933bc1 100644
--- a/source/blender/editors/render/CMakeLists.txt
+++ b/source/blender/editors/render/CMakeLists.txt
@@ -66,6 +66,10 @@ if(WITH_FREESTYLE)
add_definitions(-DWITH_FREESTYLE)
endif()
+if(WITH_LANPR)
+ add_definitions(-DWITH_LANPR)
+endif()
+
if(WITH_INTERNATIONAL)
add_definitions(-DWITH_INTERNATIONAL)
endif()
More information about the Bf-blender-cvs
mailing list