Greetings<br>Sometime ago my blender (compiled from svn) started to act strange when importing files..<br>The problem was that in rev 14202 the struct RenderData had an attribute modified from short to int and the handling of files started to act strangely.<br>
I tried to find the problem.. and it turned out that a fresh compile would solve the problem.<br><br><br>When trying to figure out what was going wrong I found some small/tiny things that now I describe (in case you are interested):<br>
<br>1) source/blender/maksdna/dna.c isn&#39;t being updated correctly by dependencies<br><br>2) When the attribute RenderData.scemode was modified from short to int.. there was some parts of the code that still assume it to be short<br>
<br>Index: source/blender/python/api2_2x/sceneRender.c<br>===================================================================<br>--- source/blender/python/api2_2x/sceneRender.c (revision 14264)<br>+++ source/blender/python/api2_2x/sceneRender.c (working copy)<br>
@@ -2156,7 +2156,7 @@<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return EXPP_ReturnIntError( PyExc_ValueError, <br>&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;unexpected bits set in argument&quot; );<br>&nbsp;<br>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self-&gt;renderContext-&gt;scemode = (short)value;<br>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self-&gt;renderContext-&gt;scemode = value;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPP_allqueue( REDRAWBUTSSCENE, 0 );<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 0;<br><br><br>3)<br>I noticed that most bitsets in blender structs use a signed type (short/int).<br>

I think this might be a &quot;problem&quot; if they are later resized.<br>
Since it becomes unpredictable to know how old data will be expanded.<br>I recall that in signed data types the MostSignificantBit will be expanded.<br>
<br>
Its not a serious &quot;problem&quot; but maybe fields that are supposed to be bitsets should be declared as unsigned and that make things more consistent.<br><br><br>//P.S.<br>I&#39;m not sure if this is the right place to send this.. maybe it should go on bugtracker (I&#39;m not sure :S)<br>
<br>André<br>