Use OBACT_NEW to show the object edit mode

This commit is contained in:
Dalai Felinto 2017-02-10 20:46:16 +01:00
parent f9329997c3
commit 0b27b65f24
1 changed files with 2 additions and 1 deletions

View File

@ -284,9 +284,10 @@ void uiTemplateHeader3D(uiLayout *layout, struct bContext *C)
ScrArea *sa = CTX_wm_area(C);
View3D *v3d = sa->spacedata.first;
Scene *scene = CTX_data_scene(C);
SceneLayer *sl = CTX_data_scene_layer(C);
ToolSettings *ts = CTX_data_tool_settings(C);
PointerRNA v3dptr, toolsptr, sceneptr;
Object *ob = OBACT;
Object *ob = OBACT_NEW;
Object *obedit = CTX_data_edit_object(C);
bGPdata *gpd = CTX_data_gpencil_data(C);
uiBlock *block;