Fix T64130: Bezier curve vanishes on transform
This commit is contained in:
@@ -9558,7 +9558,8 @@ void createTransData(bContext *C, TransInfo *t)
|
|||||||
|
|
||||||
t->flag |= T_EDIT | T_POINTS;
|
t->flag |= T_EDIT | T_POINTS;
|
||||||
|
|
||||||
if (t->data_len_all && t->flag & T_PROP_EDIT) {
|
if (t->data_len_all) {
|
||||||
|
if (t->flag & T_PROP_EDIT) {
|
||||||
if (ELEM(t->obedit_type, OB_CURVE, OB_MESH)) {
|
if (ELEM(t->obedit_type, OB_CURVE, OB_MESH)) {
|
||||||
sort_trans_data(t); // makes selected become first in array
|
sort_trans_data(t); // makes selected become first in array
|
||||||
if ((t->obedit_type == OB_MESH) && (t->flag & T_PROP_CONNECTED)) {
|
if ((t->obedit_type == OB_MESH) && (t->flag & T_PROP_CONNECTED)) {
|
||||||
@@ -9575,6 +9576,14 @@ void createTransData(bContext *C, TransInfo *t)
|
|||||||
sort_trans_data_dist(t);
|
sort_trans_data_dist(t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
if (ELEM(t->obedit_type, OB_CURVE)) {
|
||||||
|
/* Needed because bezier handles can be partially selected
|
||||||
|
* and are still added into transform data. */
|
||||||
|
sort_trans_data(t); // makes selected become first in array
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* exception... hackish, we want bonesize to use bone orientation matrix (ton) */
|
/* exception... hackish, we want bonesize to use bone orientation matrix (ton) */
|
||||||
if (t->mode == TFM_BONESIZE) {
|
if (t->mode == TFM_BONESIZE) {
|
||||||
|
|||||||
Reference in New Issue
Block a user