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:
authorRichard Antalik <richardantalik@gmail.com>2022-03-29 06:07:58 +0300
committerRichard Antalik <richardantalik@gmail.com>2022-03-29 06:07:58 +0300
commit540bfbbb27966b4b8affeaa273a70beac9373b23 (patch)
treeb44d147fc0786ec31f9edec6d58195613e5c9678 /source
parente74420124f3a429ad8a1492e56a7e1561d86d6f7 (diff)
Fix T96582: Wipe effect not working
Caused by oversight in 0e38002dd5dd. Constant x/y value was used to calculate transition instead of pixel x/y coords.
Diffstat (limited to 'source')
-rw-r--r--source/blender/sequencer/intern/effects.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/sequencer/intern/effects.c b/source/blender/sequencer/intern/effects.c
index 8f7088b0c4b..a4ab7671eb0 100644
--- a/source/blender/sequencer/intern/effects.c
+++ b/source/blender/sequencer/intern/effects.c
@@ -1681,7 +1681,7 @@ static void do_wipe_effect_byte(Sequence *seq,
for (int i = 0; i < y; i++) {
for (int j = 0; j < x; j++) {
- float check = check_zone(&wipezone, x, y, seq, fac);
+ float check = check_zone(&wipezone, j, i, seq, fac);
if (check) {
if (cp1) {
float rt1[4], rt2[4], tempc[4];
@@ -1742,7 +1742,7 @@ static void do_wipe_effect_float(
for (int i = 0; i < y; i++) {
for (int j = 0; j < x; j++) {
- float check = check_zone(&wipezone, x, y, seq, fac);
+ float check = check_zone(&wipezone, j, i, seq, fac);
if (check) {
if (rt1) {
rt[0] = rt1[0] * check + rt2[0] * (1 - check);