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-06-10 21:28:21 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-06-10 21:28:21 +0400
commitd1959e51b257668bee45b8e668cd3da4ad5d4dd3 (patch)
tree600341c87ad58e40a1d0c53894f9bb7c1d76bfc6 /release
parentd39d2e72797973fe079ab6e8a7810dbcb2c506b8 (diff)
was missing editmode exit in script template
Diffstat (limited to 'release')
-rw-r--r--release/scripts/scripttemplate_mesh_edit.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/release/scripts/scripttemplate_mesh_edit.py b/release/scripts/scripttemplate_mesh_edit.py
index e94b139a92d..159fb884925 100644
--- a/release/scripts/scripttemplate_mesh_edit.py
+++ b/release/scripts/scripttemplate_mesh_edit.py
@@ -70,6 +70,7 @@ def main():
# editmode if its enabled, we cant make
# changes to the mesh data while in editmode.
is_editmode = Window.EditMode()
+ if is_editmode: Window.EditMode(0)
Window.WaitCursor(1)
me = ob_act.getData(mesh=1) # old NMesh api is default