GP: Disable Onion calculation when Overlay is OFF
Now, it's not required to disable the Onion in Overlay panel.
This commit is contained in:
@@ -69,8 +69,9 @@ static void gpencil_calc_vertex(
|
||||
const DRWContextState *draw_ctx = DRW_context_state_get();
|
||||
const bool main_onion = draw_ctx->v3d != NULL ? (draw_ctx->v3d->gp_flag & V3D_GP_SHOW_ONION_SKIN) : true;
|
||||
const bool playing = stl->storage->is_playing;
|
||||
const bool overlay = draw_ctx->v3d != NULL ? (bool)((draw_ctx->v3d->flag2 & V3D_RENDER_OVERRIDE) == 0) : true;
|
||||
const bool do_onion = (bool)((gpd->flag & GP_DATA_STROKE_WEIGHTMODE) == 0) &&
|
||||
main_onion && DRW_gpencil_onion_active(gpd) && !playing;
|
||||
overlay && main_onion && DRW_gpencil_onion_active(gpd) && !playing;
|
||||
|
||||
const bool time_remap = BKE_gpencil_has_time_modifiers(ob);
|
||||
const bool is_multiedit = (bool)GPENCIL_MULTIEDIT_SESSIONS_ON(gpd);
|
||||
|
||||
Reference in New Issue
Block a user