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/export-iv-0.1.py | |
parent | dd5077060efa99412112ad27c0db4e4c6668c3e0 (diff) |
modified scripts from using older/depricated Python API commands, deprecated scn.getChildren() in the docs.
Diffstat (limited to 'release/scripts/export-iv-0.1.py')
-rw-r--r-- | release/scripts/export-iv-0.1.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/export-iv-0.1.py b/release/scripts/export-iv-0.1.py index f7abd3d2229..86842a96dd3 100644 --- a/release/scripts/export-iv-0.1.py +++ b/release/scripts/export-iv-0.1.py @@ -270,8 +270,8 @@ def ExportToIv(file_name): meshes = [] lamps = [] cameras = [] - for object in scene.getChildren(): - obtype= object.getType() + for object in scene.objects: + obtype= object.type if obtype == "Mesh": meshes.append(object); #elif obtype == "Lamp": |