diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-12-25 12:17:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-12-25 12:17:23 +0300 |
commit | 859b7f207ebf3bc6b1a51c49ff46b536973bacd2 (patch) | |
tree | 3d878cc835b1285ad26a3017d14676ca8802af2d /release/scripts/uv_export.py | |
parent | dd5077060efa99412112ad27c0db4e4c6668c3e0 (diff) |
modified scripts from using older/depricated Python API commands, deprecated scn.getChildren() in the docs.
Diffstat (limited to 'release/scripts/uv_export.py')
-rw-r--r-- | release/scripts/uv_export.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/uv_export.py b/release/scripts/uv_export.py index c5cfde3f916..f8da530d598 100644 --- a/release/scripts/uv_export.py +++ b/release/scripts/uv_export.py @@ -170,7 +170,7 @@ def PrintConfig(): def ExportCallback(f): - obj = Blender.Scene.getCurrent().getActiveObject() + obj = Blender.Scene.GetCurrent().objects.active time1= Blender.sys.time() @@ -178,7 +178,7 @@ def ExportCallback(f): Blender.Draw.PupMenu("ERROR%t|No Active Object!") return - if obj.getType() != "Mesh": + if obj.type != "Mesh": Blender.Draw.PupMenu("ERROR%t|Not a Mesh!") return |