[Bf-docboard-svn] bf-manual: [8100] trunk/blender_docs/manual/advanced/scripting/addon_tutorial.rst: Add-on Tutorial documentation should probably require reader to enable Developer Extras
Aaron Carlisle
noreply at blender.org
Fri May 28 22:39:55 CEST 2021
Revision: 8100
https://developer.blender.org/rBM8100
Author: Blendify
Date: 2021-05-28 22:39:55 +0200 (Fri, 28 May 2021)
Log Message:
-----------
Add-on Tutorial documentation should probably require reader to enable Developer Extras
Fixes T85625
Modified Paths:
--------------
trunk/blender_docs/manual/advanced/scripting/addon_tutorial.rst
Modified: trunk/blender_docs/manual/advanced/scripting/addon_tutorial.rst
===================================================================
--- trunk/blender_docs/manual/advanced/scripting/addon_tutorial.rst 2021-05-28 20:12:13 UTC (rev 8099)
+++ trunk/blender_docs/manual/advanced/scripting/addon_tutorial.rst 2021-05-28 20:39:55 UTC (rev 8100)
@@ -36,7 +36,12 @@
See `Use The Terminal
<https://docs.blender.org/api/current/info_tips_and_tricks.html#use-the-terminal>`__.
+.. tip::
+ You can enable :ref:`Developer Extras <prefs-interface-dev-extras>`
+ in the preferences to enable features that make developing add-ons easier.
+
+
Documentation Links
===================
@@ -157,10 +162,13 @@
return {'FINISHED'} # Lets Blender know the operator finished successfully.
+ def menu_func(self, context):
+ self.layout.operator(ObjectMoveX.bl_idname)
+
def register():
bpy.utils.register_class(ObjectMoveX)
+ bpy.types.VIEW3D_MT_object.append(menu_func) # Adds the new operator to an existing menu.
-
def unregister():
bpy.utils.unregister_class(ObjectMoveX)
More information about the Bf-docboard-svn
mailing list