diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-04-09 11:03:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-04-09 11:03:26 +0400 |
commit | bd142ac2f44b78f10ad60643dbb71e5d09035b91 (patch) | |
tree | 102ecc233e4bec0537e2af735ece4848264fabd6 /release/scripts/unweld.py | |
parent | 55d0bf6b3337fdb2075d76e0c79153ff281adfce (diff) |
Anti - NMesh commit.
unweld - warn that this tool destroys MultiUV/Col's (because of NMesh)
API_intro and NMesh - note that NMesh is maintained but deprecated.
Diffstat (limited to 'release/scripts/unweld.py')
-rw-r--r-- | release/scripts/unweld.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/unweld.py b/release/scripts/unweld.py index 4fd13f647d6..89cf495181c 100644 --- a/release/scripts/unweld.py +++ b/release/scripts/unweld.py @@ -215,9 +215,11 @@ def collecte_edge(listf2v,me,thegood): OBJECT=Blender.Scene.GetCurrent().getActiveObject() -if OBJECT and OBJECT.getType()=='Mesh': +if OBJECT and OBJECT.type=='Mesh': if OBJECT.getData(mesh=1).multires: BPyMessages.Error_NoMeshMultiresEdit() + elif not BPyMessages.Warning_MeshDistroyLayers(OBJECT.getData(mesh=1)): + pass else: EDITMODE=Blender.Window.EditMode() Blender.Window.EditMode(0) |