Fix #105339: grease pencil selection can toggle object selection #105342

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:105339 into blender-v3.5-release 2023-03-02 09:52:47 +01:00

1 Commits

Author SHA1 Message Date
Philipp Oeser 9b7e7c168c Fix #105339: grease pencil selection can toggle object selection
Grease Pencil (when not in object mode) implements its own selection
opertor. This operator (`gpencil.select`) returns
`OPERATOR_PASS_THROUGH`, then falls though to `view3d.select` which can
toggle object selection (when using shift-click picking).

Removing `OPERATOR_PASS_THROUGH` would fix the object toggling, but this
was added in 62c73db734 with good reason (the tweak tool would not
work then).

Now prevent `view3d.select` from acting on Grease Pencil (when not in
object mode).

NOTE: this could also go into the poll function.
2023-03-01 15:24:43 +01:00