Files
test/source/blender/blenkernel/intern
Philipp Oeser f00cb93dbe Fix T63125: Gpencil: bones cannot be selected in weightpaint mode
Some underlying functionality was not ready for greasepencil:
- BKE_modifiers_get_virtual_modifierlist (now introduce dedicated BKE_gpencil_modifiers_get_virtual_modifierlist)
- BKE_modifiers_is_deformed_by_armature
- checks in drawing code
- checks in (pose) selection code

A couple of changes to make this work:
- `eGpencilModifierType_Armature` has to be respected (not only `eModifierType_Armature`)
- `OB_MODE_WEIGHT_GPENCIL` has to be respected (not only `OB_MODE_WEIGHT_PAINT`) --  (now use new `OB_MODE_ALL_WEIGHT_PAINT`)
- `gpencil_weightmode_toggle_exec` now shares functionality from `wpaint_mode_toggle_exec` -- moved to new `ED_object_posemode_set_for_weight_paint`

This patch will also set the context member "weight_paint_object" for greasepencil (otherwise some appropriate pose operators wont work when in weightpaint mode)

Reviewed By: campbellbarton

Maniphest Tasks: T63125

Differential Revision: https://developer.blender.org/D8483
2020-09-03 15:01:50 +02:00
..
2020-08-28 13:18:24 +02:00
2020-08-26 17:48:20 +02:00
2020-07-14 15:19:52 +10:00
2020-08-19 08:58:29 +02:00
2020-07-29 15:30:10 +02:00
2020-07-10 16:04:09 +10:00
2020-08-29 18:56:08 +10:00
2020-07-01 13:12:24 +10:00
2020-03-29 17:11:41 +11:00
2020-07-01 13:12:24 +10:00
2020-08-28 13:18:24 +02:00
2020-08-28 13:05:48 +02:00
2020-08-28 13:05:48 +02:00
2020-08-29 18:56:08 +10:00
2020-08-29 18:56:08 +10:00
2020-08-08 13:38:00 +10:00
2020-08-13 16:21:10 +10:00
2020-04-30 08:09:21 +02:00
2020-07-10 16:04:09 +10:00
2020-08-26 09:41:30 +10:00
2020-08-28 13:18:24 +02:00
2020-09-02 18:28:17 +02:00
2020-08-08 13:38:00 +10:00
2020-09-02 09:58:26 +10:00
2020-08-20 16:09:48 +10:00