Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-04-18 18:40:01 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-04-18 18:40:01 +0400
commit3e1a5ce7a2596ebc135455f9934d128223cc089a (patch)
treee9d12a0e39c1de8e33e2b32965a91d8bd90a18c1 /release/scripts/uvcalc_smart_project.py
parenta59f7c08cef1fd4f0ce60463fe93eb53a8dadffa (diff)
PyAPI.
moved bpy into bpy.data and bpy will be eventually replace the root level 'Blender' module. currently we have bpy.library bpy.config and bpy.data
Diffstat (limited to 'release/scripts/uvcalc_smart_project.py')
-rw-r--r--release/scripts/uvcalc_smart_project.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/uvcalc_smart_project.py b/release/scripts/uvcalc_smart_project.py
index ae6ffacf593..9f40b63b67e 100644
--- a/release/scripts/uvcalc_smart_project.py
+++ b/release/scripts/uvcalc_smart_project.py
@@ -827,7 +827,7 @@ def main():
global USER_STRETCH_ASPECT
global USER_ISLAND_MARGIN
- objects= bpy.scenes.active.objects
+ objects= bpy.data.scenes.active.objects
# we can will tag them later.
obList = [ob for ob in objects.context if ob.type == 'Mesh']
@@ -922,7 +922,7 @@ def main():
time1 = sys.time()
# Tag as False se we dont operate on teh same mesh twice.
- bpy.meshes.tag = False
+ bpy.data.meshes.tag = False
for ob in obList:
me = ob.getData(mesh=1)