[Bf-blender-cvs] [d94202b] master: Fix T37170: Missing curve outline when using constructive modifiers

Sergey Sharybin noreply at git.blender.org
Thu Jan 2 18:01:02 CET 2014


Commit: d94202b312d1b3a977d14dac0dbc30e31e1cb444
Author: Sergey Sharybin
Date:   Thu Jan 2 22:59:21 2014 +0600
https://developer.blender.org/rBd94202b312d1b3a977d14dac0dbc30e31e1cb444

Fix T37170: Missing curve outline when using constructive modifiers

Issue was caused by wrong bool flag assignment.

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

M	source/blender/editors/space_view3d/drawobject.c

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

diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 9eb3fb3..c26a8b0 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -6366,7 +6366,7 @@ static void drawObjectSelect(Scene *scene, View3D *v3d, ARegion *ar, Base *base,
 		bool has_faces = false;
 
 		if (dm) {
-			has_faces = dm->getNumTessFaces(dm);
+			has_faces = dm->getNumTessFaces(dm) > 0;
 		}
 		else {
 			has_faces = BKE_displist_has_faces(&ob->curve_cache->disp);




More information about the Bf-blender-cvs mailing list