Fix #130725: Grease Pencil: Avoid sculpting strokes with locked material
Some checks failed
buildbot/vdev-code-daily-lint Build done.
buildbot/vdev-code-daily-linux-x86_64 Build done.
buildbot/vdev-code-daily-darwin-x86_64 Build done.
buildbot/vdev-code-daily-darwin-arm64 Build done.
buildbot/vdev-code-daily-windows-amd64 Build done.
buildbot/vdev-code-daily-coordinator Build done.
Some checks failed
buildbot/vdev-code-daily-lint Build done.
buildbot/vdev-code-daily-linux-x86_64 Build done.
buildbot/vdev-code-daily-darwin-x86_64 Build done.
buildbot/vdev-code-daily-darwin-arm64 Build done.
buildbot/vdev-code-daily-windows-amd64 Build done.
buildbot/vdev-code-daily-coordinator Build done.
Return editable_elements instead of entire range of points/stroke from `point/stroke_selection_mask()` function Pull Request: #130727
This commit is contained in:
parent
0915015437
commit
42445ed5c9
Notes:
blender-bot
2024-11-24 06:47:15 +01:00
Referenced by issue #130221, 4.3: Candidates for corrective releases
@ -297,7 +297,8 @@ IndexMask point_selection_mask(const GreasePencilStrokeParams ¶ms,
|
||||
|
||||
return (use_masking ? ed::greasepencil::retrieve_editable_and_selected_points(
|
||||
params.ob_orig, params.drawing, params.layer_index, memory) :
|
||||
params.drawing.strokes().points_range());
|
||||
ed::greasepencil::retrieve_editable_points(
|
||||
params.ob_orig, params.drawing, params.layer_index, memory));
|
||||
}
|
||||
|
||||
IndexMask stroke_selection_mask(const GreasePencilStrokeParams ¶ms,
|
||||
@ -307,7 +308,8 @@ IndexMask stroke_selection_mask(const GreasePencilStrokeParams ¶ms,
|
||||
|
||||
return (use_masking ? ed::greasepencil::retrieve_editable_and_selected_strokes(
|
||||
params.ob_orig, params.drawing, params.layer_index, memory) :
|
||||
params.drawing.strokes().curves_range());
|
||||
ed::greasepencil::retrieve_editable_strokes(
|
||||
params.ob_orig, params.drawing, params.layer_index, memory));
|
||||
}
|
||||
|
||||
IndexMask fill_selection_mask(const GreasePencilStrokeParams ¶ms,
|
||||
|
Loading…
Reference in New Issue
Block a user