Previous commit crashed transform in object mode.
This commit is contained in:
Ton Roosendaal
2008-12-31 18:18:38 +00:00
parent 0371e6cb21
commit da893e08c1

View File

@@ -678,7 +678,7 @@ void initTransInfo (bContext *C, TransInfo *t, wmEvent *event)
t->scene = sce;
t->sa = sa;
t->ar = ar;
if (obedit->type==OB_MESH)
if (obedit && obedit->type==OB_MESH)
t->em = ((Mesh *)obedit->data)->edit_mesh;
t->data = NULL;