[Bf-blender-cvs] [2f953ef6e92] lanpr-under-gp: LineArt: Flag sync for "no camera" to "has camera" situation.

YimingWu noreply at git.blender.org
Wed Nov 4 02:38:51 CET 2020


Commit: 2f953ef6e925f52ef2bd5f9943b617bdc2d3fbb7
Author: YimingWu
Date:   Wed Nov 4 09:38:31 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rB2f953ef6e925f52ef2bd5f9943b617bdc2d3fbb7

LineArt: Flag sync for "no camera" to "has camera" situation.

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

M	source/blender/editors/lineart/lineart_cpu.c

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

diff --git a/source/blender/editors/lineart/lineart_cpu.c b/source/blender/editors/lineart/lineart_cpu.c
index fad73283400..fd5d7d08a74 100644
--- a/source/blender/editors/lineart/lineart_cpu.c
+++ b/source/blender/editors/lineart/lineart_cpu.c
@@ -4164,6 +4164,9 @@ void ED_lineart_post_frame_update_external(bContext *C,
   if (G.debug_value == 4000) {
     printf("LRT: ---- Post frame update (%d).\n", 0);
   }
+  if (!scene->camera) {
+    ED_lineart_modifier_sync_flag_set(LRT_SYNC_IDLE, false);
+  }
   if (!(scene->lineart.flags & LRT_AUTO_UPDATE)) {
     /* This way the modifier will update, removing remaing strokes in the viewport. */
     if (ED_lineart_modifier_sync_flag_check(LRT_SYNC_WAITING)) {



More information about the Bf-blender-cvs mailing list