GPencil: Don't create framebuffers for selection

The selction use it's own frambuffers.
This commit is contained in:
Antonio Vazquez 2019-03-05 10:52:33 +01:00
parent f5f0b97564
commit 3e4cf413ea
1 changed files with 4 additions and 2 deletions

View File

@ -678,8 +678,10 @@ void GPENCIL_cache_finish(void *vedata)
stl->storage->framebuffer_flag |= GP_FRAMEBUFFER_DRAW;
}
/* create framebuffers */
GPENCIL_create_framebuffers(vedata);
/* create framebuffers (only for normal drawing) */
if (!DRW_state_is_select()) {
GPENCIL_create_framebuffers(vedata);
}
}
/* helper function to sort inverse gpencil objects using qsort */