Synfig Issue Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
OPEN  Bug report #864  -  z-depth ignored after time loop repeat
Posted Apr 24, 2015 - updated Sep 27, 2015
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
Issue details
  • Type of issue
    Bug report
  • Status
     
    Confirmed
  • Assigned to
    Not assigned to anyone
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     pbattersby
  • Owned by
    Not owned by anyone
  • Category
    Animation
  • 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:

http://www.synfig.org/forums/viewtopic.php?f=15&t=9274

#5
Comment posted by
 djay
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 {
	if(!dynamic_param_list().count("z_depth"))
		return param_z_depth.get(Real());
	return (*dynamic_param_list().find("z_depth")->second)(t).get(Real());
}