diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-02-06 14:16:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-02-06 14:16:49 +0300 |
commit | 35e96bc99130f4bc5477185cdf0c2a7015602f8f (patch) | |
tree | 958a6359421230508ac533f809168abf3714406f /release/scripts/mesh_skin.py | |
parent | a1857585814b109597f630ca19c5c642186f6ffd (diff) |
added messages to scripts, stopping them from modifying multires meshes.
object_cookie_cutter - can now also use curves to cut holes in a mesh.
Diffstat (limited to 'release/scripts/mesh_skin.py')
-rw-r--r-- | release/scripts/mesh_skin.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/release/scripts/mesh_skin.py b/release/scripts/mesh_skin.py index 39738d23ae7..a8a74eeb24d 100644 --- a/release/scripts/mesh_skin.py +++ b/release/scripts/mesh_skin.py @@ -2,7 +2,7 @@ """ Name: 'Bridge Faces/Edge-Loops' -Blender: 237 +Blender: 243 Group: 'Mesh' Tooltip: 'Select 2 vert loops, then run this script.' """ @@ -53,6 +53,7 @@ import Blender from Blender import Window from Blender.Mathutils import MidpointVecs, Vector, CrossVecs from Blender.Mathutils import AngleBetweenVecs as _AngleBetweenVecs_ +import BPyMessages from Blender.Draw import PupMenu @@ -521,9 +522,15 @@ def main(): if is_editmode: Window.EditMode(0) ob = Blender.Scene.GetCurrent().objects.active if ob == None or ob.type != 'Mesh': + BPyMessages.Error_NoMeshActive() return me = ob.getData(mesh=1) + + if me.multires: + BPyMessages.Error_NoMeshMultiresEdit() + return + time1 = Blender.sys.time() selEdges = getSelectedEdges(me, ob) vertLoops = getVertLoops(selEdges, me) # list of lists of edges. |