[Bf-extensions-cvs] [4925188e] blender2.8: Python / Cleanup: rename INFO_MT to TOPBAR_MT to reflect actual location.

Brecht Van Lommel noreply at git.blender.org
Wed Aug 29 16:27:49 CEST 2018


Commit: 4925188eae9fb077c324e308411edc5b71a5f459
Author: Brecht Van Lommel
Date:   Wed Aug 29 15:04:48 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBA4925188eae9fb077c324e308411edc5b71a5f459

Python / Cleanup: rename INFO_MT to TOPBAR_MT to reflect actual location.

===================================================================

M	add_advanced_objects_menu/__init__.py
M	add_curve_extra_objects/__init__.py
M	add_curve_extra_objects/add_curve_curly.py
M	add_curve_extra_objects/add_curve_simple.py
M	add_curve_sapling/__init__.py
M	add_mesh_BoltFactory/__init__.py
M	add_mesh_extra_objects/__init__.py
M	ant_landscape/__init__.py
M	archimesh/__init__.py
M	archipack/__init__.py
M	camera_dolly_crane_rigs.py
M	curve_simplify.py
M	io_anim_acclaim/__init__.py
M	io_anim_bvh/__init__.py
M	io_anim_c3d/__init__.py
M	io_anim_camera.py
M	io_anim_nuke_chan/__init__.py
M	io_blend_utils/__init__.py
M	io_convert_image_to_mesh_img/__init__.py
M	io_curve_svg/__init__.py
M	io_export_after_effects.py
M	io_export_dxf/__init__.py
M	io_export_paper_model.py
M	io_export_pc2.py
M	io_export_unreal_psk_psa.py
M	io_import_dxf/__init__.py
M	io_import_gimp_image_to_scene.py
M	io_import_images_as_planes.py
M	io_import_scene_lwo.py
M	io_import_scene_unreal_psa_psk.py
M	io_mesh_pdb/__init__.py
M	io_mesh_ply/__init__.py
M	io_mesh_raw/__init__.py
M	io_mesh_stl/__init__.py
M	io_scene_3ds/__init__.py
M	io_scene_fbx/__init__.py
M	io_scene_ms3d/__init__.py
M	io_scene_obj/__init__.py
M	io_scene_vrml2/__init__.py
M	io_scene_x/__init__.py
M	io_scene_x3d/__init__.py
M	io_shape_mdd/__init__.py
M	object_fracture/__init__.py
M	object_grease_scatter.py
M	render_povray/__init__.py
M	rigify/legacy/metarig_menu.py
M	rigify/legacy/ui.py
M	rigify/metarig_menu.py
M	space_view3d_pie_menus/pie_editor_switch_menu.py
M	space_view3d_pie_menus/pie_save_open_menu.py
M	space_view3d_spacebar_menu.py
M	system_demo_mode/__init__.py

===================================================================

diff --git a/add_advanced_objects_menu/__init__.py b/add_advanced_objects_menu/__init__.py
index e0388bf7..32bbbd7f 100644
--- a/add_advanced_objects_menu/__init__.py
+++ b/add_advanced_objects_menu/__init__.py
@@ -92,8 +92,8 @@ from bpy.props import (
 
 
 # Define the "Scenes" menu
-class INFO_MT_scene_elements_add(Menu):
-    bl_idname = "INFO_MT_scene_elements"
+class VIEW3D_MT_scene_elements_add(Menu):
+    bl_idname = "VIEW3D_MT_scene_elements"
     bl_label = "Test Scenes"
 
     def draw(self, context):
@@ -108,8 +108,8 @@ class INFO_MT_scene_elements_add(Menu):
 
 
 # Define the "Lights" menu
-class INFO_MT_mesh_lights_add(Menu):
-    bl_idname = "INFO_MT_scene_lights"
+class VIEW3D_MT_mesh_lights_add(Menu):
+    bl_idname = "VIEW3D_MT_scene_lights"
     bl_label = "Lighting Sets"
 
     def draw(self, context):
@@ -122,8 +122,8 @@ class INFO_MT_mesh_lights_add(Menu):
 
 
 # Define the "Chains" menu
-class INFO_MT_mesh_chain_add(Menu):
-    bl_idname = "INFO_MT_mesh_chain"
+class VIEW3D_MT_mesh_chain_add(Menu):
+    bl_idname = "VIEW3D_MT_mesh_chain"
     bl_label = "Chains"
 
     def draw(self, context):
@@ -134,15 +134,15 @@ class INFO_MT_mesh_chain_add(Menu):
 
 
 # Define the "Array" Menu
-class INFO_MT_array_mods_add(Menu):
-    bl_idname = "INFO_MT_array_mods"
+class VIEW3D_MT_array_mods_add(Menu):
+    bl_idname = "VIEW3D_MT_array_mods"
     bl_label = "Array Mods"
 
     def draw(self, context):
         layout = self.layout
         layout.operator_context = 'INVOKE_REGION_WIN'
 
-        layout.menu("INFO_MT_mesh_chain", icon="LINKED")
+        layout.menu("VIEW3D_MT_mesh_chain", icon="LINKED")
 
         layout.operator("objects.circle_array_operator",
                         text="Circle Array", icon="MOD_ARRAY")
@@ -153,8 +153,8 @@ class INFO_MT_array_mods_add(Menu):
 
 
 # Define the "Blocks" Menu
-class INFO_MT_quick_blocks_add(Menu):
-    bl_idname = "INFO_MT_quick_tools"
+class VIEW3D_MT_quick_blocks_add(Menu):
+    bl_idname = "VIEW3D_MT_quick_tools"
     bl_label = "Block Tools"
 
     def draw(self, context):
@@ -171,8 +171,8 @@ class INFO_MT_quick_blocks_add(Menu):
 
 
 # Define the "Phsysics Tools" Menu
-class INFO_MT_Physics_tools_add(Menu):
-    bl_idname = "INFO_MT_physics_tools"
+class VIEW3D_MT_Physics_tools_add(Menu):
+    bl_idname = "VIEW3D_MT_physics_tools"
     bl_label = "Physics Tools"
 
     def draw(self, context):
@@ -190,12 +190,12 @@ def menu(self, context):
     layout = self.layout
     layout.operator_context = 'INVOKE_REGION_WIN'
     self.layout.separator()
-    self.layout.menu("INFO_MT_scene_elements", icon="SCENE_DATA")
-    self.layout.menu("INFO_MT_scene_lights", icon="LIGHT_SPOT")
+    self.layout.menu("VIEW3D_MT_scene_elements", icon="SCENE_DATA")
+    self.layout.menu("VIEW3D_MT_scene_lights", icon="LIGHT_SPOT")
     self.layout.separator()
-    self.layout.menu("INFO_MT_array_mods", icon="MOD_ARRAY")
-    self.layout.menu("INFO_MT_quick_tools", icon="MOD_BUILD")
-    self.layout.menu("INFO_MT_physics_tools", icon="PHYSICS")
+    self.layout.menu("VIEW3D_MT_array_mods", icon="MOD_ARRAY")
+    self.layout.menu("VIEW3D_MT_quick_tools", icon="MOD_BUILD")
+    self.layout.menu("VIEW3D_MT_physics_tools", icon="PHYSICS")
 
 
 # Addons Preferences
@@ -524,7 +524,7 @@ def register():
     )
 
     # Add "Extras" menu to the "Add" menu
-    bpy.types.INFO_MT_add.append(menu)
+    bpy.types.VIEW3D_MT_add.append(menu)
     try:
         bpy.types.VIEW3D_MT_AddMenu.append(menu)
     except:
@@ -533,7 +533,7 @@ def register():
 
 def unregister():
     # Remove "Extras" menu from the "Add" menu.
-    bpy.types.INFO_MT_add.remove(menu)
+    bpy.types.VIEW3D_MT_add.remove(menu)
     try:
         bpy.types.VIEW3D_MT_AddMenu.remove(menu)
     except:
diff --git a/add_curve_extra_objects/__init__.py b/add_curve_extra_objects/__init__.py
index 42ae2d44..5c093af4 100644
--- a/add_curve_extra_objects/__init__.py
+++ b/add_curve_extra_objects/__init__.py
@@ -225,9 +225,9 @@ class CurveExtraObjectsAddonPreferences(AddonPreferences):
                      icon="LAYER_USED")
 
 
-class INFO_MT_curve_knots_add(Menu):
+class VIEW3D_MT_curve_knots_add(Menu):
     # Define the "Extras" menu
-    bl_idname = "INFO_MT_curve_knots_add"
+    bl_idname = "VIEW3D_MT_curve_knots_add"
     bl_label = "Plants"
 
     def draw(self, context):
@@ -253,7 +253,7 @@ def menu_func(self, context):
                               icon='CURVE_DATA')
     layout.separator()
 
-    layout.menu(INFO_MT_curve_knots_add.bl_idname, text="Knots", icon='CURVE_DATA')
+    layout.menu(VIEW3D_MT_curve_knots_add.bl_idname, text="Knots", icon='CURVE_DATA')
     layout.separator()
     layout.operator("curve.curlycurve", text="Curly Curve",
                     icon='CURVE_DATA')
@@ -282,17 +282,17 @@ def register():
     bpy.utils.register_module(__name__)
 
     # Add "Extras" menu to the "Add Curve" menu
-    bpy.types.INFO_MT_curve_add.append(menu_func)
+    bpy.types.VIEW3D_MT_curve_add.append(menu_func)
     # Add "Extras" menu to the "Add Surface" menu
-    bpy.types.INFO_MT_surface_add.append(menu_surface)
+    bpy.types.VIEW3D_MT_surface_add.append(menu_surface)
 
 
 def unregister():
     add_curve_simple.unregister()
     # Remove "Extras" menu from the "Add Curve" menu.
-    bpy.types.INFO_MT_curve_add.remove(menu_func)
+    bpy.types.VIEW3D_MT_curve_add.remove(menu_func)
     # Remove "Extras" menu from the "Add Surface" menu.
-    bpy.types.INFO_MT_surface_add.remove(menu_surface)
+    bpy.types.VIEW3D_MT_surface_add.remove(menu_surface)
 
     bpy.utils.unregister_module(__name__)
 
diff --git a/add_curve_extra_objects/add_curve_curly.py b/add_curve_extra_objects/add_curve_curly.py
index 779689a9..d3950787 100644
--- a/add_curve_extra_objects/add_curve_curly.py
+++ b/add_curve_extra_objects/add_curve_curly.py
@@ -479,12 +479,12 @@ def add_curlycurve_button(self, context):
 
 def register():
     bpy.utils.register_class(add_curlycurve)
-    bpy.types.INFO_MT_curve_add.append(add_curlycurve_button)
+    bpy.types.VIEW3D_MT_curve_add.append(add_curlycurve_button)
 
 
 def unregister():
     bpy.utils.unregister_class(add_curlycurve)
-    bpy.types.INFO_MT_curve_add.remove(add_curlycurve_button)
+    bpy.types.VIEW3D_MT_curve_add.remove(add_curlycurve_button)
 
 
 if __name__ == "__main__":
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
 
 
diff --git a/add_curve_sapling/__init__.py b/add_curve_sapling/__init__.py
index 274c1fef..15cd7291 100644
--- a/add_curve_sapling/__init__.py
+++ b/add_curve_sapling/__init__.py
@@ -1126,13 +1126,13 @@ def menu_func(self, context):
 def register():
     bpy.utils.register_module(__name__)
 
-    bpy.types.INFO_MT_curve_add.append(menu_func)
+    bpy.types.VIEW3D_MT_curve_add.append(menu_func)
 
 
 def unregister():
     bpy.utils.unregister_module(__name__)
 
-    bpy.types.INFO_MT_curve_add.remove(menu_func)
+    bpy.types.VIEW3D_MT_curve_add.remove(menu_func)
 
 
 if __name__ == "__main__":
diff --git a/add_mesh_BoltFactory/__init__.py b/add_mesh_BoltFactory/__init__.py
index 46d250de..d441a0e8 100644
--- a/add_mesh_BoltFactory/__init__.py
+++ b/add_mesh_BoltFactory/__init__.py
@@ -49,14 +49,14 @@ def add_mesh_bolt_button(self, context):
 def register():
     bpy.utils.register_module(__name__)
 
-    bpy.types.INFO_MT_mesh_add.append(add_mesh_bolt_button)
+    bpy.types.VIEW3D_MT_mesh_add.append(add_mesh_bolt_button)
     # bpy.types.VIEW3D_PT_tools_objectmode.prepend(add_mesh_bolt_button)  # just for testing
 
 
 def unregister():
     bpy.utils.unregister_module(__name__)
 
-    bpy.types.INFO_MT_mesh_add.remove(add_mesh_bolt_button)
+    bpy.types.VIEW3D_MT_mesh_add.remove(add_mesh_bolt_button)
     # bpy.types.VIEW3D_PT_tools_objectmode.remove(add_mesh_bolt_button)  # just for testing
 
 
diff --git a/add_mesh_extra_objects/__init__.py b/add_mesh_extra_objects/__init__.py
index ecc023df..1197738c 100644
--- a/add_mesh_extra_objects/__init__.py
+++ b/add_mesh_extra_objects/__init__.py
@@ -107,9 +107,9 @@ from bpy.props import (
                 )
 
 
-class INFO_MT_mesh_vert_add(Menu):
+class VIEW3D_MT_mesh_vert_add(Menu):
     # Define the "Single Vert" menu
-    bl_idname = "INFO_MT_mesh_vert_add"
+    bl_idname = "VIEW3D_MT_mesh_vert_add"
     bl_label = "Single Vert"
 
     def draw(self, context):
@@ -126,9 +126,9 @@ class INFO_MT_mesh_vert_add(Menu):
                         text="Object Origin Mirrored")
 
 
-class INFO_MT_mesh_gears_add(Menu):
+class VIEW3D

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list