diff options
Diffstat (limited to 'doc/python_api/examples/bpy.types.Operator.2.py')
-rw-r--r-- | doc/python_api/examples/bpy.types.Operator.2.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/python_api/examples/bpy.types.Operator.2.py b/doc/python_api/examples/bpy.types.Operator.2.py index 54bd481b339..39ff5caae8a 100644 --- a/doc/python_api/examples/bpy.types.Operator.2.py +++ b/doc/python_api/examples/bpy.types.Operator.2.py @@ -39,6 +39,7 @@ class ExportSomeData(bpy.types.Operator): # Only needed if you want to add into a dynamic menu def menu_func(self, context): + self.layout.operator_context = 'INVOKE_DEFAULT' self.layout.operator(ExportSomeData.bl_idname, text="Text Export Operator") # Register and add to the file selector |