Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface.c
| Show First 20 Lines • Show All 1,032 Lines • ▼ Show 20 Lines | if (but->rnapoin.owner_id) { | ||||
| /* avoid undo push for buttons who's ID are screen or wm level | /* avoid undo push for buttons who's ID are screen or wm level | ||||
| * we could disable undo for buttons with no ID too but may have | * we could disable undo for buttons with no ID too but may have | ||||
| * unforeseen consequences, so best check for ID's we _know_ are not | * unforeseen consequences, so best check for ID's we _know_ are not | ||||
| * handled by undo - campbell */ | * handled by undo - campbell */ | ||||
| ID *id = but->rnapoin.owner_id; | ID *id = but->rnapoin.owner_id; | ||||
| if (ID_CHECK_UNDO(id) == false) { | if (ID_CHECK_UNDO(id) == false) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| return true; | |||||
| } | } | ||||
| if (but->rnapoin.type && !RNA_struct_undo_check(but->rnapoin.type)) { | if (but->rnapoin.type && !RNA_struct_undo_check(but->rnapoin.type)) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 6,052 Lines • Show Last 20 Lines | |||||