Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface.c
| Show First 20 Lines • Show All 826 Lines • ▼ Show 20 Lines | #if 0 | ||||
| but->softmin = oldbut->softmin; | but->softmin = oldbut->softmin; | ||||
| but->softmax = oldbut->softmax; | but->softmax = oldbut->softmax; | ||||
| oldbut->active = NULL; | oldbut->active = NULL; | ||||
| #endif | #endif | ||||
| /* move button over from oldblock to new block */ | /* move button over from oldblock to new block */ | ||||
| BLI_remlink(&oldblock->buttons, oldbut); | BLI_remlink(&oldblock->buttons, oldbut); | ||||
| BLI_insertlinkafter(&block->buttons, but, oldbut); | BLI_insertlinkafter(&block->buttons, but, oldbut); | ||||
| /* Add the old button to the button groups in the new block. */ | |||||
| ui_button_group_replace_but_ptr(block, but, oldbut); | |||||
| oldbut->block = block; | oldbut->block = block; | ||||
| *but_p = oldbut; | *but_p = oldbut; | ||||
| /* still stuff needs to be copied */ | /* still stuff needs to be copied */ | ||||
| oldbut->rect = but->rect; | oldbut->rect = but->rect; | ||||
| oldbut->context = but->context; /* set by Layout */ | oldbut->context = but->context; /* set by Layout */ | ||||
| /* drawing */ | /* drawing */ | ||||
| ▲ Show 20 Lines • Show All 6,198 Lines • Show Last 20 Lines | |||||