Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_outliner/outliner_draw.c
| Context not available. | |||||
| spx = te->xs + 1.8f * UI_UNIT_X; | spx = te->xs + 1.8f * UI_UNIT_X; | ||||
| dx = region->v2d.cur.xmax - (spx + restrict_column_width + 0.2f * UI_UNIT_X); | dx = region->v2d.cur.xmax - (spx + restrict_column_width + 0.2f * UI_UNIT_X); | ||||
| PointerRNA ptr; | |||||
| Object *ob = (Object *)tselem->id; | |||||
| RNA_pointer_create(&ob->id, &RNA_Object, (void *)ob, &ptr); | |||||
| bt = uiDefBut(block, | bt = uiDefBut(block, | ||||
| UI_BTYPE_TEXT, | UI_BTYPE_TEXT, | ||||
| OL_NAMEBUTTON, | OL_NAMEBUTTON, | ||||
| Context not available. | |||||
| 0, | 0, | ||||
| 0, | 0, | ||||
| ""); | ""); | ||||
| UI_but_func_rename_set(bt, namebutton_fn, tselem); | UI_but_func_rename_set_rna(bt, namebutton_fn, tselem, &ptr); | ||||
| /* Returns false if button got removed. */ | /* Returns false if button got removed. */ | ||||
| if (false == UI_but_active_only(C, region, block, bt)) { | if (false == UI_but_active_only(C, region, block, bt)) { | ||||
| Context not available. | |||||