diff options
author | Jiri Hnidek <jiri.hnidek@tul.cz> | 2012-10-12 22:19:39 +0400 |
---|---|---|
committer | Jiri Hnidek <jiri.hnidek@tul.cz> | 2012-10-12 22:19:39 +0400 |
commit | 13d829e57db6b0bb6ab3c3551676a9fa3bcfd55c (patch) | |
tree | deed370e8f4f125900593493e9b5b7d27c04a243 /doc/python_api/examples/bpy.types.Operator.4.py | |
parent | 1958fda91f8974b6096c7b3427f9af13d26d9dbd (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.py | 4 |
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 |