Synfig Issue Tracker
Please log in to bookmark issues
OPEN  Bug report #864  -  z-depth ignored after time loop repeat
Posted Apr 24, 2015 - updated Sep 27, 2015
Issue details
  • Type of issue
    Bug report
  • Status
  • Assigned to
    Not assigned to anyone
  • Progress
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
  • Owned by
    Not owned by anyone
  • Category
  • Resolution
    Not determined
  • Priority
    Not determined
  • Targetted for
    icon_milestones.png Not determined
  • Tags
    icon_customdatatype.png Not determined
  • Difficulty
    icon_customdatatype.png Not determined
Issue description
I have a basic animation (attached) where I have a red circle passing in front of a green circle, then the red circle returns but this time passes behind the green circle. I grouped these together and added a time loop to the top of the group. The circles take 2 seconds to complete their path, so I set the time loop duration to 2s and the duration of the canvas to 4 seconds.

On the first iteration of the animation, the circles behave as expected. On the repeat of the animation, the red circle always remains behind the green circle. It appears that once repeated, the z-depth is ignored.

Tested with 1.0 RC4 and 1.0 RC5
Steps to reproduce this issue
A .sif file demonstrating the problem is attached to the first post in this thread:

Comment posted by
Sep 27, 13:29
NOTA : During rendering, Layer::get_z_depth is called with canvas::current_time , but something like context time should be used.

float Layer::get_z_depth(const synfig::Time& t)const {
		return param_z_depth.get(Real());
	return (*dynamic_param_list().find("z_depth")->second)(t).get(Real());