Page MenuHome

GPencil: Split Select mode for Sculpt and Edit mode
ClosedPublic

Authored by Antonio Vazquez (antoniov) on Aug 16 2019, 11:45 AM.

Details

Summary

Actually, the selection mode is not visible in Sculpt mode when mask is enabled, but still is used.

Also, the mode is shared between Edit mode and Sculpt mode and for meshes the selector is by mode.

This patch splits the select mode in different properties and show the selector in Sculpt mode to define the Select mode. Also, the Select Mask button has been removed and now the Select Mode buttons work equal to Meshes where the select buttons are the mask enable too.

Fixed some old code not valid detected during these changes.

Diff Detail

Repository
rB Blender

Event Timeline

  • GPencil: Remove old code not used
  • GPencil: Remove mask button for Sculpt and use Select Modes
  • GPencil: More work to decouple Select modes

Thanks @Antonio Vazquez (antoniov) , all seems to work ok. With this change Grease Pencil is now more consistent on how Blender works with selection masking in other objects

I updated the diff, and ARC created an update of this revision, instead of update it (D5504). I keep this revision because the changes were small and I will commit manually, not applying this revisión, so the final commit will be slightly different (small cleanup).

source/blender/makesdna/DNA_scene_types.h
1128

Final commit the line will be:
GP_SCULPT_SETT_FLAG_DEPRECATED = (1 << 0),

This revision is now accepted and ready to land.Aug 16 2019, 5:16 PM

tested and it is working fine

  • GPencil: Fix wrong mask flag checking for limit Sculpt

Please, @Matias Mendiola (mendio) and @Daniel Martinez Lara (pepeland) verify now it's impossible sculpt not selected points when mask was enabled, I have detected a problem in that code and fixed.