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:
authorJiri Hnidek <jiri.hnidek@tul.cz>2012-10-12 22:19:39 +0400
committerJiri Hnidek <jiri.hnidek@tul.cz>2012-10-12 22:19:39 +0400
commit13d829e57db6b0bb6ab3c3551676a9fa3bcfd55c (patch)
treedeed370e8f4f125900593493e9b5b7d27c04a243 /doc/python_api/examples/bpy.types.Operator.4.py
parent1958fda91f8974b6096c7b3427f9af13d26d9dbd (diff)
* Fix small bug in Python operator example; improved example of modal operator
Diffstat (limited to 'doc/python_api/examples/bpy.types.Operator.4.py')
-rw-r--r--doc/python_api/examples/bpy.types.Operator.4.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/python_api/examples/bpy.types.Operator.4.py b/doc/python_api/examples/bpy.types.Operator.4.py
index 861496c6d18..885ed857842 100644
--- a/doc/python_api/examples/bpy.types.Operator.4.py
+++ b/doc/python_api/examples/bpy.types.Operator.4.py
@@ -26,8 +26,8 @@ class CustomDrawOperator(bpy.types.Operator):
return {'FINISHED'}
def invoke(self, context, event):
- context.window_manager.fileselect_add(self)
- return {'RUNNING_MODAL'}
+ wm = context.window_manager
+ return wm.invoke_props_dialog(self)
def draw(self, context):
layout = self.layout