Fix active object name not showing in viewport

This commit is contained in:
Dalai Felinto
2017-02-09 10:28:50 +01:00
parent f2ea319316
commit 9e95b5edd9

View File

@@ -2670,7 +2670,8 @@ static void view3d_main_region_draw_info(const bContext *C, Scene *scene,
draw_view_icon(rv3d, &rect);
if (U.uiflag & USER_DRAWVIEWINFO) {
Object *ob = OBACT;
SceneLayer *sl = CTX_data_scene_layer(C);
Object *ob = OBACT_NEW;
draw_selected_name(scene, ob, &rect);
}
}