Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-09-22 18:29:15 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-09-22 18:29:15 +0400
commit1445ed9f11d3da64956b096d25ef3dbb9d9eff97 (patch)
tree9ab54d5ec871a50d477cefa3eb9dcd5a42cd12f7 /source
parent3833cb2e7656fe20ff031dcab686fa182097d3cb (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/transform/transform.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index f6b4f32adef..fbe0a1864bf 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -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;