diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-02-22 18:48:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-02-22 18:48:26 +0300 |
commit | 9759a373d74ee5fa935d0ca24a52d6dfba2ce485 (patch) | |
tree | 04583f47ff1f7e11db9bf0eea3b72182c846a6e1 /release/scripts/uvcalc_smart_project.py | |
parent | c540c8fa44edc26061eb2d965d79efd98c8f2f7b (diff) |
Updating own scripts to use Blender.Main, remove Base files.
Diffstat (limited to 'release/scripts/uvcalc_smart_project.py')
-rw-r--r-- | release/scripts/uvcalc_smart_project.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/release/scripts/uvcalc_smart_project.py b/release/scripts/uvcalc_smart_project.py index 775594a1bb4..d805cbf3f06 100644 --- a/release/scripts/uvcalc_smart_project.py +++ b/release/scripts/uvcalc_smart_project.py @@ -42,7 +42,7 @@ selected faces, or all faces. # -------------------------------------------------------------------------- -from Blender import Object, Scene, Draw, Window, sys, Mesh, Geometry +from Blender import Object, Draw, Window, sys, Mesh, Geometry from Blender.Mathutils import CrossVecs, Matrix, Vector, RotationMatrix, DotVecs from math import cos @@ -833,12 +833,11 @@ def main(): global USER_STRETCH_ASPECT global USER_ISLAND_MARGIN - objects= Scene.GetCurrent().objects + objects= Main.scenes.active.objects # Use datanames as kesy so as not to unwrap a mesh more then once. obList = dict([(ob.getData(name_only=1), ob) for ob in objects.context if ob.type == 'Mesh']) - # Face select object may not be selected. ob = objects.active if ob and ob.sel == 0 and ob.type == 'Mesh': |