[Bf-extensions-cvs] [131ea02a] master: Cleanup: quiet strict name warnings for addons a..h.

Campbell Barton noreply at git.blender.org
Sat Sep 2 11:26:59 CEST 2017


Commit: 131ea02a4c0cc0c245c39488113fbe4b433afdee
Author: Campbell Barton
Date:   Sat Sep 2 19:33:06 2017 +1000
Branches: master
https://developer.blender.org/rBA131ea02a4c0cc0c245c39488113fbe4b433afdee

Cleanup: quiet strict name warnings for addons a..h.

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

M	add_advanced_objects_menu/arrange_on_curve.py
M	add_advanced_objects_menu/cubester.py
M	add_curve_extra_objects/__init__.py
M	add_curve_extra_objects/add_curve_simple.py
M	add_curve_extra_objects/add_curve_spirofit_bouncespline.py
M	add_curve_sapling/__init__.py
M	add_mesh_extra_objects/mesh_discombobulator.py
M	ant_landscape/__init__.py
M	archimesh/__init__.py
M	archimesh/achm_main_panel.py
M	archimesh/achm_window_panel.py
M	archipack/__init__.py
M	bone_selection_sets.py
M	btrace/__init__.py
M	btrace/bTrace_props.py
M	camera_dolly_crane_rigs.py
M	camera_turnaround.py
M	development_api_navigator.py
M	development_edit_operator.py
M	development_iskeyfree.py
M	light_field_tools/__init__.py
M	light_field_tools/light_field_tools.py
M	materials_utils/__init__.py
M	measureit/__init__.py
M	rigify/ui.py
M	uv_texture_atlas.py

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

diff --git a/add_advanced_objects_menu/arrange_on_curve.py b/add_advanced_objects_menu/arrange_on_curve.py
index b811263b..c292e341 100644
--- a/add_advanced_objects_menu/arrange_on_curve.py
+++ b/add_advanced_objects_menu/arrange_on_curve.py
@@ -31,6 +31,7 @@ FLT_MIN = 0.004
 
 
 class PanelDupliCurve(Panel):
+    bl_idname = "VIEW3D_PT_arranjar_numa_curva"
     bl_space_type = "VIEW_3D"
     bl_region_type = "TOOLS"
     bl_context = "objectmode"
diff --git a/add_advanced_objects_menu/cubester.py b/add_advanced_objects_menu/cubester.py
index 1a516bd0..f1a8f581 100644
--- a/add_advanced_objects_menu/cubester.py
+++ b/add_advanced_objects_menu/cubester.py
@@ -695,7 +695,7 @@ def material_frame_handler(scene):
 
 
 class CubeSterPanel(Panel):
-    bl_idname = "OBJECT_PT.cubester"
+    bl_idname = "OBJECT_PT_cubester"
     bl_label = "CubeSter"
     bl_space_type = "VIEW_3D"
     bl_region_type = "TOOLS"
diff --git a/add_curve_extra_objects/__init__.py b/add_curve_extra_objects/__init__.py
index ae8cdf89..42ae2d44 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_add1(Menu):
+class INFO_MT_curve_knots_add(Menu):
     # Define the "Extras" menu
-    bl_idname = "curve_knots_add"
+    bl_idname = "INFO_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("curve_knots_add", text="Knots", icon='CURVE_DATA')
+    layout.menu(INFO_MT_curve_knots_add.bl_idname, text="Knots", icon='CURVE_DATA')
     layout.separator()
     layout.operator("curve.curlycurve", text="Curly Curve",
                     icon='CURVE_DATA')
diff --git a/add_curve_extra_objects/add_curve_simple.py b/add_curve_extra_objects/add_curve_simple.py
index 3e85fa18..c6908ce9 100644
--- a/add_curve_extra_objects/add_curve_simple.py
+++ b/add_curve_extra_objects/add_curve_simple.py
@@ -1399,6 +1399,7 @@ class BezierDivide(Operator):
 # Simple change panel
 
 class SimplePanel(Panel):
+    bl_idname = "VIEW3D_PT_simple_curve"
     bl_label = "Simple Curve"
     bl_space_type = "VIEW_3D"
     bl_region_type = "TOOLS"
diff --git a/add_curve_extra_objects/add_curve_spirofit_bouncespline.py b/add_curve_extra_objects/add_curve_spirofit_bouncespline.py
index 33caf120..d0c1c747 100644
--- a/add_curve_extra_objects/add_curve_spirofit_bouncespline.py
+++ b/add_curve_extra_objects/add_curve_spirofit_bouncespline.py
@@ -979,6 +979,7 @@ def draw_spline_settings(self):
 # Tools Panel > Create
 # ------------------------------------------------------------
 class SplinePanel(Panel):
+    bl_idname = "VIEW3D_PT_spirofit_spline"
     bl_space_type = "VIEW_3D"
     bl_context = "objectmode"
     bl_region_type = "TOOLS"
diff --git a/add_curve_sapling/__init__.py b/add_curve_sapling/__init__.py
index 48b45d31..274c1fef 100644
--- a/add_curve_sapling/__init__.py
+++ b/add_curve_sapling/__init__.py
@@ -235,7 +235,7 @@ class ImportData(Operator):
 class PresetMenu(Menu):
     """Create the preset menu by finding all preset files
     in the preset directory"""
-    bl_idname = "sapling.presetmenu"
+    bl_idname = "SAPLING_MT_preset"
     bl_label = "Presets"
 
     def draw(self, context):
@@ -930,7 +930,7 @@ class AddTree(Operator):
             row.label(" ")
             row.prop(self, 'overwrite')
             row = box.row()
-            row.menu('sapling.presetmenu', text='Load Preset')
+            row.menu('SAPLING_MT_preset', text='Load Preset')
             row.prop(self, 'limitImport')
 
         elif self.chooseSet == '1':
diff --git a/add_mesh_extra_objects/mesh_discombobulator.py b/add_mesh_extra_objects/mesh_discombobulator.py
index 9d9469d2..b677fc6c 100644
--- a/add_mesh_extra_objects/mesh_discombobulator.py
+++ b/add_mesh_extra_objects/mesh_discombobulator.py
@@ -627,7 +627,7 @@ class discombobulator(Operator):
 
 
 class discombobulator_dodads_list(Menu):
-    bl_idname = "object.discombobulator_dodad_list"
+    bl_idname = "OBJECT_MT_discombobulator_dodad_list"
     bl_label = "List of saved Doodads"
     bl_description = "List of the saved Doodad Object Names"
     bl_options = {'REGISTER'}
@@ -644,7 +644,7 @@ class discombobulator_dodads_list(Menu):
 
 
 class discombob_help(Menu):
-    bl_idname = "help.discombobulator"
+    bl_idname = "HELP_MT_discombobulator"
     bl_label = "Usage Information"
     bl_description = "Help"
     bl_options = {'REGISTER'}
@@ -688,7 +688,7 @@ class VIEW3D_OT_tools_discombobulate(Operator):
         layout = self.layout
 
         row = layout.row()
-        row.menu('help.discombobulator', icon='INFO')
+        row.menu('HELP_MT_discombobulator', icon='INFO')
         box = layout.box()
         box.label("Protusions settings")
         row = box.row()
@@ -740,7 +740,7 @@ class VIEW3D_OT_tools_discombobulate(Operator):
         doodle = len(bpy.context.scene.discomb.DISC_doodads)
 
         col.enabled = (True if doodle > 0 else False)
-        col.menu("object.discombobulator_dodad_list",
+        col.menu("OBJECT_MT_discombobulator_dodad_list",
                      text="List of saved Doodads ({})".format(doodle))
 
         box = layout.box()
diff --git a/ant_landscape/__init__.py b/ant_landscape/__init__.py
index e4ae01d1..ba6e8b6f 100644
--- a/ant_landscape/__init__.py
+++ b/ant_landscape/__init__.py
@@ -76,6 +76,7 @@ def menu_func_landscape(self, context):
 
 # Landscape Add Panel
 class panel_func_add_landscape(bpy.types.Panel):
+    bl_idname = "ANTLANDSCAPE_PT_add"
     bl_space_type = "VIEW_3D"
     bl_context = "objectmode"
     bl_region_type = "TOOLS"
@@ -90,6 +91,7 @@ class panel_func_add_landscape(bpy.types.Panel):
 
 # Landscape Tools:
 class AntLandscapeToolsPanel(bpy.types.Panel):
+    bl_idname = "ANTLANDSCAPE_PT_tools"
     bl_space_type = "VIEW_3D"
     bl_context = "objectmode"
     bl_region_type = "TOOLS"
diff --git a/archimesh/__init__.py b/archimesh/__init__.py
index e9ba3883..cb22e157 100644
--- a/archimesh/__init__.py
+++ b/archimesh/__init__.py
@@ -58,7 +58,7 @@ if "bpy" in locals():
     importlib.reload(achm_venetian_maker)
     importlib.reload(achm_main_panel)
     importlib.reload(achm_window_panel)
-    print("archimesh: Reloaded multifiles")
+    # print("archimesh: Reloaded multifiles")
 else:
     from . import achm_books_maker
     from . import achm_column_maker
@@ -75,7 +75,7 @@ else:
     from . import achm_window_maker
     from . import achm_window_panel
 
-    print("archimesh: Imported multifiles")
+    # print("archimesh: Imported multifiles")
 
 # noinspection PyUnresolvedReferences
 import bpy
diff --git a/archimesh/achm_main_panel.py b/archimesh/achm_main_panel.py
index 288922f3..d12c2a6b 100644
--- a/archimesh/achm_main_panel.py
+++ b/archimesh/achm_main_panel.py
@@ -388,7 +388,7 @@ class AchmPencilAction(Operator):
 # Define panel class for main functions.
 # ------------------------------------------------------------------
 class ArchimeshMainPanel(Panel):
-    bl_idname = "archimesh_main_panel"
+    bl_idname = "ARCHIMESH_PT_main"
     bl_label = "Archimesh"
     bl_space_type = "VIEW_3D"
     bl_region_type = "TOOLS"
diff --git a/archimesh/achm_window_panel.py b/archimesh/achm_window_panel.py
index ce7cb34e..592e13a6 100644
--- a/archimesh/achm_window_panel.py
+++ b/archimesh/achm_window_panel.py
@@ -1772,7 +1772,7 @@ Object.WindowPanelGenerator = CollectionProperty(type=GeneralPanelProperties)
 # Define panel class to modify myobjects.
 # ------------------------------------------------------------------
 class AchmWindowEditPanel(Panel):
-    bl_idname = "window.edit_panel2"
+    bl_idname = "ARCHIMESH_PT_window_edit"
     bl_label = "Window Panel"
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'UI'
diff --git a/archipack/__init__.py b/archipack/__init__.py
index 7707abd3..0f5d3a86 100644
--- a/archipack/__init__.py
+++ b/archipack/__init__.py
@@ -63,7 +63,7 @@ if "bpy" in locals():
     imp.reload(archipack_floor)
     imp.reload(archipack_rendering)
 
-    print("archipack: reload ready")
+    # print("archipack: reload ready")
 else:
     from . import archipack_progressbar
     from . import archipack_material
@@ -82,7 +82,7 @@ else:
     from . import archipack_floor
     from . import archipack_rendering
 
-    print("archipack: ready")
+    # print("archipack: ready")
 
 # noinspection PyUnresolvedReferences
 import bpy
@@ -433,9 +433,8 @@ def draw_menu(self, context):
                     ).preset_operator = "archipack.roof"
 
 
-class ARCHIPACK_create_menu(Menu):
+class ARCHIPACK_MT_create(Menu):
     bl_label = 'Archipack'
-    bl_idname = 'ARCHIPACK_create_menu'
 
     def draw(self, context):
         draw_menu(self, context)
@@ -450,7 +449,7 @@ def menu_func(self, context):
     # either draw sub menu or right at end of this one
     if context.user_preferences.addons[__name__].preferences.create_submenu:
         layout.operator_context = 'INVOKE_REGION_WIN'
-        layout.menu("ARCHIPACK_create_menu", icon_value=icons["archipack"].icon_id)
+        layout.menu("ARCHIPACK_MT_create", icon_value=icons["archipack"].icon_id)
     else:
         draw_menu(self, context)
 
@@ -504,14 +503,14 @@ def register():
     WindowManager.archipack = PointerProperty(type=archipack_data)
     bpy.utils.register_class(Archipack_Pref)
     update_panel(None, bpy.context)
-    bpy.utils.register_class(ARCHIPACK_create_menu)
+    bpy.utils.register_class(ARCHIPACK_MT_create)
     bpy.types.INFO_MT_mesh_add.append(menu_func)
 
 
 def unregister():
     global icons_collection
     bpy.types.INFO_MT_mesh_add.remove(menu_func)
-    bpy.utils.unregister_class(ARCHIPACK_create_menu)
+    bpy.utils.unregister_class(ARCHIPACK_MT_create)
 
     bpy.utils.unregister_class(TOOLS_PT_Archipack_Tools)
     bpy.utils.unregister_class(TOOLS_PT_Archipack_Create)
diff --git a/bone_selection_sets.py b/bone_selection_sets.py
index bd7b26c0..46aa7f25 100644
--- a/bone_selection_sets.py
+++ b/bone_selection_sets.py
@@ -129,7 +129,7 @@ class POSE_UL_selection_set(

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list