Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_modes.c
| Context not available. | |||||
| #include "DEG_depsgraph.h" | #include "DEG_depsgraph.h" | ||||
| #include "ED_armature.h" | #include "ED_armature.h" | ||||
| #include "ED_gpencil.h" | |||||
| #include "ED_screen.h" | #include "ED_screen.h" | ||||
| #include "ED_object.h" /* own include */ | #include "ED_object.h" /* own include */ | ||||
| Context not available. | |||||
| ED_object_posemode_exit_ex(bmain, ob); | ED_object_posemode_exit_ex(bmain, ob); | ||||
| } | } | ||||
| } | } | ||||
| else if ((ob->type == OB_GPENCIL) && ((ob->mode & OB_MODE_OBJECT) == 0)) { | |||||
| if (only_test) { | |||||
| return true; | |||||
| } | |||||
| ED_object_gpencil_exit(bmain, ob); | |||||
| } | |||||
| else { | else { | ||||
| if (only_test) { | if (only_test) { | ||||
| return false; | return false; | ||||
| Context not available. | |||||