Commit: ab3b1aa3bf0e23c85c5577f3d1f12cc014fd014c
Author: YimingWu
Date: Tue Jul 28 13:44:10 2020 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rBab3b1aa3bf0e23c85c5577f3d1f12cc014fd014c
LineArt: Don't retain line art buffer result after modifier evaluation.
===================================================================
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 31466c58976..e27c149fa54 100644
--- a/source/blender/editors/lineart/lineart_cpu.c
+++ b/source/blender/editors/lineart/lineart_cpu.c
@@ -3982,6 +3982,11 @@ void ED_lineart_post_frame_update_external(bContext *C,
Scene *scene, Depsgraph
else if (ED_lineart_modifier_sync_flag_check(LRT_SYNC_FRESH)) {
/* At this stage GP should have all the data. We clear the flag */
ED_lineart_modifier_sync_flag_set(LRT_SYNC_IDLE, false);
+ /* Due to using GPencil modifiers, and the scene is updated each time some
value is changed, we
+ * really don't need to keep the buffer any longer. If in the future we
want fast refresh on
+ * parameter changes (e.g. thickness or picking different result in an
already validated
+ * buffer), remove this call below. */
+ ED_lineart_destroy_render_data_external();
}
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs