From af51827dda90e5402d9e4a476a8ada3f422dda13 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 5 Dec 2012 01:02:41 +0000 Subject: add a message when solidify is used with only-edges, this isn't properly supported. also minor edits to py-api-ref -- This line, and those below, will be ignored-- M doc/python_api/sphinx_doc_gen.py M doc/python_api/rst/include__bmesh.rst M source/blender/modifiers/intern/MOD_solidify.c --- doc/python_api/rst/include__bmesh.rst | 1 - doc/python_api/sphinx_doc_gen.py | 4 ++-- source/blender/modifiers/intern/MOD_solidify.c | 4 ++++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/python_api/rst/include__bmesh.rst b/doc/python_api/rst/include__bmesh.rst index d804b889e20..ef4a1c272b4 100644 --- a/doc/python_api/rst/include__bmesh.rst +++ b/doc/python_api/rst/include__bmesh.rst @@ -42,7 +42,6 @@ For an overview of BMesh data types and how they reference each other see: TODO items are... * add access to BMesh **walkers** - * add api for calling BMesh operators (unrelated to bpy.ops) * add custom-data manipulation functions add/remove/rename. Example Script diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index 1814261fc71..1a1a4bf909b 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -1538,8 +1538,8 @@ def write_rst_contents(basepath): "mathutils", "mathutils.geometry", "mathutils.noise", # misc "bgl", "blf", "gpu", "aud", "bpy_extras", - # bmesh - "bmesh", "bmesh.types", "bmesh.utils", "bmesh.ops", + # bmesh, submodules are in own page + "bmesh", ) for mod in standalone_modules: diff --git a/source/blender/modifiers/intern/MOD_solidify.c b/source/blender/modifiers/intern/MOD_solidify.c index fbd3c084e70..75e54d77b15 100644 --- a/source/blender/modifiers/intern/MOD_solidify.c +++ b/source/blender/modifiers/intern/MOD_solidify.c @@ -750,6 +750,10 @@ static DerivedMesh *applyModifier( CDDM_calc_normals(result); } + if (numFaces == 0 && numEdges != 0) { + modifier_setError(md, "Faces needed for useful output"); + } + return result; } -- cgit v1.2.3