Fix #28651: dopesheet crash when configuring keymap to use translate tool.

This doesn't work, needs to be time translate, but we can avoid the crash.
This commit is contained in:
Brecht Van Lommel
2011-09-22 14:29:15 +00:00
parent 3833cb2e76
commit 1445ed9f11

View File

@@ -3296,6 +3296,11 @@ int Trackball(TransInfo *t, const int UNUSED(mval[2]))
void initTranslation(TransInfo *t)
{
if (t->spacetype == SPACE_ACTION) {
/* this space uses time translate */
t->state = TRANS_CANCEL;
}
t->mode = TFM_TRANSLATION;
t->transform = Translation;