[Bf-blender-cvs] [1c8abf8] master: Fix T37940: Curve Render bug in Blender Internal Render.

Sergey Sharybin noreply at git.blender.org
Wed Jan 22 17:57:12 CET 2014


Commit: 1c8abf8d2a809b00210a2c555ec2d4b4a8c0c419
Author: Sergey Sharybin
Date:   Wed Jan 22 22:53:50 2014 +0600
https://developer.blender.org/rB1c8abf8d2a809b00210a2c555ec2d4b4a8c0c419

Fix T37940: Curve Render bug in Blender Internal Render.

Issue was caused by curve object really scale up. It was
caused by 677f519 to make scaled down curves work fine.

After some tweaks to epsilon value scaled up curves seems
to work as well.

===================================================================

M	source/blender/render/intern/source/convertblender.c

===================================================================

diff --git a/source/blender/render/intern/source/convertblender.c b/source/blender/render/intern/source/convertblender.c
index 4ca1fd4..a522231 100644
--- a/source/blender/render/intern/source/convertblender.c
+++ b/source/blender/render/intern/source/convertblender.c
@@ -2765,7 +2765,7 @@ static void init_render_curve(Render *re, ObjectRen *obr, int timeoffset)
 						vlr->v4= NULL;
 
 						/* to prevent float accuracy issues, we calculate normal in local object space (not world) */
-						if (area_tri_v3(co3, co2, co1)>FLT_EPSILON10) {
+						if (area_tri_v3(co3, co2, co1)>FLT_EPSILON) {
 							normal_tri_v3(tmp, co3, co2, co1);
 							add_v3_v3(n, tmp);
 						}




More information about the Bf-blender-cvs mailing list