Bug fix 1148

In do_versions() the new texture parameters were always initialized,
whilst we didn't go for a new release number yet.
Now it checks for a value==0.0
This commit is contained in:
Ton Roosendaal
2004-04-12 20:27:48 +00:00
parent 61091cb30b
commit bb2a34c60b

View File

@@ -4123,7 +4123,7 @@ static void do_versions(Main *main)
while(tex) {
/* copied from kernel texture.c */
if(tex->ns_outscale==0.0) {
/* musgrave */
tex->mg_H = 1.0;
tex->mg_lacunarity = 2.0;
@@ -4136,7 +4136,7 @@ static void do_versions(Main *main)
/* voronoi */
tex->vn_w1 = 1.0;
tex->vn_mexp = 2.5;
}
tex= tex->id.next;
}