[Bf-blender-cvs] [7bfcd99a905] master: Fix T80904: GPencil: bones cannot be transformed when in weightpaint mode

Philipp Oeser noreply at git.blender.org
Fri Sep 18 10:15:37 CEST 2020


Commit: 7bfcd99a9058960d55651457cea2db18e2adf743
Author: Philipp Oeser
Date:   Thu Sep 17 21:33:23 2020 +0200
Branches: master
https://developer.blender.org/rB7bfcd99a9058960d55651457cea2db18e2adf743

Fix T80904: GPencil: bones cannot be transformed when in weightpaint
mode

The transform convert of type TC_POSE was not being defined if the mode
was OB_MODE_WEIGHT_GPENCIL.

Maniphest Tasks: T80904

Differential Revision: https://developer.blender.org/D8934

===================================================================

M	source/blender/editors/transform/transform_convert.c

===================================================================

diff --git a/source/blender/editors/transform/transform_convert.c b/source/blender/editors/transform/transform_convert.c
index 70004d27dfc..1785d3eb5fe 100644
--- a/source/blender/editors/transform/transform_convert.c
+++ b/source/blender/editors/transform/transform_convert.c
@@ -1101,7 +1101,7 @@ void createTransData(bContext *C, TransInfo *t)
     initTransDataContainers_FromObjectData(t, ob, NULL, 0);
     convert_type = TC_POSE;
   }
-  else if (ob && (ob->mode & OB_MODE_WEIGHT_PAINT) && !(t->options & CTX_PAINT_CURVE)) {
+  else if (ob && (ob->mode & OB_MODE_ALL_WEIGHT_PAINT) && !(t->options & CTX_PAINT_CURVE)) {
     /* important that ob_armature can be set even when its not selected [#23412]
      * lines below just check is also visible */
     Object *ob_armature = BKE_modifiers_is_deformed_by_armature(ob);



More information about the Bf-blender-cvs mailing list