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-03-26 23:44:44 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-03-26 23:44:44 +0400
commit2b8bed8598004683bb20efad6e9bd15243ad2d24 (patch)
tree740c4ad4f81b7c2ad5a06f89514cf1a044b4a2cc /release/scripts/uvcalc_quad_clickproj.py
parente968f6ec4bdfdacb1148340c137e2a50ce740139 (diff)
py api
* stopped bpy from importing automaticaly as decieded in the meeting. * removed Blender.Main, since we agree it will be called bpy, renamed files also. * updated epydocs from this and last commit. * updated scripts to use bpy.*, and bugfix's for widgetwizard
Diffstat (limited to 'release/scripts/uvcalc_quad_clickproj.py')
-rw-r--r--release/scripts/uvcalc_quad_clickproj.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/uvcalc_quad_clickproj.py b/release/scripts/uvcalc_quad_clickproj.py
index dfaf653ecf3..760d9ab2767 100644
--- a/release/scripts/uvcalc_quad_clickproj.py
+++ b/release/scripts/uvcalc_quad_clickproj.py
@@ -40,6 +40,7 @@ http://mediawiki.blender.org/index.php/Scripts/Manual/UV_Calculate/Click_project
# --------------------------------------------------------------------------
import Blender
+import bpy
import BPyMesh
import BPyWindow
@@ -74,7 +75,7 @@ def mousedown_wait():
def main():
- scn = Blender.Main.scenes.active
+ scn = bpy.scenes.active
ob = scn.objects.active
if not ob or ob.type!='Mesh':
return