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-09-02 14:20:41 +02:00
2019-04-17 06:21:24 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-24 23:28:01 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 10:04:57 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 10:04:57 +02:00
2020-08-07 10:04:57 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2019-08-18 04:26:34 +10:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 15:33:51 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-09-03 15:01:50 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-20 16:29:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 10:04:57 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-11 21:48:02 +10:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-28 11:01:06 -04:00
2020-08-07 10:04:57 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-09-03 15:01:50 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-21 15:24:36 +02:00
2020-08-25 10:04:15 -06:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-09-02 14:20:41 +02:00
2020-08-17 12:39:08 +10:00
2020-08-07 09:50:34 +02:00
2020-09-02 14:13:26 -05:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 10:04:57 +02:00
2020-08-07 09:50:34 +02:00
2020-08-13 15:24:21 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-24 15:19:49 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 10:04:57 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 10:04:57 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00