Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_modes.c
| Show First 20 Lines • Show All 270 Lines • ▼ Show 20 Lines | if (ob->sculpt && (ob->sculpt->mode_type == OB_MODE_WEIGHT_PAINT)) { | ||||
| ED_object_wpaintmode_exit_ex(ob); | ED_object_wpaintmode_exit_ex(ob); | ||||
| } | } | ||||
| } | } | ||||
| else if (ob->mode & OB_MODE_SCULPT) { | else if (ob->mode & OB_MODE_SCULPT) { | ||||
| if (ob->sculpt && (ob->sculpt->mode_type == OB_MODE_SCULPT)) { | if (ob->sculpt && (ob->sculpt->mode_type == OB_MODE_SCULPT)) { | ||||
| if (only_test) { | if (only_test) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| ED_object_sculptmode_exit_ex(depsgraph, scene, ob); | ED_object_sculptmode_exit_ex(bmain, depsgraph, scene, ob); | ||||
| } | } | ||||
| } | } | ||||
| else if (ob->mode & OB_MODE_POSE) { | else if (ob->mode & OB_MODE_POSE) { | ||||
| if (ob->pose != NULL) { | if (ob->pose != NULL) { | ||||
| if (only_test) { | if (only_test) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| ED_object_posemode_exit_ex(bmain, ob); | ED_object_posemode_exit_ex(bmain, ob); | ||||
| Show All 26 Lines | |||||