[Bf-extensions-cvs] [56bce373] 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:55 CEST 2018
Commit: 56bce373e3077d71d0aa561b960b9c60c1570c41
Author: Brecht Van Lommel
Date: Wed Aug 29 15:04:54 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBAC56bce373e3077d71d0aa561b960b9c60c1570c41
Python / Cleanup: rename INFO_MT to TOPBAR_MT to reflect actual location.
===================================================================
M add_dimension.py
M add_mesh_castle/__init__.py
M add_mesh_clusters/__init__.py
M add_mesh_icicle_snowflake/__init__.py
M add_mesh_icicle_snowflake/add_mesh_icicle_gen.py
M add_mesh_icicle_snowflake/add_mesh_snowflake.py
M add_mesh_rocks/__init__.py
M add_mesh_space_tree/__init__.py
M amaranth/render/meshlight_add.py
M amaranth/scene/save_reload.py
M automat/__init__.py
M io_directx_bel/__init__.py
M io_export_marmalade.py
M io_export_md3.py
M io_import_BrushSet.py
M io_import_sound_to_anim.py
M io_import_voodoo_camera.py
M io_mesh_gwyddion/__init__.py
M io_mesh_xyz/__init__.py
M io_points_pcd/__init__.py
M io_scene_cod/__init__.py
M io_scene_fpx/__init__.py
M io_scene_map/__init__.py
M io_scene_open_street_map.py
M io_vector/__init__.py
M object_creaprim.py
M oscurart_mesh_thread.py
M space_view3d_render_settings.py
M space_view3d_toolshelf_menu.py
M system_keyboard_svg.py
M system_project_folder.py
===================================================================
diff --git a/add_dimension.py b/add_dimension.py
index 1b95bbb9..6ec9bbf0 100644
--- a/add_dimension.py
+++ b/add_dimension.py
@@ -3182,14 +3182,14 @@ def Dimension_button(self, context):
def register():
bpy.utils.register_module(__name__)
- bpy.types.INFO_MT_curve_add.append(Dimension_button)
+ bpy.types.VIEW3D_MT_curve_add.append(Dimension_button)
DimensionVariables()
def unregister():
bpy.utils.unregister_module(__name__)
- bpy.types.INFO_MT_curve_add.remove(Dimension_button)
+ bpy.types.VIEW3D_MT_curve_add.remove(Dimension_button)
if __name__ == "__main__":
register()
diff --git a/add_mesh_castle/__init__.py b/add_mesh_castle/__init__.py
index 13eaa461..2638abb2 100644
--- a/add_mesh_castle/__init__.py
+++ b/add_mesh_castle/__init__.py
@@ -62,13 +62,13 @@ classes = (
def register():
for cls in classes:
bpy.utils.register_class(cls)
- bpy.types.INFO_MT_mesh_add.append(menu_func_castle)
+ bpy.types.VIEW3D_MT_mesh_add.append(menu_func_castle)
def unregister():
for cls in classes:
bpy.utils.unregister_class(cls)
- bpy.types.INFO_MT_mesh_add.remove(menu_func_castle)
+ bpy.types.VIEW3D_MT_mesh_add.remove(menu_func_castle)
if __name__ == "__main__":
diff --git a/add_mesh_clusters/__init__.py b/add_mesh_clusters/__init__.py
index aac5a112..f384f034 100644
--- a/add_mesh_clusters/__init__.py
+++ b/add_mesh_clusters/__init__.py
@@ -513,11 +513,11 @@ def register():
bpy.utils.register_module(__name__)
bpy.types.Scene.atom_cluster = bpy.props.PointerProperty(type=
CLASS_atom_cluster_Properties)
- bpy.types.INFO_MT_mesh_add.append(DEF_menu_func)
+ bpy.types.VIEW3D_MT_mesh_add.append(DEF_menu_func)
def unregister():
bpy.utils.unregister_module(__name__)
- bpy.types.INFO_MT_mesh_add.remove(DEF_menu_func)
+ bpy.types.VIEW3D_MT_mesh_add.remove(DEF_menu_func)
if __name__ == "__main__":
diff --git a/add_mesh_icicle_snowflake/__init__.py b/add_mesh_icicle_snowflake/__init__.py
index b44f6fe3..8365d666 100644
--- a/add_mesh_icicle_snowflake/__init__.py
+++ b/add_mesh_icicle_snowflake/__init__.py
@@ -44,9 +44,9 @@ else:
import bpy
-class INFO_MT_mesh_icy_add(bpy.types.Menu):
+class VIEW3D_MT_mesh_icy_add(bpy.types.Menu):
# Define the "Ice" menu
- bl_idname = "INFO_MT_mesh_ice_add"
+ bl_idname = "VIEW3D_MT_mesh_ice_add"
bl_label = "Ice & Snow"
def draw(self, context):
@@ -62,21 +62,21 @@ class INFO_MT_mesh_icy_add(bpy.types.Menu):
# Define "Extras" menu
def menu_func(self, context):
- self.layout.menu("INFO_MT_mesh_ice_add", text="Ice & Snow", icon="FREEZE")
+ self.layout.menu("VIEW3D_MT_mesh_ice_add", text="Ice & Snow", icon="FREEZE")
def register():
bpy.utils.register_module(__name__)
# Add "Extras" menu to the "Add Mesh" menu
- bpy.types.INFO_MT_mesh_add.append(menu_func)
+ bpy.types.VIEW3D_MT_mesh_add.append(menu_func)
def unregister():
bpy.utils.unregister_module(__name__)
# Remove "Extras" menu from the "Add Mesh" menu.
- bpy.types.INFO_MT_mesh_add.remove(menu_func)
+ bpy.types.VIEW3D_MT_mesh_add.remove(menu_func)
if __name__ == "__main__":
diff --git a/add_mesh_icicle_snowflake/add_mesh_icicle_gen.py b/add_mesh_icicle_snowflake/add_mesh_icicle_gen.py
index f0ee5468..912a7090 100644
--- a/add_mesh_icicle_snowflake/add_mesh_icicle_gen.py
+++ b/add_mesh_icicle_snowflake/add_mesh_icicle_gen.py
@@ -391,12 +391,12 @@ def menu_func(self, context):
def register():
bpy.utils.register_class(IcicleGenerator)
- bpy.types.INFO_MT_mesh_add.append(menu_func)
+ bpy.types.VIEW3D_MT_mesh_add.append(menu_func)
def unregister():
bpy.utils.unregister_class(IcicleGenerator)
- bpy.types.INFO_MT_mesh_add.remove(menu_func)
+ bpy.types.VIEW3D_MT_mesh_add.remove(menu_func)
if __name__ == "__main__":
diff --git a/add_mesh_icicle_snowflake/add_mesh_snowflake.py b/add_mesh_icicle_snowflake/add_mesh_snowflake.py
index b000a436..7a567600 100644
--- a/add_mesh_icicle_snowflake/add_mesh_snowflake.py
+++ b/add_mesh_icicle_snowflake/add_mesh_snowflake.py
@@ -585,14 +585,14 @@ def register():
bpy.utils.register_class(SnowflakeGen)
bpy.utils.register_class(MESH_MT_snowflakes_presets)
bpy.utils.register_class(SnowflakeGen_presets)
- bpy.types.INFO_MT_mesh_add.append(menu_func)
+ bpy.types.VIEW3D_MT_mesh_add.append(menu_func)
def unregister():
bpy.utils.unregister_class(SnowflakeGen)
bpy.utils.unregister_class(MESH_MT_snowflakes_presets)
bpy.utils.unregister_class(SnowflakeGen_presets)
- bpy.types.INFO_MT_mesh_add.remove(menu_func)
+ bpy.types.VIEW3D_MT_mesh_add.remove(menu_func)
if __name__ == "__main__":
diff --git a/add_mesh_rocks/__init__.py b/add_mesh_rocks/__init__.py
index 793049e9..57bc9e8b 100644
--- a/add_mesh_rocks/__init__.py
+++ b/add_mesh_rocks/__init__.py
@@ -64,13 +64,13 @@ def menu_func_rocks(self, context):
def register():
bpy.utils.register_module(__name__)
- bpy.types.INFO_MT_mesh_add.append(menu_func_rocks)
+ bpy.types.VIEW3D_MT_mesh_add.append(menu_func_rocks)
def unregister():
bpy.utils.unregister_module(__name__)
- bpy.types.INFO_MT_mesh_add.remove(menu_func_rocks)
+ bpy.types.VIEW3D_MT_mesh_add.remove(menu_func_rocks)
if __name__ == "__main__":
diff --git a/add_mesh_space_tree/__init__.py b/add_mesh_space_tree/__init__.py
index 5b4d3ee2..3f26e98e 100644
--- a/add_mesh_space_tree/__init__.py
+++ b/add_mesh_space_tree/__init__.py
@@ -1110,11 +1110,11 @@ def menu_func(self, context):
def register():
bpy.utils.register_module(__name__)
- bpy.types.INFO_MT_mesh_add.append(menu_func)
+ bpy.types.VIEW3D_MT_mesh_add.append(menu_func)
def unregister():
- bpy.types.INFO_MT_mesh_add.remove(menu_func)
+ bpy.types.VIEW3D_MT_mesh_add.remove(menu_func)
bpy.utils.unregister_module(__name__)
diff --git a/amaranth/render/meshlight_add.py b/amaranth/render/meshlight_add.py
index a96db23c..39320cc2 100644
--- a/amaranth/render/meshlight_add.py
+++ b/amaranth/render/meshlight_add.py
@@ -186,9 +186,9 @@ def ui_menu_lamps_add(self, context):
def register():
bpy.utils.register_class(AMTH_OBJECT_OT_meshlight_add)
- bpy.types.INFO_MT_mesh_add.append(ui_menu_lamps_add)
+ bpy.types.VIEW3D_MT_mesh_add.append(ui_menu_lamps_add)
def unregister():
bpy.utils.unregister_class(AMTH_OBJECT_OT_meshlight_add)
- bpy.types.INFO_MT_mesh_add.remove(ui_menu_lamps_add)
+ bpy.types.VIEW3D_MT_mesh_add.remove(ui_menu_lamps_add)
diff --git a/amaranth/scene/save_reload.py b/amaranth/scene/save_reload.py
index 0698755b..4f588c3a 100644
--- a/amaranth/scene/save_reload.py
+++ b/amaranth/scene/save_reload.py
@@ -61,7 +61,7 @@ def button_save_reload(self, context):
def register():
bpy.utils.register_class(AMTH_WM_OT_save_reload)
- bpy.types.INFO_MT_file.append(button_save_reload)
+ bpy.types.TOPBAR_MT_file.append(button_save_reload)
wm = bpy.context.window_manager
kc = wm.keyconfigs.addon
km = kc.keymaps.new(name="Window")
@@ -72,7 +72,7 @@ def register():
def unregister():
bpy.utils.unregister_class(AMTH_WM_OT_save_reload)
- bpy.types.INFO_MT_file.remove(button_save_reload)
+ bpy.types.TOPBAR_MT_file.remove(button_save_reload)
for km, kmi in KEYMAPS:
km.keymap_items.remove(kmi)
KEYMAPS.clear()
diff --git a/automat/__init__.py b/automat/__init__.py
index 0d1582e1..685e5351 100644
--- a/automat/__init__.py
+++ b/automat/__init__.py
@@ -46,14 +46,14 @@ operator and the AdjustableOperatorFromTexture operator. """
bpy.utils.register_class(AutoOp.AutomatOperatorFromTexture)
bpy.utils.register_class(AdjOp.AdjustableOperatorFromTexture)
- bpy.types.INFO_MT_file_import.append(menu_draw)
+ bpy.types.TOPBAR_MT_file_import.append(menu_draw)
def unregister():
"""This method unregisters the AutomatOperatorFromTexture
operator and the AdjustableOperatorFromTexture operator. """
- bpy.types.INFO_MT_file_import.remove(menu_draw)
+ bpy.types.TOPBAR_MT_file_import.remove(menu_draw)
bpy.utils.unregister_class(AutoOp.AutomatOperatorFromTexture)
bpy.utils.unregister_class(AdjOp.AdjustableOperatorFromTexture)
diff --git a/io_directx_bel/__init__.py b/io_directx_bel/__init__.py
index 8841e727..e9e73611 100644
--- a/io_directx_bel/__init__.py
+++ b/io_directx_bel/__init__.py
@@ -281,15 +281,15 @@ def menu_func_import(self, context):
def register():
bpy.utils.register_module(__name__)
- bpy.types.INFO_MT_file_import.append(menu_func_import)
- #bpy.types.INFO_MT_file_export.append(menu_func_export)
+ bpy.types.TOPBAR_MT_file_import.append(menu_func_import)
+ #bpy.types.TOPBAR_MT_file_export.append(menu_func_export)
def unregister():
bpy.utils.unregister_module(__name__)
- bpy.types.INFO_MT_file_import.remove(menu_func_import)
- #bpy.types.INFO_MT_file_export.remove(menu_func_export)
+ bpy.types.TOPBAR_MT_file_import.remove(menu_func_import)
+ #bpy.types.TOPBAR_MT_file_export.remove(menu_func_export)
if __name__ == "__main__":
register()
\ No newline at end of file
diff --git a/io_export_marmalade.py b/io_export_marmalade.py
index d301c265..60719866 100644
--- a/io_export_marmalade.py
+++ b/io_export_marmalade.py
@@ -1460,13 +1460,13 @@ def menu_func(self, context):
def register():
bpy.utils.register_module(__name__)
- bpy.types.INFO_MT_file_export.append(menu_func)
+ bpy.types.TOPBAR_MT_file_export.append(menu_func)
def unregister():
bpy.utils.unregister_module(__name__)
- bpy.types.INFO_MT_file_export.remove(menu_func)
+ bpy.types.TOPBAR_MT_file_export.remove(menu_func)
if __name__ == "__main__":
diff --git a/io_export_md3.py b/io_export_md3.py
index 2a1c4597..75d2d472 100644
--- a/io_export_md3.py
+++ b/io_export_md3.py
@@ -683,10 +683,10 @@ def menu_func(self, context):
self.layout.operator(ExportMD3.bl_idname, text="Quake Model 3 (.md3)").filepath = newpath
def register():
- bpy.types.INFO_MT_file_export.append(menu_func)
+ bpy.types.TOPBAR_MT_file_export.append(menu_func)
def unregister():
- bpy.types.INFO_MT
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list