Blender Git Commit Log

Git Commits -> Revision bbd71c8

January 20, 2018, 15:51 (GMT)
Fix modifier enable/disable on render mode

The old test to verify if the modifier was enabled in render mode used G_RENDER_OGL flag, but for new draw manager, there is a function for that: DRW_state_is_image_render()

Also fixed the problem the cache was not set as dirty before render, so the flags were not updated to draw the correct image.

Commit Details:

Full Hash: bbd71c879e298edc2c13327235a6f5b4532663cb
Parent Commit: b0c0806
Lines Changed: +32, -25

6 Modified Paths:

/source/blender/blenkernel/BKE_gpencil.h (+2, -2) (Diff)
/source/blender/blenkernel/intern/gpencil_modifier.c (+6, -6) (Diff)
/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c (+4, -4) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.c (+6, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.h (+1, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_vfx.c (+13, -13) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021