tornavis/source/blender/makesdna
Antonio Vazquez 4c182aef7c GPencil: Make Sculpt Auto-masking Global and not by Brush
The auto-masking was working by Brush and this was very
inconvenient because it was necessary set the options by
Brush, now the options are global and can be set at once.

Also, the automa-masking now works with `and` logic
and not with `or` as before. That means that a stroke
must meet all the conditions of the masking.

Added new Layer and Material options to masking the 
strokes using the same Layer/Material of the selected stroke.
Before, only Active Layer and Active Material could be masked.

The options of masking has been moved to the top-bar using
the same design of Mesh Sculpt masking.

As result of the changes above, the following props changed:

Removed:

`brush.gpencil_settings.use_automasking_strokes`
`brush.gpencil_settings.use_automasking_layer`
`brush.gpencil_settings.use_automasking_material`

Added:

`tool_settings.gpencil_sculpt.use_automasking_stroke`
`tool_settings.gpencil_sculpt.use_automasking_layer_stroke`
`tool_settings.gpencil_sculpt.use_automasking_material_stroke`
`tool_settings.gpencil_sculpt.use_automasking_layer_active`
`tool_settings.gpencil_sculpt.use_automasking_material_active`


Reviewed by: Julien Kaspar, Matias Mendiola, Daniel Martinez Lara
2022-11-08 16:55:59 +01:00
..
intern Refactor: Rename Object->imat to Object->world_to_object 2022-11-02 15:42:23 +01:00
CMakeLists.txt File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_ID.h Cleanup: spelling in comments 2022-09-28 09:41:31 +10:00
DNA_ID_enums.h Fix T97790: Crash in Outliner "Blender File" mode with old files 2022-05-27 17:03:25 +02:00
DNA_action_types.h Fix T99364: Unable to select bones when custom shape display is disabled 2022-07-08 11:33:22 +10:00
DNA_anim_types.h Cleanup: remove ED_types.h & ACTIVE, DESELECT definitions 2022-09-08 12:08:20 +10:00
DNA_armature_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_armature_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_asset_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_asset_types.h Cleanup: Fix typo in comment 2022-07-28 12:52:20 +02:00
DNA_boid_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_brush_defaults.h Brush: Fix mismatch in DNA Brush defaults 2022-10-17 14:11:21 +02:00
DNA_brush_enums.h GPencil: Make Sculpt Auto-masking Global and not by Brush 2022-11-08 16:55:59 +01:00
DNA_brush_types.h Cleanup: format 2022-09-29 10:11:42 +10:00
DNA_cachefile_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_cachefile_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_camera_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_camera_types.h Render: camera depth of field support for armature bone targets 2022-07-15 13:40:04 +02:00
DNA_cloth_types.h Cleanup: spelling in comments, additional white space 2022-06-07 15:01:03 +10:00
DNA_collection_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_collection_types.h LineArt: Force intersection option. 2022-09-18 09:46:21 +08:00
DNA_color_types.h Eevee: Add support for Nishita sky texture 2022-09-16 15:10:09 +02:00
DNA_constraint_types.h Cleanup: spelling in comments 2022-09-16 18:14:33 +10:00
DNA_curve_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_curve_types.h Cleanup: remove ED_types.h & ACTIVE, DESELECT definitions 2022-09-08 12:08:20 +10:00
DNA_curveprofile_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_curves_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_curves_types.h Cleanup: Improve comments 2022-08-24 18:22:29 -04:00
DNA_customdata_types.h Cleanup: spelling in comments 2022-11-01 12:24:58 +11:00
DNA_defaults.h Cleanup: remove white-space before headers 2022-02-11 14:23:54 +11:00
DNA_defs.h Cleanup: Simplify zero-initializing DNA structures in C++ 2022-04-04 11:47:28 +02:00
DNA_documentation.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_dynamicpaint_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_effect_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_fileglobal_types.h Cleanup: spelling 2022-09-19 14:52:27 +10:00
DNA_fluid_defaults.h Cycles: add support for volume motion blur 2022-04-19 17:07:53 +02:00
DNA_fluid_types.h Cycles: add support for volume motion blur 2022-04-19 17:07:53 +02:00
DNA_freestyle_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_genfile.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_gpencil_modifier_defaults.h Gpencil: Time Offset modifier new Chain mode 2022-09-27 17:55:43 +02:00
DNA_gpencil_modifier_types.h Gpencil: Time Offset modifier new Chain mode 2022-09-27 17:55:43 +02:00
DNA_gpencil_types.h GPencil: Use indexed rendering instead of instances 2022-10-24 11:21:17 +02:00
DNA_gpu_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_image_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_image_types.h Fix T97251: Store generated type information for each UDIM tile 2022-08-03 22:00:52 -07:00
DNA_ipo_types.h Cleanup: spelling in comments 2022-06-17 07:33:06 +10:00
DNA_key_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_lattice_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_lattice_types.h Cover some DNA files with C++ utility macros 2022-04-13 11:48:12 +02:00
DNA_layer_types.h Cleanup: spelling in comments 2022-11-01 12:24:58 +11:00
DNA_light_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_light_types.h Cleanup: spelling in comments 2022-06-17 07:33:06 +10:00
DNA_lightprobe_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_lightprobe_types.h DNA: Remove unnecessary studio light & light probe struct paddings 2022-09-19 12:16:30 +02:00
DNA_lineart_types.h LineArt: Usability improvement for "Enclosed Shapes". 2022-08-06 12:20:15 +08:00
DNA_linestyle_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_linestyle_types.h Cover some DNA files with C++ utility macros 2022-04-13 11:48:12 +02:00
DNA_listBase.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_mask_types.h Mask editor: Always use smooth drawing 2022-06-28 10:55:45 +02:00
DNA_material_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_material_types.h LineArt: Shadow and related functionalities. 2022-06-29 22:54:29 +08:00
DNA_mesh_defaults.h Updated voxel remesher defaults 2022-04-12 23:33:36 -07:00
DNA_mesh_types.h Mesh: Move runtime data out of DNA 2022-10-12 20:55:57 -05:00
DNA_meshdata_types.h Cleanup: Mesh: Remove redundant edge render flag 2022-11-04 20:19:52 +01:00
DNA_meta_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_meta_types.h Cleanup: spelling in comments 2022-11-01 12:24:58 +11:00
DNA_modifier_defaults.h Allow surface deform when target mesh increases number of vertices 2022-05-04 10:56:33 +02:00
DNA_modifier_types.h Cleanup: spelling in comments 2022-11-01 12:24:58 +11:00
DNA_movieclip_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_movieclip_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_nla_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_node_types.h Cleanup: use bool instead of short for job stop & do_update arguments 2022-11-05 13:47:01 +11:00
DNA_object_defaults.h Refactor: Rename Object->obmat to Object->object_to_world 2022-11-01 10:48:18 +01:00
DNA_object_enums.h Curves: add initial sculpt mode 2022-02-15 12:32:15 +01:00
DNA_object_fluidsim_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_object_force_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_object_types.h Refactor: Rename Object->imat to Object->world_to_object 2022-11-02 15:42:23 +01:00
DNA_outliner_types.h Outliner: Use UI names and grouping for library overrides properties 2022-08-04 16:14:01 +02:00
DNA_packedFile_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_particle_defaults.h Cleanup: rename ParticleSettings.child_nbr => child_percent 2022-03-25 12:10:21 +11:00
DNA_particle_types.h Cleanup: spelling in comments 2022-11-01 12:24:58 +11:00
DNA_pointcache_types.h Cleanup: rename CustomDataExternal.filename => filepath 2022-03-25 12:10:30 +11:00
DNA_pointcloud_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_pointcloud_types.h Cleanup: Use C++ methods to retrieve attribute accessors 2022-09-07 21:41:39 -05:00
DNA_rigidbody_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_scene_defaults.h Transform Snap: nearest face snap mode, snapping options, refactoring. 2022-06-29 20:52:00 -04:00
DNA_scene_types.h GPencil: Make Sculpt Auto-masking Global and not by Brush 2022-11-08 16:55:59 +01:00
DNA_screen_types.h Cleanup: spelling 2022-09-19 14:52:27 +10:00
DNA_sdna_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_sequence_types.h Cleanup: spelling in comments 2022-09-28 09:41:31 +10:00
DNA_session_uuid_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_shader_fx_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_simulation_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_simulation_types.h Cover some DNA files with C++ utility macros 2022-04-13 11:48:12 +02:00
DNA_sound_types.h Cleanup: spelling, punctuation & repeated words in comments 2022-09-17 15:08:40 +10:00
DNA_space_defaults.h Mask Editor: Add toggle for mask spline drawing 2022-06-22 10:45:18 +02:00
DNA_space_types.h Cleanup: spelling in comments 2022-11-01 12:24:58 +11:00
DNA_speaker_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_speaker_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_text_types.h Cleanup: spelling in comments, minor reformatting changes 2022-04-07 14:48:20 +10:00
DNA_texture_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_texture_types.h Cleanup: spelling, punctuation & repeated words in comments 2022-09-17 15:08:40 +10:00
DNA_tracking_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_userdef_enums.h Nodes: Duplicate Linked operator + User Preference option for Node Tree 2022-10-13 20:06:20 +02:00
DNA_userdef_types.h UI: add preference to disable touchpad multitouch gestures 2022-09-26 22:59:35 +02:00
DNA_uuid_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_vec_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_vec_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_vfont_types.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_view2d_types.h Cleanup: spelling 2022-09-19 14:52:27 +10:00
DNA_view3d_defaults.h Geometry Nodes: set viewer overlay opacity default to 1 2022-10-03 12:34:48 +02:00
DNA_view3d_enums.h XR: Add object extras, object types visibility session options 2022-04-30 16:23:43 +09:00
DNA_view3d_types.h Geometry Nodes: viewport preview 2022-09-28 17:54:59 +02:00
DNA_viewer_path_types.h Geometry Nodes: viewport preview 2022-09-28 17:54:59 +02:00
DNA_volume_defaults.h Cycles: Add half precision float support for volumes with NanoVDB 2022-05-23 19:08:01 +02:00
DNA_volume_types.h Cycles: Add half precision float support for volumes with NanoVDB 2022-05-23 19:08:01 +02:00
DNA_windowmanager_types.h Cleanup: spelling in comments 2022-11-01 12:24:58 +11:00
DNA_workspace_types.h Cleanup: spelling in comments 2022-11-01 12:24:58 +11:00
DNA_world_defaults.h File headers: SPDX License migration 2022-02-11 09:14:36 +11:00
DNA_world_types.h Cover some DNA files with C++ utility macros 2022-04-13 11:48:12 +02:00
DNA_xr_types.h XR: Add object extras, object types visibility session options 2022-04-30 16:23:43 +09:00