[Bf-blender-cvs] [c4e277d] master: Freestyle: Fix for a wrong interpolation of stroke segment visibility.

Tamito Kajiyama noreply at git.blender.org
Fri May 9 13:48:35 CEST 2014


Commit: c4e277d53b29c33bc2da96113e1ff27f38f0d1a2
Author: Tamito Kajiyama
Date:   Fri May 9 20:43:40 2014 +0900
https://developer.blender.org/rBc4e277d53b29c33bc2da96113e1ff27f38f0d1a2

Freestyle: Fix for a wrong interpolation of stroke segment visibility.

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

M	source/blender/freestyle/intern/stroke/Stroke.cpp

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

diff --git a/source/blender/freestyle/intern/stroke/Stroke.cpp b/source/blender/freestyle/intern/stroke/Stroke.cpp
index 9ed2cab..6629de0 100644
--- a/source/blender/freestyle/intern/stroke/Stroke.cpp
+++ b/source/blender/freestyle/intern/stroke/Stroke.cpp
@@ -106,7 +106,7 @@ StrokeAttribute::StrokeAttribute(const StrokeAttribute& a1, const StrokeAttribut
 	for (int i = 0; i < 3; ++i)
 		_color[i] = (1 - t) * a1._color[i] + t * a2._color[i];
 
-	_visible = true;
+	_visible = a1.isVisible();
 
 	// FIXME: to be checked (and enhanced)
 	if ((a1._userAttributesReal) && (a2._userAttributesReal)) {




More information about the Bf-blender-cvs mailing list