[Bf-committers] [bf-blender-Patches][6842] A new procedural texture implementation to generate tiling patterns

Joe Eagar joeedh at gmail.com
Fri Nov 9 16:48:08 CET 2007


Well, if(main->versionfile <= 245 || main->subversionfile < 4)sounds really stupid to me to begin with.  "If version is less then or equal 2.45 or subversion is less then 4).  What if version is, say, 2.6?  well "if version is less then of equal 2.45) would be false but "if subversion is less then 4" could still be true.

Joe


Ahmad Kabani wrote:
> Hi guys, 
>
> I have a quick question. In readfile.c, do_versions(), the main->subversionfile doesn't seem to reflect the correct subversion level stored in the file OR the subversion level seems to be stored incorrectly. This patch has existed since before 2.45 was released. Some people noted that appending a material containing the new Tiles texture would not work. I found that none of the texture parameters were being reloaded... actually all of them were reset to defaults because I was doing a check like so: 
>
>     if(main->versionfile != 245 || main->subversionfile < 4)
>         OR 
>     if(main->versionfile <= 245 || main->subversionfile < 4)
>
> The debugging statement at the top of the function reports subversion set to 0 instead of 7 (as defined in BKE_blender.h. I can temporarily fix my patch by changing the call to:
>
>     if(main->versionfile < 245)
>
> but this fixes only for files saved with the latest patch. Is there a better way I can resolve this?
>
>
> Ahmad
>
> P.S. I'm now at a point where I've run out of ideas for this. If people have comments and suggestions on how I can improve on the UI and functionality (new presets, better parameters) please feel free to let me know.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>
>   



More information about the Bf-committers mailing list