Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2013-12-19 22:19:31 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2013-12-19 22:19:31 +0400
commite8c801f86c9ac549251b9e5d8250f177b1936a3c (patch)
tree3c63c4b6d81051c9b2d8ccee43af96e2d2a546f2
parente7ac87a254fcd4f893a31cd2622ebdaad8e2a8b0 (diff)
Fix T37861: remove unnecessary error print when viewport rendering a curve that gives an empty mesh.
-rw-r--r--source/blender/makesrna/intern/rna_main_api.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_main_api.c b/source/blender/makesrna/intern/rna_main_api.c
index dffe392e6f1..861eca9bd9b 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;
}