diff options
author | Joshua Leung <aligorith@gmail.com> | 2014-09-28 07:48:22 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2014-09-28 19:23:44 +0400 |
commit | 2b69665c147f226e820c3c7bba7cebe35ee1dc1b (patch) | |
tree | e789d481e8dc847d72085843649ae97b3c633e85 /source/blender/editors | |
parent | c63afbbe6ffa4ac8c11f3a8181a91616e5e4c7c7 (diff) |
Transform: Provide descriptive error messages when wrong transform modes are used in DopeSheet
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/transform/transform.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 008022a9859..31ef76f0bb9 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -58,6 +58,7 @@ #include "BKE_particle.h" #include "BKE_unit.h" #include "BKE_mask.h" +#include "BKE_report.h" #include "BIF_gl.h" #include "BIF_glutil.h" @@ -4066,6 +4067,9 @@ static void initTranslation(TransInfo *t) { if (t->spacetype == SPACE_ACTION) { /* this space uses time translate */ + BKE_report(t->reports, RPT_ERROR, + "Use 'Time_Translate' transform mode instead of 'Translation' mode " + "for translating keyframes in Dope Sheet Editor"); t->state = TRANS_CANCEL; } |