Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-11-12 19:22:10 +0300
committerTon Roosendaal <ton@blender.org>2005-11-12 19:22:10 +0300
commit9bf198bbcab31c0a5e969e4f8c75a57e367c7154 (patch)
tree332b16495357b2f754ac66248d34f7a73b89d3bc /source/blender/blenloader
parent0c4172ffb5bf6f1c1968b39d6a2acb637ec49dd3 (diff)
Finished hair strand render project (well, for release), also with a good
doc; http://www.blender3d.org/cms/Hair_Strand_Rendering.722.0.html - added width control for strands - made tangent (anisotropic) render an option (so you can render strands more solid, like metal/wood) Also: - ALT+A anim playback with static particles made cursor flashing
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index f84f72da494..2d1030ff67e 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -5012,6 +5012,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
Object *ob;
Scene *sce= main->scene.first;
Camera *cam= main->camera.first;
+ Material *ma= main->mat.first;
/* deformflag is local in modifier now */
for(ob=main->object.first; ob; ob= ob->id.next) {
@@ -5052,6 +5053,12 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
}
sce= sce->id.next;
}
+ for(; ma; ma= ma->id.next) {
+ if(ma->strand_sta==0.0f) {
+ ma->strand_sta= ma->strand_end= 1.0f;
+ ma->mode |= MA_TANGENT_STR;
+ }
+ }
}
/* WATCH IT!!!: pointers from libdata have not been converted yet here! */