diff options
author | Ton Roosendaal <ton@blender.org> | 2010-12-26 20:47:17 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-12-26 20:47:17 +0300 |
commit | c4a56fda6d64faa3de7d99b29843c8affb6d5156 (patch) | |
tree | 7f24b0c8a702a0eb7b897b287b9f1762f274711a /source/blender/render/intern/include/render_types.h | |
parent | 31eadb358d0f186c5e9912dd1ac0bbeaf5786cf3 (diff) |
Bugfix #24966
Hair render: using strand "Blender Unit" size didn't correctly
clip for larger/wider strands. Now code clips strands based
on the maximum width.
Also found bad code for using clipping flags, which was mixed up,
and probably caused hair strands to be missing in cases.
Diffstat (limited to 'source/blender/render/intern/include/render_types.h')
-rw-r--r-- | source/blender/render/intern/include/render_types.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/render/intern/include/render_types.h b/source/blender/render/intern/include/render_types.h index e6c2a99446f..84fa7e931b2 100644 --- a/source/blender/render/intern/include/render_types.h +++ b/source/blender/render/intern/include/render_types.h @@ -433,7 +433,9 @@ typedef struct StrandBuffer { int overrideuv; int flag, maxdepth; float adaptcos, minwidth, widthfade; - + + float maxwidth; /* for cliptest of strands in blender unit */ + float winmat[4][4]; int winx, winy; } StrandBuffer; |