Revision: 29129 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29129 Author: farsthary Date: 2010-06-01 18:47:19 +0200 (Tue, 01 Jun 2010)
Log Message: ----------- added safer default value for brush detail Modified Paths: -------------- branches/branch-farsthary/source/blender/blenloader/intern/readfile.c Modified: branches/branch-farsthary/source/blender/blenloader/intern/readfile.c =================================================================== --- branches/branch-farsthary/source/blender/blenloader/intern/readfile.c 2010-06-01 15:35:38 UTC (rev 29128) +++ branches/branch-farsthary/source/blender/blenloader/intern/readfile.c 2010-06-01 16:47:19 UTC (rev 29129) @@ -10771,7 +10771,10 @@ { } - + Brush *brush; + for (brush= main->brush.first; brush; brush= brush->id.next) + if(brush->detail == 0.0f) + brush->detail = 0.25f; /* WATCH IT!!!: pointers from libdata have not been converted yet here! */ /* WATCH IT 2!: Userdef struct init has to be in editors/interface/resources.c! */ _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs