diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-06-26 08:14:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-06-26 08:14:12 +0400 |
commit | 1e9ce63b4052f3d02afa713603bdd8dd04431722 (patch) | |
tree | f1f20df6b96c799faede3088f29ba3344d9e1334 | |
parent | cd87c75a2f183dd59e567a67103f0b293dcfd04d (diff) |
Fixed a bug where loose edges would raise an error when the FGON value was unset.
also added LOOSE to the EdgeFlags dict.
-rw-r--r-- | source/blender/python/api2_2x/Mesh.c | 9 | ||||
-rw-r--r-- | source/blender/python/api2_2x/doc/Mesh.py | 3 |
2 files changed, 9 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Mesh.c b/source/blender/python/api2_2x/Mesh.c index 051659af57f..c9e49dea774 100644 --- a/source/blender/python/api2_2x/Mesh.c +++ b/source/blender/python/api2_2x/Mesh.c @@ -2216,9 +2216,13 @@ static int MEdge_setFlag( BPy_MEdge * self, PyObject * value ) short param; static short bitmask = SELECT | ME_EDGEDRAW - | ME_EDGERENDER | ME_SEAM - | ME_FGON; + | ME_FGON + | ME_HIDE + | ME_EDGERENDER + | ME_LOOSEEDGE + | ME_SEAM_LAST + | ME_EDGE_STEPINDEX; MEdge *edge = MEdge_get_pointer( self ); if( !edge ) @@ -7399,6 +7403,7 @@ static PyObject *M_Mesh_EdgeFlagsDict( void ) PyConstant_Insert(d, "EDGERENDER", PyInt_FromLong( ME_EDGERENDER ) ); PyConstant_Insert(d, "SEAM", PyInt_FromLong( ME_SEAM ) ); PyConstant_Insert(d, "FGON", PyInt_FromLong( ME_FGON ) ); + PyConstant_Insert(d, "LOOSE", PyInt_FromLong( ME_LOOSEEDGE ) ); } return EF; diff --git a/source/blender/python/api2_2x/doc/Mesh.py b/source/blender/python/api2_2x/doc/Mesh.py index 5ae0d2a1e73..05f6efe2857 100644 --- a/source/blender/python/api2_2x/doc/Mesh.py +++ b/source/blender/python/api2_2x/doc/Mesh.py @@ -91,9 +91,10 @@ done once. @var EdgeFlags: The available edge flags. - SELECT - selected (B{deprecated}). Use edge.sel attribute instead. - EDGEDRAW - edge is drawn out of edition mode. -# - EDGERENDER - edge is drawn out of edition mode. + - EDGERENDER - edge is drawn out of edition mode. - SEAM - edge is a seam for UV unwrapping - FGON - edge is part of a F-Gon. + - LOOSE - Edge is not a part of a face (only set on leaving editmode) @type AssignModes: readonly dictionary. @var AssignModes: The available vertex group assignment modes, used by L{mesh.assignVertsToGroup()<Mesh.Mesh.assignVertsToGroup>}. |