[Bf-blender-cvs] [e8c801f] master: Fix T37861: remove unnecessary error print when viewport rendering a curve that gives an empty mesh.

Brecht Van Lommel noreply at git.blender.org
Thu Dec 19 19:21:17 CET 2013


Commit: e8c801f86c9ac549251b9e5d8250f177b1936a3c
Author: Brecht Van Lommel
Date:   Thu Dec 19 19:19:31 2013 +0100
http://developer.blender.org/rBe8c801f86c9ac549251b9e5d8250f177b1936a3c

Fix T37861: remove unnecessary error print when viewport rendering a curve that gives an empty mesh.

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

M	source/blender/makesrna/intern/rna_main_api.c

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

diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c
index dffe392..861eca9 100644
--- a/source/blender/makesrna/intern/rna_main_api.c
+++ b/source/blender/makesrna/intern/rna_main_api.c
@@ -328,10 +328,11 @@ Mesh *rna_Main_meshes_new_from_object(
 
 			BKE_displist_free(&dispbase);
 
-			/* BKE_mesh_from_nurbs changes the type to a mesh, check it worked */
+			/* BKE_mesh_from_nurbs changes the type to a mesh, check it worked.
+			 * if it didn't the curve did not have any segments or otherwise 
+			 * would have generated an empty mesh */
 			if (tmpobj->type != OB_MESH) {
 				BKE_libblock_free_us(&(G.main->object), tmpobj);
-				BKE_report(reports, RPT_ERROR, "Cannot convert curve to mesh (does the curve have any segments?)");
 				return NULL;
 			}




More information about the Bf-blender-cvs mailing list