diff --git a/source/blender/editors/space_view3d/view3d_draw.cc b/source/blender/editors/space_view3d/view3d_draw.cc index 621e3423df6..0593d564f38 100644 --- a/source/blender/editors/space_view3d/view3d_draw.cc +++ b/source/blender/editors/space_view3d/view3d_draw.cc @@ -1347,6 +1347,14 @@ static void draw_selected_name( info_array[i++] = msg_space; info_array[i++] = ob->id.name + 2; + /* Show object data name when not in object mode. */ + if (ob->mode != OB_MODE_OBJECT) { + if (const ID *data_id = static_cast(ob->data)) { + info_array[i++] = " | "; + info_array[i++] = data_id->name + 2; + } + } + /* name(s) to display depends on type of object */ if (ob->type == OB_ARMATURE) { bArmature *arm = static_cast(ob->data);