diff options
Diffstat (limited to 'release/scripts/templates_py/operator_modal_view3d_raycast.py')
-rw-r--r-- | release/scripts/templates_py/operator_modal_view3d_raycast.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/templates_py/operator_modal_view3d_raycast.py b/release/scripts/templates_py/operator_modal_view3d_raycast.py index 022acc25e14..b2d8471d6b4 100644 --- a/release/scripts/templates_py/operator_modal_view3d_raycast.py +++ b/release/scripts/templates_py/operator_modal_view3d_raycast.py @@ -95,10 +95,12 @@ class ViewOperatorRayCast(bpy.types.Operator): self.report({'WARNING'}, "Active space must be a View3d") return {'CANCELLED'} + def menu_func(self, context): self.layout.operator(ViewOperatorRayCast.bl_idname, text="Raycast View Modal Operator") -# Register and add to the "view" menu (required to also use F3 search "Raycast View Modal Operator" for quick access) + +# Register and add to the "view" menu (required to also use F3 search "Raycast View Modal Operator" for quick access). def register(): bpy.utils.register_class(ViewOperatorRayCast) bpy.types.VIEW3D_MT_view.append(menu_func) |