Hi,<br><br>I&#39;ve just committed some fixes for some rather critical bugs caused by this commit. A few of my files refused to load (they hung in some system loop of some kind), while the 3d-view often &quot;blanked out&quot; on a few other files which managed to load (
i.e. peach bunny).<br><br>Checking the console, I noticed there were quite a few compiler warnings once again (all due to this commit it seems). Once I resolved all of them, the problems were gone. So once again, a reminder to all:&nbsp; &quot;Check your compiler warnings!&quot;
<br><br><br>Regards,<br>Joshua<br><br><div class="gmail_quote">On Jan 20, 2008 5:32 AM, Campbell Barton &lt;<a href="mailto:ideasman42@gmail.com">ideasman42@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Revision: 13295<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href="http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&amp;root=bf-blender&amp;revision=13295" target="_blank">http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&amp;root=bf-blender&amp;revision=13295
</a><br>Author: &nbsp; campbellbarton<br>Date: &nbsp; &nbsp; 2008-01-19 17:32:29 +0100 (Sat, 19 Jan 2008)<br><br>Log Message:<br>-----------<br>add the option to add the parents time offset value.<br><br>Modified Paths:<br>--------------
<br> &nbsp; &nbsp;trunk/blender/source/blender/blenkernel/BKE_object.h<br> &nbsp; &nbsp;trunk/blender/source/blender/blenkernel/intern/effect.c<br> &nbsp; &nbsp;trunk/blender/source/blender/blenkernel/intern/group.c<br> &nbsp; &nbsp;trunk/blender/source/blender/blenkernel/intern/object.c
<br> &nbsp; &nbsp;trunk/blender/source/blender/makesdna/DNA_object_types.h<br> &nbsp; &nbsp;trunk/blender/source/blender/python/api2_2x/Effect.c<br> &nbsp; &nbsp;trunk/blender/source/blender/src/buttons_object.c<br> &nbsp; &nbsp;trunk/blender/source/blender/src/drawaction.c
<br> &nbsp; &nbsp;trunk/blender/source/blender/src/drawipo.c<br> &nbsp; &nbsp;trunk/blender/source/blender/src/drawobject.c<br> &nbsp; &nbsp;trunk/blender/source/blender/src/editipo.c<br> &nbsp; &nbsp;trunk/blender/source/blender/src/editobject.c<br><br>Modified: trunk/blender/source/blender/blenkernel/BKE_object.h
<br>===================================================================<br>--- trunk/blender/source/blender/blenkernel/BKE_object.h &nbsp; &nbsp; &nbsp; &nbsp;2008-01-19 15:13:42 UTC (rev 13294)<br>+++ trunk/blender/source/blender/blenkernel/BKE_object.h &nbsp; &nbsp; &nbsp; &nbsp;2008-01-19 16:32:29 UTC (rev 13295)
<br>@@ -110,6 +110,8 @@<br><br>&nbsp;void object_handle_update(struct Object *ob);<br><br>+float give_timeoffset(struct Object *ob);<br>+<br>&nbsp;#ifdef __cplusplus<br>&nbsp;}<br>&nbsp;#endif<br><br>Modified: trunk/blender/source/blender/blenkernel/intern/effect.c
<br>===================================================================<br>--- trunk/blender/source/blender/blenkernel/intern/effect.c &nbsp; &nbsp; 2008-01-19 15:13:42 UTC (rev 13294)<br>+++ trunk/blender/source/blender/blenkernel/intern/effect.c &nbsp; &nbsp; 2008-01-19 16:32:29 UTC (rev 13295)
<br>@@ -1559,7 +1559,7 @@<br> &nbsp; &nbsp; &nbsp; &nbsp;framelenold= G.scene-&gt;r.framelen;<br> &nbsp; &nbsp; &nbsp; &nbsp;G.scene-&gt;r.framelen= 1.0f;<br> &nbsp; &nbsp; &nbsp; &nbsp;cfrao= G.scene-&gt;r.cfra;<br>- &nbsp; &nbsp; &nbsp; sfo= ob-&gt;sf;<br>+ &nbsp; &nbsp; &nbsp; sfo= ob-&gt;sf; /* warning, dont use sfo, value should be from give_timeoffset if used for anything */
<br> &nbsp; &nbsp; &nbsp; &nbsp;ob-&gt;sf= 0.0f;<br><br> &nbsp; &nbsp; &nbsp; &nbsp;/* clear storage, copy recalc tag (bad loop) */<br><br>Modified: trunk/blender/source/blender/blenkernel/intern/group.c<br>===================================================================
<br>--- trunk/blender/source/blender/blenkernel/intern/group.c &nbsp; &nbsp; &nbsp;2008-01-19 15:13:42 UTC (rev 13294)<br>+++ trunk/blender/source/blender/blenkernel/intern/group.c &nbsp; &nbsp; &nbsp;2008-01-19 16:32:29 UTC (rev 13295)<br>@@ -241,12 +241,12 @@
<br> &nbsp; &nbsp; &nbsp; &nbsp;GroupObject *go;<br><br> &nbsp; &nbsp; &nbsp; &nbsp;/* if animated group... */<br>- &nbsp; &nbsp; &nbsp; if(parent-&gt;sf != 0.0f || parent-&gt;nlastrips.first) {<br>+ &nbsp; &nbsp; &nbsp; if(give_timeoffset(parent) != 0.0f || parent-&gt;nlastrips.first) {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int cfrao;<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/* switch to local time */<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cfrao= G.scene-&gt;r.cfra;<br>- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; G.scene-&gt;r.cfra -= (int)parent-&gt;sf;<br>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; G.scene-&gt;r.cfra
 -= (int)give_timeoffset(parent);<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/* we need a DAG per group... */<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for(go= group-&gt;gobject.first; go; go= go-&gt;next) {<br><br>Modified: trunk/blender/source/blender/blenkernel/intern/object.c
<br>===================================================================<br>--- trunk/blender/source/blender/blenkernel/intern/object.c &nbsp; &nbsp; 2008-01-19 15:13:42 UTC (rev 13294)<br>+++ trunk/blender/source/blender/blenkernel/intern/object.c &nbsp; &nbsp; 2008-01-19 16:32:29 UTC (rev 13295)
<br>@@ -1367,7 +1367,7 @@<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/* ofset frames */<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ((ob-&gt;ipoflag &amp; OB_OFFS_PARENT) &amp;&amp; (ob-&gt;partype &amp; PARSLOW)==0)<br>- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cfra-= ob-&gt;sf;<br>
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cfra-= give_timeoffset(ob);<br> &nbsp; &nbsp; &nbsp; &nbsp;}<br><br> &nbsp; &nbsp; &nbsp; &nbsp;cfra-= ofs;<br>@@ -1438,7 +1438,7 @@<br>&nbsp;{<br> &nbsp; &nbsp; &nbsp; &nbsp;Curve *cu;<br> &nbsp; &nbsp; &nbsp; &nbsp;float q[4], vec[4], dir[3], *quat, x1, ctime;<br>- &nbsp; &nbsp; &nbsp; float timeoffs= 
0.0;<br>+ &nbsp; &nbsp; &nbsp; float timeoffs, sf_orig = 0.0;<br><br> &nbsp; &nbsp; &nbsp; &nbsp;Mat4One(mat);<br><br>@@ -1449,7 +1449,8 @@<br><br> &nbsp; &nbsp; &nbsp; &nbsp;/* exception, timeoffset is regarded as distance offset */<br> &nbsp; &nbsp; &nbsp; &nbsp;if(cu-&gt;flag &amp; CU_OFFS_PATHDIST) {
<br>- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SWAP(float, timeoffs, ob-&gt;sf);<br>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timeoffs = give_timeoffset(ob);<br>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SWAP(float, sf_orig, ob-&gt;sf);<br> &nbsp; &nbsp; &nbsp; &nbsp;}<br><br> &nbsp; &nbsp; &nbsp; &nbsp;/* catch exceptions: feature for nla stride editing */
<br>@@ -1466,7 +1467,7 @@<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br> &nbsp; &nbsp; &nbsp; &nbsp;}<br> &nbsp; &nbsp; &nbsp; &nbsp;else {<br>- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ctime= G.scene-&gt;r.cfra - ob-&gt;sf;<br>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ctime= G.scene-&gt;r.cfra - give_timeoffset(ob);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ctime /= cu-&gt;pathlen;
<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CLAMP(ctime, 0.0, 1.0);<br>@@ -1477,7 +1478,7 @@<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ctime += timeoffs/cu-&gt;path-&gt;totdist;<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/* restore */<br>- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SWAP(float, timeoffs, ob-&gt;sf);
<br>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SWAP(float, sf_orig, ob-&gt;sf);<br> &nbsp; &nbsp; &nbsp; &nbsp;}<br><br><br>@@ -1735,7 +1736,7 @@<br> &nbsp; &nbsp; &nbsp; &nbsp;if(ob-&gt;parent) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Object *par= ob-&gt;parent;<br><br>- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(ob-&gt;ipoflag &amp; OB_OFFS_PARENT) ctime-= ob-&gt;sf;
<br>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(ob-&gt;ipoflag &amp; OB_OFFS_PARENT) ctime-= give_timeoffset(ob);<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/* hurms, code below conflicts with depgraph... (ton) */<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/* and even worse, it gives bad effects for NLA stride too (try ctime != par-&gt;ctime, with MBlur) */
<br>@@ -1759,7 +1760,7 @@<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(ob-&gt;partype &amp; PARSLOW) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// include framerate<br><br>- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fac1= (1.0f/(1.0f+ fabs(ob-&gt;sf)));<br>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fac1= (
1.0f/(1.0f+ fabs(give_timeoffset(ob))));<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(fac1&gt;=1.0) return;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fac2= 1.0f-fac1;<br><br>@@ -1942,7 +1943,7 @@<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(ob-&gt;partype &amp; PARSLOW) {
<br><br>- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fac1= (float)(1.0/(1.0+ fabs(ob-&gt;sf)));<br>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fac1= (float)(1.0/(1.0+ fabs(give_timeoffset(ob))));<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fac2= 1.0f-fac1;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fp1= ob-&gt;obmat[0];
<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fp2= slowmat[0];<br>@@ -2247,3 +2248,11 @@<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// printf(&quot;set proxy pointer for later group stuff %s\n&quot;, ob-&gt;<a href="http://id.name" target="_blank">id.name</a>);<br>
 &nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp;}<br>+<br>+float give_timeoffset(Object *ob) {<br>+ &nbsp; &nbsp; &nbsp; if ((ob-&gt;ipoflag &amp; OB_OFFS_PARENTADD) &amp;&amp; ob-&gt;parent) {<br>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return ob-&gt;sf + give_timeoffset(ob-&gt;parent);<br>+ &nbsp; &nbsp; &nbsp; } else {
<br>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return ob-&gt;sf;<br>+ &nbsp; &nbsp; &nbsp; }<br>+}<br>\ No newline at end of file<br><br>Modified: trunk/blender/source/blender/makesdna/DNA_object_types.h<br>===================================================================
<br>--- trunk/blender/source/blender/makesdna/DNA_object_types.h &nbsp; &nbsp;2008-01-19 15:13:42 UTC (rev 13294)<br>+++ trunk/blender/source/blender/makesdna/DNA_object_types.h &nbsp; &nbsp;2008-01-19 16:32:29 UTC (rev 13295)<br>@@ -297,6 +297,9 @@
<br> &nbsp; &nbsp; &nbsp; &nbsp;/* for stride edit */<br>&nbsp;#define OB_DISABLE_PATH &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1024<br><br>+#define OB_OFFS_PARENTADD &nbsp; &nbsp; &nbsp;2048<br>+<br>+<br>&nbsp;/* (short) trackflag / upflag */<br>&nbsp;#define OB_POSX &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0<br>
&nbsp;#define OB_POSY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1<br><br>Modified: trunk/blender/source/blender/python/api2_2x/Effect.c<br>===================================================================<br>--- trunk/blender/source/blender/python/api2_2x/Effect.c &nbsp; &nbsp; &nbsp; &nbsp;2008-01-19 15:13:42 UTC (rev 13294)
<br>+++ trunk/blender/source/blender/python/api2_2x/Effect.c &nbsp; &nbsp; &nbsp; &nbsp;2008-01-19 16:32:29 UTC (rev 13295)<br>@@ -1,5 +1,5 @@<br>&nbsp;/*<br>- * $Id: Effect.c 11485 2007-08-05 09:21:29Z aligorith $<br>+ * $Id$<br> &nbsp;*<br> &nbsp;* ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
<br> &nbsp;*<br>@@ -1330,7 +1330,7 @@<br><br> &nbsp; &nbsp; &nbsp; &nbsp;/* if object is in motion */<br> &nbsp; &nbsp; &nbsp; &nbsp;if( ob-&gt;ipoflag &amp; OB_OFFS_PARTICLE )<br>- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p_time= ob-&gt;sf;<br>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; p_time= give_timeoffset(ob);<br>
 &nbsp; &nbsp; &nbsp; &nbsp;else<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;p_time= 0.0;<br><br><br>Modified: trunk/blender/source/blender/src/buttons_object.c<br>===================================================================<br>--- trunk/blender/source/blender/src/buttons_object.c &nbsp; 2008-01-19 15:13:42 UTC (rev 13294)
<br>+++ trunk/blender/source/blender/src/buttons_object.c &nbsp; 2008-01-19 16:32:29 UTC (rev 13295)<br>@@ -2494,21 +2494,25 @@<br> &nbsp; &nbsp; &nbsp; &nbsp;uiDefButI(block, NUM, REDRAWVIEW3D, &quot;DupOn:&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 170,85,146,19, &amp;ob-&gt;dupon, 
1.0, 1500.0, 0, 0, &quot;Specify the number of frames to use between DupOff frames&quot;);<br> &nbsp; &nbsp; &nbsp; &nbsp;uiDefButI(block, NUM, REDRAWVIEW3D, &quot;DupEnd&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 24,65,140,19, &amp;ob-&gt;dupend, 1.0, 32767, 0, 0, &quot;Specify endframe for Dupliframes&quot;);
<br> &nbsp; &nbsp; &nbsp; &nbsp;uiDefButI(block, NUM, REDRAWVIEW3D, &quot;DupOff&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 171,65,145,19, &amp;ob-&gt;dupoff, 0.0, 1500.0, 0, 0, &quot;Specify recurring frames to exclude from the Dupliframes&quot;);<br>+ &nbsp; &nbsp; &nbsp; uiBlockEndAlign(block);
<br>+<br> &nbsp; &nbsp; &nbsp; &nbsp;uiBlockBeginAlign(block);<br>- &nbsp; &nbsp; &nbsp; uiDefButBitS(block, TOG, OB_OFFS_OB, REDRAWALL, &quot;Offs Ob&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;24,35,56,20, &amp;ob-&gt;ipoflag, 0, 0, 0, 0, &quot;Not functional at the moment!&quot;);
<br>- &nbsp; &nbsp; &nbsp; uiDefButBitS(block, TOG, OB_OFFS_PARENT, REDRAWALL, &quot;Offs Par&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 82,35,56,20 , &amp;ob-&gt;ipoflag, 0, 0, 0, 0, &quot;Let the timeoffset work on the parent&quot;);<br>- &nbsp; &nbsp; &nbsp; uiDefButBitS(block, TOG, OB_OFFS_PARTICLE, REDRAWALL, &quot;Offs Particle&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;140,35,103,20, &amp;ob-&gt;ipoflag, 0, 0, 0, 0, &quot;Let the timeoffset work on the particle effect&quot;);
<br>+ &nbsp; &nbsp; &nbsp; uiDefButF(block, NUM, REDRAWALL, &quot;TimeOffset:&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 24,35,115,20, &amp;ob-&gt;sf, -MAXFRAMEF, MAXFRAMEF, 100, 0, &quot;Animation offset in frames for ipo&#39;s and dupligroup instances&quot;);
<br>+ &nbsp; &nbsp; &nbsp; uiDefBut(block, BUT, B_AUTOTIMEOFS, &quot;Auto&quot;, &nbsp; &nbsp; 139,35,34,20, 0, 0, 0, 0, 0, &quot;Assign selected objects a timeoffset within a range, starting from the active object&quot;);<br>+ &nbsp; &nbsp; &nbsp; uiDefBut(block, BUT, B_OFSTIMEOFS, &quot;Ofs&quot;, &nbsp; &nbsp; &nbsp; 173,35,34,20, 0, 0, 0, 0, 0, &quot;Offset selected objects timeoffset&quot;);
<br>+ &nbsp; &nbsp; &nbsp; uiDefBut(block, BUT, B_RANDTIMEOFS, &quot;Rand&quot;, &nbsp; &nbsp; 207,35,34,20, 0, 0, 0, 0, 0, &quot;Randomize selected objects timeoffset&quot;);<br>+ &nbsp; &nbsp; &nbsp; uiDefBut(block, BUT, B_PRINTSPEED, &nbsp; &nbsp; &nbsp;&quot;PrSpeed&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;250,35,65,20, 0, 0, 0, 0, 0, &quot;Print objectspeed&quot;);
<br>+ &nbsp; &nbsp; &nbsp; uiBlockEndAlign(block);<br><br> &nbsp; &nbsp; &nbsp; &nbsp;uiBlockBeginAlign(block);<br>- &nbsp; &nbsp; &nbsp; uiDefButF(block, NUM, REDRAWALL, &quot;TimeOffset:&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 24,10,115,20, &amp;ob-&gt;sf, -MAXFRAMEF, MAXFRAMEF, 100, 0, &quot;Animation offset in frames for ipo&#39;s and dupligroup instances&quot;);
<br>- &nbsp; &nbsp; &nbsp; uiDefBut(block, BUT, B_AUTOTIMEOFS, &quot;Auto&quot;, &nbsp; &nbsp; 139,10,34,20, 0, 0, 0, 0, 0, &quot;Assign selected objects a timeoffset within a range, starting from the active object&quot;);<br>- &nbsp; &nbsp; &nbsp; uiDefBut(block, BUT, B_OFSTIMEOFS, &quot;Ofs&quot;, &nbsp; &nbsp; &nbsp; 173,10,34,20, 0, 0, 0, 0, 0, &quot;Offset selected objects timeoffset&quot;);
<br>- &nbsp; &nbsp; &nbsp; uiDefBut(block, BUT, B_RANDTIMEOFS, &quot;Rand&quot;, &nbsp; &nbsp; 207,10,34,20, 0, 0, 0, 0, 0, &quot;Randomize selected objects timeoffset&quot;);<br>- &nbsp; &nbsp; &nbsp; uiDefBut(block, BUT, B_PRINTSPEED, &nbsp; &nbsp; &nbsp;&quot;PrSpeed&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;250,10,65,20, 0, 0, 0, 0, 0, &quot;Print objectspeed&quot;);
<br>+ &nbsp; &nbsp; &nbsp; uiDefButBitS(block, TOG, OB_OFFS_OB, REDRAWALL, &quot;OfsEdit&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;24,10,56,20, &amp;ob-&gt;ipoflag, 0, 0, 0, 0, &quot;Use timeoffset when inserting keys and display timeoffset for ipo and action views&quot;);
<br>+ &nbsp; &nbsp; &nbsp; uiDefButBitS(block, TOG, OB_OFFS_PARENT, REDRAWALL, &quot;OfsParent&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;82,10,56,20 , &amp;ob-&gt;ipoflag, 0, 0, 0, 0, &quot;Apply the timeoffset to this objects parent relationship&quot;);
<br>+ &nbsp; &nbsp; &nbsp; uiDefButBitS(block, TOG, OB_OFFS_PARTICLE, REDRAWALL, &quot;OfsParticle&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;140,10,56,20, &amp;ob-&gt;ipoflag, 0, 0, 0, 0, &quot;Let the timeoffset work on the particle effect&quot;);<br>+ &nbsp; &nbsp; &nbsp; uiDefButBitS(block, TOG, OB_OFFS_PARENTADD, REDRAWALL, &quot;AddParent&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 196,10,56,20, &amp;ob-&gt;ipoflag, 0, 0, 0, 0, &quot;Add the parents timeoffset value&quot;);
<br> &nbsp; &nbsp; &nbsp; &nbsp;uiBlockEndAlign(block);<br><br> &nbsp; &nbsp; &nbsp; &nbsp;sprintf(str, &quot;%.4f&quot;, prspeed);<br>- &nbsp; &nbsp; &nbsp; uiDefBut(block, LABEL, 0, str, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;247,35,63,31, NULL, 1.0, 0, 0, 0, &quot;&quot;);
<br>+ &nbsp; &nbsp; &nbsp; uiDefBut(block, LABEL, 0, str, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;260,10,63,31, NULL, 1.0, 0, 0, 0, &quot;&quot;);<br><br>&nbsp;}<br><br><br>Modified: trunk/blender/source/blender/src/drawaction.c<br>
===================================================================<br>--- trunk/blender/source/blender/src/drawaction.c &nbsp; &nbsp; &nbsp; 2008-01-19 15:13:42 UTC (rev 13294)<br>+++ trunk/blender/source/blender/src/drawaction.c &nbsp; &nbsp; &nbsp; 2008-01-19 16:32:29 UTC (rev 13295)
<br>@@ -374,8 +374,8 @@<br><br> &nbsp; &nbsp; &nbsp; &nbsp;/* Draw dark green line if slow-parenting/time-offset is enabled */<br> &nbsp; &nbsp; &nbsp; &nbsp;ob= (G.scene-&gt;basact) ? (G.scene-&gt;basact-&gt;object) : 0;<br>- &nbsp; &nbsp; &nbsp; if ((ob) &amp;&amp; (ob-&gt;sf!=
0.0) &amp;&amp; (ob-&gt;ipoflag &amp; OB_OFFS_OB)) {<br>- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vec[0]-= ob-&gt;sf;<br>+ &nbsp; &nbsp; &nbsp; if ((ob) &amp;&amp; (ob-&gt;ipoflag &amp; OB_OFFS_OB) &amp;&amp; (give_timeoffset(ob)!=0.0)) {<br>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vec[0]-= give_timeoffset(ob); /* could avoid calling twice */
<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BIF_ThemeColorShade(TH_CFRAME, -30);<br><br><br>Modified: trunk/blender/source/blender/src/drawipo.c<br>===================================================================<br>--- trunk/blender/source/blender/src/drawipo.c &nbsp;2008-01-19 15:13:42 UTC (rev 13294)
<br>+++ trunk/blender/source/blender/src/drawipo.c &nbsp;2008-01-19 16:32:29 UTC (rev 13295)<br>@@ -1571,8 +1571,8 @@<br><br> &nbsp; &nbsp; &nbsp; &nbsp;if(sipo-&gt;blocktype==ID_OB) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ob= (G.scene-&gt;basact) ? (G.scene-&gt;basact-&gt;object) : 0;
<br>- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (ob &amp;&amp; (ob-&gt;sf!=0.0) &amp;&amp; (ob-&gt;ipoflag &amp; OB_OFFS_OB) ) {<br>- &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vec[0]-= ob-&gt;sf;<br>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (ob &amp;&amp; (ob-&gt;ipoflag &amp; OB_OFFS_OB) &amp;&amp; (give_timeoffset(ob)!=
0.0)) {<br>+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vec[0]-= give_timeoffset(ob);<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BIF_ThemeColorShade(TH_HILITE, -30);<br><br><br>Modified: trunk/blender/source/blender/src/drawobject.c<br><br>@@ Diff output truncated at 10240 characters. @@
<br><br>_______________________________________________<br>Bf-blender-cvs mailing list<br><a href="mailto:Bf-blender-cvs@blender.org">Bf-blender-cvs@blender.org</a><br><a href="http://lists.blender.org/mailman/listinfo/bf-blender-cvs" target="_blank">
http://lists.blender.org/mailman/listinfo/bf-blender-cvs</a><br></blockquote></div><br>