[Bf-blender-cvs] [18310ad5093] master: Fix T66773: Active edit-bone isn't updating

Campbell Barton noreply at git.blender.org
Fri Jul 12 16:21:31 CEST 2019


Commit: 18310ad5093b33114c62b9e212a4fd1552385f63
Author: Campbell Barton
Date:   Sat Jul 13 00:20:28 2019 +1000
Branches: master
https://developer.blender.org/rB18310ad5093b33114c62b9e212a4fd1552385f63

Fix T66773: Active edit-bone isn't updating

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

M	source/blender/draw/intern/draw_armature.c

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

diff --git a/source/blender/draw/intern/draw_armature.c b/source/blender/draw/intern/draw_armature.c
index c0673afd0d1..f97efa9aed9 100644
--- a/source/blender/draw/intern/draw_armature.c
+++ b/source/blender/draw/intern/draw_armature.c
@@ -1886,17 +1886,21 @@ static void draw_armature_edit(Object *ob)
 {
   const DRWContextState *draw_ctx = DRW_context_state_get();
   EditBone *eBone;
-  bArmature *arm = ob->data;
   int index;
   const bool is_select = DRW_state_is_select();
 
-  update_color(ob, NULL);
-  edbo_compute_bbone_child(arm);
-
   const bool show_text = DRW_state_show_text();
   const bool show_relations = ((draw_ctx->v3d->flag & V3D_HIDE_HELPLINES) == 0);
 
   const Object *ob_orig = DEG_get_original_object(ob);
+  /* FIXME(campbell): We should be able to use the CoW object,
+   * however the active bone isn't updated. Long term solution is an 'EditArmature' struct.
+   * for now we can draw from the original armature. See: T66773. */
+  // bArmature *arm = ob->data;
+  bArmature *arm = ob_orig->data;
+
+  update_color(ob, NULL);
+  edbo_compute_bbone_child(arm);
 
   for (eBone = arm->edbo->first, index = ob_orig->runtime.select_id; eBone;
        eBone = eBone->next, index += 0x10000) {



More information about the Bf-blender-cvs mailing list