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:
authorCampbell Barton <ideasman42@gmail.com>2021-10-07 04:32:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-10-07 19:27:55 +0300
commitd04d27b406b856396102452cab0eedf315e94a54 (patch)
tree4a881ab29123828287f83272a0ca1d03b62b4472 /source/blender/editors/transform/transform.c
parent919e513fa8f9fb4f1304ea4b752869b6d63b1608 (diff)
Sequencer: 2D cursor for the preview & transform
- Use 2D cursor in the preview space using shortcuts matching the UV editor and 3D view. - Add Cursor tool, cursor transform. - Support for cursor and bound-box pivot. - Add pivot pie menu.
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;