Branch: refs/heads/master
  Home:   https://github.com/synfig/synfig
  Commit: 58f522ec25d845ee7734dab0ca385a8ff5ccfd3c
      
https://github.com/synfig/synfig/commit/58f522ec25d845ee7734dab0ca385a8ff5ccfd3c
  Author: rodolforg <rodolf...@users.noreply.github.com>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M synfig-core/src/synfig/layers/layer_motionblur.cpp

  Log Message:
  -----------
  fix(MotionBlur): undefined behavior when subsample range is 0 (#3347)

For linear subsampling type, there is an undefined behavior
when both subsample (start and end) amounts are 0.

Synfig version 1.0.2: *none* is drawn!
Synfig version 1.2.1: a pale gray rectangle is drawn
Synfig version 1.4.3: a black gray rectangle is drawn

Anyway, this commit fixes the case when both are 0, by drawing
the context without any motion blur effect.

Note:
If they (the subsample amounts) are equal, but both nonzero, the
canvas is normally drawn.
Behavior is not the same between 1.0.2 and >=1.2.1 though.
The motion trail has a different number of 'echoes':
1.0.2 has less than the next releases.

fix #3345



To unsubscribe from these emails, change your notification settings at 
https://github.com/synfig/synfig/settings/notifications


_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to