Fix T83293: crash when selecting bone
This partially reverts rBe922dd7d8a307c54d49bc01649a12610b022192b. The issues fixed by that commit is still fixed. Reviewers: fclem
This commit is contained in:
parent
13c3ad7e76
commit
85f9d319a4
Notes:
blender-bot
2023-02-14 08:42:53 +01:00
Referenced by issue #83293, Crash when selecting Bone
|
@ -1910,7 +1910,7 @@ static void draw_armature_edit(ArmatureDrawContext *ctx)
|
|||
|
||||
edbo_compute_bbone_child(arm);
|
||||
|
||||
for (eBone = arm->edbo->first, index = ob->runtime.select_id; eBone;
|
||||
for (eBone = arm->edbo->first, index = ob_orig->runtime.select_id; eBone;
|
||||
eBone = eBone->next, index += 0x10000) {
|
||||
if (eBone->layer & arm->layer) {
|
||||
if ((eBone->flag & BONE_HIDDEN_A) == 0) {
|
||||
|
@ -2005,7 +2005,8 @@ static void draw_armature_pose(ArmatureDrawContext *ctx)
|
|||
DRW_state_is_select();
|
||||
|
||||
if (is_pose_select) {
|
||||
index = ob->runtime.select_id;
|
||||
const Object *ob_orig = DEG_get_original_object(ob);
|
||||
index = ob_orig->runtime.select_id;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue