Skip to content

Commit

Permalink
More 2.80 naming rules changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
egtwobits committed Jan 11, 2019
1 parent 36f117b commit c66144e
Show file tree
Hide file tree
Showing 12 changed files with 1,037 additions and 1,039 deletions.
92 changes: 46 additions & 46 deletions advanced_tools.py

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions align_lines.py
Expand Up @@ -10,7 +10,7 @@
import mesh_mesh_align_plus.utils.gui_tools as maplus_guitools


class AlignLinesBase(bpy.types.Operator):
class MAPLUS_OT_AlignLinesBase(bpy.types.Operator):
bl_idname = "maplus.alignlinesbase"
bl_label = "Align Lines Base"
bl_description = "Align lines base class"
Expand Down Expand Up @@ -254,15 +254,15 @@ def execute(self, context):
return {'FINISHED'}


class AlignLinesObject(AlignLinesBase):
class MAPLUS_OT_AlignLinesObject(MAPLUS_OT_AlignLinesBase):
bl_idname = "maplus.alignlinesobject"
bl_label = "Align Lines"
bl_description = "Makes lines collinear (in line with each other)"
bl_options = {'REGISTER', 'UNDO'}
target = 'OBJECT'


class QuickAlignLinesObject(AlignLinesBase):
class MAPLUS_OT_QuickAlignLinesObject(MAPLUS_OT_AlignLinesBase):
bl_idname = "maplus.quickalignlinesobject"
bl_label = "Align Lines"
bl_description = "Makes lines collinear (in line with each other)"
Expand All @@ -271,7 +271,7 @@ class QuickAlignLinesObject(AlignLinesBase):
quick_op_target = True


class AlignLinesMeshSelected(AlignLinesBase):
class MAPLUS_OT_AlignLinesMeshSelected(MAPLUS_OT_AlignLinesBase):
bl_idname = "maplus.alignlinesmeshselected"
bl_label = "Align Lines"
bl_description = "Makes lines collinear (in line with each other)"
Expand All @@ -286,7 +286,7 @@ def poll(cls, context):
return True


class AlignLinesWholeMesh(AlignLinesBase):
class MAPLUS_OT_AlignLinesWholeMesh(MAPLUS_OT_AlignLinesBase):
bl_idname = "maplus.alignlineswholemesh"
bl_label = "Align Lines"
bl_description = "Makes lines collinear (in line with each other)"
Expand All @@ -301,7 +301,7 @@ def poll(cls, context):
return True


class QuickAlignLinesMeshSelected(AlignLinesBase):
class MAPLUS_OT_QuickAlignLinesMeshSelected(MAPLUS_OT_AlignLinesBase):
bl_idname = "maplus.quickalignlinesmeshselected"
bl_label = "Align Lines"
bl_description = "Makes lines collinear (in line with each other)"
Expand All @@ -317,7 +317,7 @@ def poll(cls, context):
return True


class QuickAlignLinesWholeMesh(AlignLinesBase):
class MAPLUS_OT_QuickAlignLinesWholeMesh(MAPLUS_OT_AlignLinesBase):
bl_idname = "maplus.quickalignlineswholemesh"
bl_label = "Align Lines"
bl_description = "Makes lines collinear (in line with each other)"
Expand All @@ -333,8 +333,8 @@ def poll(cls, context):
return True


class QuickAlignLinesGUI(bpy.types.Panel):
bl_idname = "maplus._quick_align_lines_gui"
class MAPLUS_PT_QuickAlignLinesGUI(bpy.types.Panel):
bl_idname = "MAPLUS_PT_QuickAlignLinesGUI"
bl_label = "Quick Align Lines"
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
Expand Down
6 changes: 3 additions & 3 deletions align_objects.py
Expand Up @@ -7,7 +7,7 @@
import mesh_mesh_align_plus.utils.geom as maplus_geom


class QuickAlignObjects(bpy.types.Operator):
class MAPLUS_OT_QuickAlignObjects(bpy.types.Operator):
bl_idname = "maplus.quickalignobjects"
bl_label = "Align Objects"
bl_description = "Align Objects"
Expand Down Expand Up @@ -55,8 +55,8 @@ def execute(self, context):
return {'FINISHED'}


class QuickAlignObjectsGUI(bpy.types.Panel):
bl_idname = "maplus._quick_align_objects_gui"
class MAPLUS_PT_QuickAlignObjectsGUI(bpy.types.Panel):
bl_idname = "MAPLUS_PT_QuickAlignObjectsGUI"
bl_label = "Quick Align Objects"
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
Expand Down
18 changes: 9 additions & 9 deletions align_planes.py
Expand Up @@ -10,7 +10,7 @@
import mesh_mesh_align_plus.utils.gui_tools as maplus_guitools


class AlignPlanesBase(bpy.types.Operator):
class MAPLUS_OT_AlignPlanesBase(bpy.types.Operator):
bl_idname = "maplus.alignplanesbase"
bl_label = "Align Planes base"
bl_description = "Align Planes base class"
Expand Down Expand Up @@ -340,15 +340,15 @@ def execute(self, context):
return {'FINISHED'}


class AlignPlanesObject(AlignPlanesBase):
class MAPLUS_OT_AlignPlanesObject(MAPLUS_OT_AlignPlanesBase):
bl_idname = "maplus.alignplanesobject"
bl_label = "Align Planes"
bl_description = "Makes planes coplanar (flat against each other)"
bl_options = {'REGISTER', 'UNDO'}
target = 'OBJECT'


class QuickAlignPlanesObject(AlignPlanesBase):
class MAPLUS_OT_QuickAlignPlanesObject(MAPLUS_OT_AlignPlanesBase):
bl_idname = "maplus.quickalignplanesobject"
bl_label = "Align Planes"
bl_description = "Makes planes coplanar (flat against each other)"
Expand All @@ -357,7 +357,7 @@ class QuickAlignPlanesObject(AlignPlanesBase):
quick_op_target = True


class AlignPlanesMeshSelected(AlignPlanesBase):
class MAPLUS_OT_AlignPlanesMeshSelected(MAPLUS_OT_AlignPlanesBase):
bl_idname = "maplus.alignplanesmeshselected"
bl_label = "Align Planes"
bl_description = "Makes planes coplanar (flat against each other)"
Expand All @@ -372,7 +372,7 @@ def poll(cls, context):
return True


class AlignPlanesWholeMesh(AlignPlanesBase):
class MAPLUS_OT_AlignPlanesWholeMesh(MAPLUS_OT_AlignPlanesBase):
bl_idname = "maplus.alignplaneswholemesh"
bl_label = "Align Planes"
bl_description = "Makes planes coplanar (flat against each other)"
Expand All @@ -387,7 +387,7 @@ def poll(cls, context):
return True


class QuickAlignPlanesMeshSelected(AlignPlanesBase):
class MAPLUS_OT_QuickAlignPlanesMeshSelected(MAPLUS_OT_AlignPlanesBase):
bl_idname = "maplus.quickalignplanesmeshselected"
bl_label = "Align Planes"
bl_description = "Makes planes coplanar (flat against each other)"
Expand All @@ -403,7 +403,7 @@ def poll(cls, context):
return True


class QuickAlignPlanesWholeMesh(AlignPlanesBase):
class MAPLUS_OT_QuickAlignPlanesWholeMesh(MAPLUS_OT_AlignPlanesBase):
bl_idname = "maplus.quickalignplaneswholemesh"
bl_label = "Align Planes"
bl_description = "Makes planes coplanar (flat against each other)"
Expand All @@ -419,8 +419,8 @@ def poll(cls, context):
return True


class QuickAlignPlanesGUI(bpy.types.Panel):
bl_idname = "maplus._quick_align_planes_gui"
class MAPLUS_PT_QuickAlignPlanesGUI(bpy.types.Panel):
bl_idname = "MAPLUS_PT_QuickAlignPlanesGUI"
bl_label = "Quick Align Planes"
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
Expand Down
18 changes: 9 additions & 9 deletions align_points.py
Expand Up @@ -10,7 +10,7 @@
import mesh_mesh_align_plus.utils.gui_tools as maplus_guitools


class AlignPointsBase(bpy.types.Operator):
class MAPLUS_OT_AlignPointsBase(bpy.types.Operator):
bl_idname = "maplus.alignpointsbase"
bl_label = "Align Points Base"
bl_description = "Align points base class"
Expand Down Expand Up @@ -199,7 +199,7 @@ def execute(self, context):
return {'FINISHED'}


class AlignPointsObject(AlignPointsBase):
class MAPLUS_OT_AlignPointsObject(MAPLUS_OT_AlignPointsBase):
bl_idname = "maplus.alignpointsobject"
bl_label = "Align Points Object"
bl_description = (
Expand All @@ -209,7 +209,7 @@ class AlignPointsObject(AlignPointsBase):
target = 'OBJECT'


class QuickAlignPointsObject(AlignPointsBase):
class MAPLUS_OT_QuickAlignPointsObject(MAPLUS_OT_AlignPointsBase):
bl_idname = "maplus.quickalignpointsobject"
bl_label = "Quick Align Points Object"
bl_description = (
Expand All @@ -220,7 +220,7 @@ class QuickAlignPointsObject(AlignPointsBase):
quick_op_target = True


class AlignPointsMeshSelected(AlignPointsBase):
class MAPLUS_OT_AlignPointsMeshSelected(MAPLUS_OT_AlignPointsBase):
bl_idname = "maplus.alignpointsmeshselected"
bl_label = "Align Points Mesh Selected"
bl_description = (
Expand All @@ -238,7 +238,7 @@ def poll(cls, context):
return True


class QuickAlignPointsMeshSelected(AlignPointsBase):
class MAPLUS_OT_QuickAlignPointsMeshSelected(MAPLUS_OT_AlignPointsBase):
bl_idname = "maplus.quickalignpointsmeshselected"
bl_label = "Quick Align Points Mesh Selected"
bl_description = (
Expand All @@ -257,7 +257,7 @@ def poll(cls, context):
return True


class AlignPointsWholeMesh(AlignPointsBase):
class MAPLUS_OT_AlignPointsWholeMesh(MAPLUS_OT_AlignPointsBase):
bl_idname = "maplus.alignpointswholemesh"
bl_label = "Align Points Whole Mesh"
bl_description = "Match the location of one vertex on a mesh to another"
Expand All @@ -272,7 +272,7 @@ def poll(cls, context):
return True


class QuickAlignPointsWholeMesh(AlignPointsBase):
class MAPLUS_OT_QuickAlignPointsWholeMesh(MAPLUS_OT_AlignPointsBase):
bl_idname = "maplus.quickalignpointswholemesh"
bl_label = "Quick Align Points Whole Mesh"
bl_description = "Match the location of one vertex on a mesh to another"
Expand All @@ -288,8 +288,8 @@ def poll(cls, context):
return True


class QuickAlignPointsGUI(bpy.types.Panel):
bl_idname = "maplus._quick_align_points_gui"
class MAPLUS_PT_QuickAlignPointsGUI(bpy.types.Panel):
bl_idname = "MAPLUS_PT_QuickAlignPointsGUI"
bl_label = "Quick Align Points"
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
Expand Down
18 changes: 9 additions & 9 deletions axis_rotate.py
Expand Up @@ -12,7 +12,7 @@
import mesh_mesh_align_plus.utils.gui_tools as maplus_guitools


class AxisRotateBase(bpy.types.Operator):
class MAPLUS_OT_AxisRotateBase(bpy.types.Operator):
bl_idname = "maplus.axisrotatebase"
bl_label = "Axis Rotate Base"
bl_description = "Axis rotate base class"
Expand Down Expand Up @@ -237,15 +237,15 @@ def execute(self, context):
return {'FINISHED'}


class AxisRotateObject(AxisRotateBase):
class MAPLUS_OT_AxisRotateObject(MAPLUS_OT_AxisRotateBase):
bl_idname = "maplus.axisrotateobject"
bl_label = "Axis Rotate"
bl_description = "Rotates around an axis"
bl_options = {'REGISTER', 'UNDO'}
target = 'OBJECT'


class QuickAxisRotateObject(AxisRotateBase):
class MAPLUS_OT_QuickAxisRotateObject(MAPLUS_OT_AxisRotateBase):
bl_idname = "maplus.quickaxisrotateobject"
bl_label = "Axis Rotate"
bl_description = "Rotates around an axis"
Expand All @@ -254,7 +254,7 @@ class QuickAxisRotateObject(AxisRotateBase):
quick_op_target = True


class AxisRotateMeshSelected(AxisRotateBase):
class MAPLUS_OT_AxisRotateMeshSelected(MAPLUS_OT_AxisRotateBase):
bl_idname = "maplus.axisrotatemeshselected"
bl_label = "Axis Rotate"
bl_description = "Rotates around an axis"
Expand All @@ -269,7 +269,7 @@ def poll(cls, context):
return True


class AxisRotateWholeMesh(AxisRotateBase):
class MAPLUS_OT_AxisRotateWholeMesh(MAPLUS_OT_AxisRotateBase):
bl_idname = "maplus.axisrotatewholemesh"
bl_label = "Axis Rotate"
bl_description = "Rotates around an axis"
Expand All @@ -284,7 +284,7 @@ def poll(cls, context):
return True


class QuickAxisRotateMeshSelected(AxisRotateBase):
class MAPLUS_OT_QuickAxisRotateMeshSelected(MAPLUS_OT_AxisRotateBase):
bl_idname = "maplus.quickaxisrotatemeshselected"
bl_label = "Axis Rotate"
bl_description = "Rotates around an axis"
Expand All @@ -300,7 +300,7 @@ def poll(cls, context):
return True


class QuickAxisRotateWholeMesh(AxisRotateBase):
class MAPLUS_OT_QuickAxisRotateWholeMesh(MAPLUS_OT_AxisRotateBase):
bl_idname = "maplus.quickaxisrotatewholemesh"
bl_label = "Axis Rotate"
bl_description = "Rotates around an axis"
Expand All @@ -316,8 +316,8 @@ def poll(cls, context):
return True


class QuickAxisRotateGUI(bpy.types.Panel):
bl_idname = "maplus._quick_axis_rotate_gui"
class MAPLUS_PT_QuickAxisRotateGUI(bpy.types.Panel):
bl_idname = "MAPLUS_PT_QuickAxisRotateGUI"
bl_label = "Quick Axis Rotate"
bl_space_type = "PROPERTIES"
bl_region_type = "WINDOW"
Expand Down

0 comments on commit c66144e

Please sign in to comment.