[Bf-committers] sequence.c

Shaul Kedem shaul.kedem at gmail.com
Fri Sep 16 10:52:22 CEST 2005


Hi all,
In the following code :
 
StripElem *give_stripelem(Sequence *seq, int cfra)
{
	Strip *strip;
	StripElem *se;
	int nr;

	strip= seq->strip;
	se= strip->stripdata;

	*if*(se==0) *return* 0;
	*if*(seq->startdisp >cfra || seq->enddisp <= cfra) *return* 0;

	*if*(cfra <= seq->start) nr= 0;
	*else* *if*(cfra >= seq->start+seq->len-1) nr= seq->len-1;
	*else* nr= cfra-seq->start;


	se+= nr;
	se->nr= nr;

	*return* se;
}

Please advise; why is there an se+= nr and se->nr = nr at the end of
this function?

Thnx,
Shaul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.blender.org/pipermail/bf-committers/attachments/20050916/5f2d726a/attachment.html


More information about the Bf-committers mailing list