Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/overlay_engine.c
| Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | if (dupli_data) { | ||||
| } | } | ||||
| return *dupli_data; | return *dupli_data; | ||||
| } | } | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| static bool overlay_object_is_edit_mode(const OVERLAY_PrivateData *pd, const Object *ob) | static bool overlay_object_is_edit_mode(const OVERLAY_PrivateData *pd, const Object *ob) | ||||
| { | { | ||||
| if ((ob->mode & OB_MODE_EDIT) && BKE_object_is_in_editmode(ob)) { | if (BKE_object_is_in_editmode(ob)) { | ||||
| /* Also check for context mode as the object mode is not 100% reliable. (see T72490) */ | /* Also check for context mode as the object mode is not 100% reliable. (see T72490) */ | ||||
| switch (ob->type) { | switch (ob->type) { | ||||
| case OB_MESH: | case OB_MESH: | ||||
| return pd->ctx_mode == CTX_MODE_EDIT_MESH; | return pd->ctx_mode == CTX_MODE_EDIT_MESH; | ||||
| case OB_ARMATURE: | case OB_ARMATURE: | ||||
| return pd->ctx_mode == CTX_MODE_EDIT_ARMATURE; | return pd->ctx_mode == CTX_MODE_EDIT_ARMATURE; | ||||
| case OB_CURVE: | case OB_CURVE: | ||||
| return pd->ctx_mode == CTX_MODE_EDIT_CURVE; | return pd->ctx_mode == CTX_MODE_EDIT_CURVE; | ||||
| ▲ Show 20 Lines • Show All 325 Lines • Show Last 20 Lines | |||||