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/object_apply_def.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/object_apply_def.py')
-rw-r--r--release/scripts/object_apply_def.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/object_apply_def.py b/release/scripts/object_apply_def.py
index 77dff67acb9..e7cdf4089b1 100644
--- a/release/scripts/object_apply_def.py
+++ b/release/scripts/object_apply_def.py
@@ -63,6 +63,7 @@ This script will work with object types: Mesh, Metaballs, Text3d, Curves and Nur
import Blender
+import bpy
import BPyMesh
def copy_vgroups(source_ob, target_ob):
@@ -85,7 +86,7 @@ def copy_vgroups(source_ob, target_ob):
def apply_deform():
- scn= Blender.Main.scenes.active
+ scn= bpy.scenes.active
#Blender.Window.EditMode(0)
NAME_LENGTH = 19