Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_region_tooltip.c
| Show First 20 Lines • Show All 854 Lines • ▼ Show 20 Lines | if (but->rnapoin.id.data) { | ||||
| }); | }); | ||||
| /* this could get its own 'BUT_GET_...' type */ | /* this could get its own 'BUT_GET_...' type */ | ||||
| /* never fails */ | /* never fails */ | ||||
| /* move ownership (no need for re-alloc) */ | /* move ownership (no need for re-alloc) */ | ||||
| if (but->rnaprop) { | if (but->rnaprop) { | ||||
| field->text = RNA_path_full_property_py_ex( | field->text = RNA_path_full_property_py_ex( | ||||
| &but->rnapoin, but->rnaprop, but->rnaindex, true); | CTX_data_main(C), &but->rnapoin, but->rnaprop, but->rnaindex, true); | ||||
| } | } | ||||
| else { | else { | ||||
| field->text = RNA_path_full_struct_py(&but->rnapoin); | field->text = RNA_path_full_struct_py(CTX_data_main(C), &but->rnapoin); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* Free strinfo's... */ | /* Free strinfo's... */ | ||||
| if (but_label.strinfo) { | if (but_label.strinfo) { | ||||
| MEM_freeN(but_label.strinfo); | MEM_freeN(but_label.strinfo); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 468 Lines • Show Last 20 Lines | |||||