Merge branch 'master' into blender2.8
This commit is contained in:
commit
0e0502cbdf
|
@ -872,7 +872,7 @@ static void do_outliner_item_activate_tree_element(
|
|||
|
||||
WM_event_add_notifier(C, NC_SCENE | ND_OB_SELECT, scene);
|
||||
}
|
||||
else if (ELEM(te->idcode, ID_ME, ID_CU, ID_MB, ID_LT, ID_AR)) {
|
||||
else if (OB_DATA_SUPPORT_EDITMODE(te->idcode)) {
|
||||
WM_operator_name_call(C, "OBJECT_OT_editmode_toggle", WM_OP_INVOKE_REGION_WIN, NULL);
|
||||
}
|
||||
else { // rest of types
|
||||
|
|
|
@ -389,6 +389,10 @@ enum {
|
|||
#define OB_TYPE_SUPPORT_PARVERT(_type) \
|
||||
(ELEM(_type, OB_MESH, OB_SURF, OB_CURVE, OB_LATTICE))
|
||||
|
||||
/** Matches #OB_TYPE_SUPPORT_EDITMODE. */
|
||||
#define OB_DATA_SUPPORT_EDITMODE(_type) \
|
||||
(ELEM(_type, ID_ME, ID_CU, ID_MB, ID_LT, ID_AR))
|
||||
|
||||
/* is this ID type used as object data */
|
||||
#define OB_DATA_SUPPORT_ID(_id_type) \
|
||||
(ELEM(_id_type, ID_ME, ID_CU, ID_MB, ID_LA, ID_SPK, ID_LP, ID_CA, ID_LT, ID_AR))
|
||||
|
|
Loading…
Reference in New Issue