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
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/transform/transform.c')
-rw-r--r--source/blender/editors/transform/transform.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index 6ed2c28a7eb..9dcd3a3e510 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -48,6 +48,8 @@
#include "ED_screen.h"
#include "ED_space_api.h"
+#include "SEQ_transform.h"
+
#include "WM_api.h"
#include "WM_message.h"
#include "WM_types.h"
@@ -128,6 +130,11 @@ void setTransformViewAspect(TransInfo *t, float r_aspect[3])
ED_space_image_get_uv_aspect(sima, &r_aspect[0], &r_aspect[1]);
}
}
+ else if (t->spacetype == SPACE_SEQ) {
+ if (t->options & CTX_CURSOR) {
+ SEQ_image_preview_unit_to_px(t->scene, r_aspect, r_aspect);
+ }
+ }
else if (t->spacetype == SPACE_CLIP) {
SpaceClip *sclip = t->area->spacedata.first;