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_constraints.c')
-rw-r--r--source/blender/editors/transform/transform_constraints.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c
index e2ad89e0dbc..23ba335476c 100644
--- a/source/blender/editors/transform/transform_constraints.c
+++ b/source/blender/editors/transform/transform_constraints.c
@@ -755,7 +755,7 @@ void drawConstraint(TransInfo *t)
{
TransCon *tc = &(t->con);
- if (!ELEM(t->spacetype, SPACE_VIEW3D, SPACE_IMAGE, SPACE_NODE)) {
+ if (!ELEM(t->spacetype, SPACE_VIEW3D, SPACE_IMAGE, SPACE_NODE, SPACE_SEQ)) {
return;
}
if (!(tc->mode & CON_APPLY)) {
@@ -921,6 +921,16 @@ static void drawObjectConstraint(TransInfo *t)
}
}
+ if (t->options & CTX_SEQUENCER_IMAGE) {
+ /* Because we construct an "L" shape to deform the sequence, we should skip
+ * all points except the first vertex. Otherwise we will draw the same axis constraint line
+ * 3 times for each strip.
+ */
+ if (i % 3 != 0) {
+ continue;
+ }
+ }
+
if (t->flag & T_EDIT) {
mul_v3_m4v3(co, tc->mat, td->center);