Updating own scripts to use Blender.Main, remove Base files.

This commit is contained in:
2007-02-22 15:48:26 +00:00
parent c540c8fa44
commit 9759a373d7
17 changed files with 21 additions and 800 deletions

View File

@@ -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':