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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-08-29 16:04:48 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-08-29 16:10:37 +0300
commit4925188eae9fb077c324e308411edc5b71a5f459 (patch)
tree0ddaef377f6ba8aa3c1704f3306b66b56ae80212 /add_curve_extra_objects/add_curve_simple.py
parentcdf62c7a754276737a2a7cbc0b31aec51ca1cd41 (diff)
Python / Cleanup: rename INFO_MT to TOPBAR_MT to reflect actual location.
Diffstat (limited to 'add_curve_extra_objects/add_curve_simple.py')
-rw-r--r--add_curve_extra_objects/add_curve_simple.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/add_curve_extra_objects/add_curve_simple.py b/add_curve_extra_objects/add_curve_simple.py
index c6908ce9..697e9d97 100644
--- a/add_curve_extra_objects/add_curve_simple.py
+++ b/add_curve_extra_objects/add_curve_simple.py
@@ -1645,8 +1645,8 @@ class SimpleVariables(PropertyGroup):
)
-class INFO_MT_simple_menu(Menu):
- bl_idname = "INFO_MT_simple_menu"
+class VIEW3D_MT_simple_menu(Menu):
+ bl_idname = "VIEW3D_MT_simple_menu"
bl_label = "2D Objects"
def draw(self, context):
@@ -1714,7 +1714,7 @@ class INFO_MT_simple_menu(Menu):
def Simple_button(self, context):
layout = self.layout
layout.separator()
- self.layout.menu("INFO_MT_simple_menu", icon="MOD_CURVE")
+ self.layout.menu("VIEW3D_MT_simple_menu", icon="MOD_CURVE")
def register():
@@ -1723,10 +1723,10 @@ def register():
bpy.utils.register_class(BezierDivide)
bpy.utils.register_class(SimplePanel)
bpy.utils.register_class(SimpleEdit)
- bpy.utils.register_class(INFO_MT_simple_menu)
+ bpy.utils.register_class(VIEW3D_MT_simple_menu)
bpy.utils.register_class(SimpleVariables)
- bpy.types.INFO_MT_curve_add.append(Simple_button)
+ bpy.types.VIEW3D_MT_curve_add.append(Simple_button)
bpy.types.Object.s_curve = PointerProperty(type=SimpleVariables)
@@ -1737,10 +1737,10 @@ def unregister():
bpy.utils.unregister_class(BezierDivide)
bpy.utils.unregister_class(SimplePanel)
bpy.utils.unregister_class(SimpleEdit)
- bpy.utils.unregister_class(INFO_MT_simple_menu)
+ bpy.utils.unregister_class(VIEW3D_MT_simple_menu)
bpy.utils.unregister_class(SimpleVariables)
- bpy.types.INFO_MT_curve_add.remove(Simple_button)
+ bpy.types.VIEW3D_MT_curve_add.remove(Simple_button)
del bpy.types.Object.s_curve