From c4a56fda6d64faa3de7d99b29843c8affb6d5156 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sun, 26 Dec 2010 17:47:17 +0000 Subject: 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. --- source/blender/render/intern/include/strand.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/render/intern/include/strand.h') diff --git a/source/blender/render/intern/include/strand.h b/source/blender/render/intern/include/strand.h index 66a5a7d1a0f..ffb2b8aa809 100644 --- a/source/blender/render/intern/include/strand.h +++ b/source/blender/render/intern/include/strand.h @@ -90,7 +90,7 @@ typedef struct StrandShadeCache StrandShadeCache; void strand_eval_point(StrandSegment *sseg, StrandPoint *spoint); void render_strand_segment(struct Render *re, float winmat[][4], struct StrandPart *spart, struct ZSpan *zspan, int totzspan, StrandSegment *sseg); -void strand_minmax(struct StrandRen *strand, float *min, float *max); +void strand_minmax(struct StrandRen *strand, float *min, float *max, float width); struct StrandSurface *cache_strand_surface(struct Render *re, struct ObjectRen *obr, struct DerivedMesh *dm, float mat[][4], int timeoffset); void free_strand_surface(struct Render *re); -- cgit v1.2.3