Curves: move edit mode out of experimental

We (Dalai, Hans, Falk, Simon and me) decided that the curves edit mode
is useful enough to justify moving it out of experimental now. So far it
supports the following features:
* Various selection tools. The selections are synced with sculpt mode.
* Transform tools.
* Delete curves/points.

More functionality of the old curve edit mode will be ported over in
future releases.
This commit is contained in:
Jacques Lucke
2023-02-15 11:42:15 +01:00
parent ef46f735f3
commit 35cde8b5fd
2 changed files with 2 additions and 8 deletions

View File

@@ -142,12 +142,7 @@ bool ED_object_mode_compat_test(const Object *ob, eObjectMode mode)
}
break;
case OB_CURVES:
if (U.experimental.use_new_curves_tools) {
if (mode & OB_MODE_EDIT) {
return true;
}
}
if (mode & OB_MODE_SCULPT_CURVES) {
if (mode & (OB_MODE_EDIT | OB_MODE_SCULPT_CURVES)) {
return true;
}
break;

View File

@@ -556,8 +556,7 @@ enum {
/** Matches #OB_TYPE_SUPPORT_EDITMODE. */
#define OB_DATA_SUPPORT_EDITMODE(_type) \
(ELEM(_type, ID_ME, ID_CU_LEGACY, ID_MB, ID_LT, ID_AR) || \
(U.experimental.use_new_curves_tools && (_type) == ID_CV))
(ELEM(_type, ID_ME, ID_CU_LEGACY, ID_MB, ID_LT, ID_AR, ID_CV))
/* is this ID type used as object data */
#define OB_DATA_SUPPORT_ID(_id_type) \