Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Bonavita <mindrones@gmail.com>2010-07-13 18:08:29 +0400
committerLuca Bonavita <mindrones@gmail.com>2010-07-13 18:08:29 +0400
commitb5cd123b04e6c46642b3e5617c8d354eb3eac744 (patch)
treed6c65fd5405eef61b0f6eb4f70702fabda76bfb7 /space_view3d_spacebar_menu.py
parent2d092f168009d6d233ba43b91f1886f5bc53f5f1 (diff)
== trunk scripts confirming ==
- every script is now (2,5,3) - added warning field in bl_addon_info so every dev knows about this: when "warning" field is not empty, a warning icon appears and text alerts users about a buggy script (this is used during development, released scripts should must have this empty of course) - formatted scripts info like this - GPL - docstring - bl_addon_info - imports so that the actual script starts after the bl_addon_info dict - removed old 2.4x cruft like __url__, __bpydoc__, __author__ etc, not needed anymore (when the case integrated info with bl_addon_info and in case of one email meta just put it in the GPL) - next commits I plan to do contrib scripts and conform io scripts naming
Diffstat (limited to 'space_view3d_spacebar_menu.py')
-rw-r--r--space_view3d_spacebar_menu.py39
1 files changed, 16 insertions, 23 deletions
diff --git a/space_view3d_spacebar_menu.py b/space_view3d_spacebar_menu.py
index ab9395ba..fdfc85ed 100644
--- a/space_view3d_spacebar_menu.py
+++ b/space_view3d_spacebar_menu.py
@@ -22,29 +22,7 @@
#
# ##### END GPL LICENSE BLOCK #####
-bl_addon_info = {
- 'name': '3D View: Dynamic Spacebar Menu',
- 'author': 'JayDez, sim88, meta-androcto',
- 'version': '1.5',
- 'blender': (2, 5, 3),
- 'location': 'View3D > Spacebar',
- 'description': 'Context sensitive spacebar menu',
- 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \
- 'Scripts/3D_interaction/Dynamic_Spacebar_Menu',
- 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\
- 'func=detail&aid=22060&group_id=153&atid=469',
- 'category': '3D View'}
-"Add Dynamic Spacebar Menu"
-
"""
-Name: 'Dynamic Spacebar Menu'
-Blender: 253
-"""
-
-__author__ = ["JayDez, sim88, meta-androcto, sam"]
-__version__ = '1.5'
-__url__ = [""]
-__bpydoc__ = """
Dynamic Menu
This adds a the Dynamic Spacebar Menu in the View3D.
@@ -68,12 +46,27 @@ v0.1 through 0.9 - various tests/contributions by various people and scripts
Devs: JayDez, Crouch, sim88, meta-androcto, Sam
Scripts: 3D Cursor Menu, Original Dynamic Menu
"""
+
+
+bl_addon_info = {
+ 'name': '3D View: Dynamic Spacebar Menu',
+ 'author': 'JayDez, sim88, meta-androcto', 'sam'
+ 'version': '1.5',
+ 'blender': (2, 5, 3),
+ 'location': 'View3D > Spacebar',
+ 'description': 'Context sensitive spacebar menu',
+ 'warning': '', # used for warning icon and text in addons panel
+ 'wiki_url': 'http://wiki.blender.org/index.php/Extensions:2.5/Py/' \
+ 'Scripts/3D_interaction/Dynamic_Spacebar_Menu',
+ 'tracker_url': 'https://projects.blender.org/tracker/index.php?'\
+ 'func=detail&aid=22060&group_id=153&atid=469',
+ 'category': '3D View'}
+
import bpy
from bpy import *
from mathutils import Vector, Matrix
import math
-
# Dynamic Menu
class VIEW3D_MT_Space_Dynamic_Menu(bpy.types.Menu):
bl_label = "Dynamic Spacebar Menu"