Transform: fix non-3D view editmode assert
authorCampbell Barton <ideasman42@gmail.com>
Fri, 8 Jun 2018 04:31:40 +0000 (06:31 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 8 Jun 2018 04:31:40 +0000 (06:31 +0200)
source/blender/editors/transform/transform_conversions.c

index d4a01214d294b3a7d858b715dafb5f1e8cc4456d..0bc038800967a060cfd22c44b89c123eb70fd462 100644 (file)
@@ -8448,6 +8448,7 @@ void createTransData(bContext *C, TransInfo *t)
        }
        else if (t->spacetype == SPACE_ACTION) {
                t->flag |= T_POINTS | T_2D_EDIT;
+               t->obedit_type = -1;
 
                createTransActionData(C, t);
                countAndCleanTransDataContainer(t);
@@ -8460,17 +8461,23 @@ void createTransData(bContext *C, TransInfo *t)
        }
        else if (t->spacetype == SPACE_NLA) {
                t->flag |= T_POINTS | T_2D_EDIT;
+               t->obedit_type = -1;
+
                createTransNlaData(C, t);
                countAndCleanTransDataContainer(t);
        }
        else if (t->spacetype == SPACE_SEQ) {
                t->flag |= T_POINTS | T_2D_EDIT;
+               t->obedit_type = -1;
+
                t->num.flag |= NUM_NO_FRACTION; /* sequencer has no use for floating point transformations */
                createTransSeqData(C, t);
                countAndCleanTransDataContainer(t);
        }
        else if (t->spacetype == SPACE_IPO) {
                t->flag |= T_POINTS | T_2D_EDIT;
+               t->obedit_type = -1;
+
                createTransGraphEditData(C, t);
                countAndCleanTransDataContainer(t);
 
@@ -8482,6 +8489,7 @@ void createTransData(bContext *C, TransInfo *t)
        }
        else if (t->spacetype == SPACE_NODE) {
                t->flag |= T_POINTS | T_2D_EDIT;
+               t->obedit_type = -1;
 
                createTransNodeData(C, t);
                countAndCleanTransDataContainer(t);
@@ -8494,6 +8502,8 @@ void createTransData(bContext *C, TransInfo *t)
        }
        else if (t->spacetype == SPACE_CLIP) {
                t->flag |= T_POINTS | T_2D_EDIT;
+               t->obedit_type = -1;
+
                if (t->options & CTX_MOVIECLIP) {
                        createTransTrackingData(C, t);
                        countAndCleanTransDataContainer(t);