Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-07-12 17:20:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-07-12 17:20:28 +0300
commit18310ad5093b33114c62b9e212a4fd1552385f63 (patch)
treeb14b2e667e5b5f3863e425fd82a769705ef3a775 /source/blender/draw/intern/draw_armature.c
parent3569fdb745fd66d665ac3029d64effd9f3022b17 (diff)
Fix T66773: Active edit-bone isn't updating
Diffstat (limited to 'source/blender/draw/intern/draw_armature.c')
-rw-r--r--source/blender/draw/intern/draw_armature.c12
1 files changed, 8 insertions, 4 deletions
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) {