Skip to content

Commit c6b39f4

Browse files
committed
Merge branch 'release-0.6.1'
2 parents b602f91 + 85a719b commit c6b39f4

File tree

2 files changed

+7
-24
lines changed

2 files changed

+7
-24
lines changed

mesh_mesh_align_plus/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"based on geometry and measurements from your scene."
3434
),
3535
"author": "Eric Gentry",
36-
"version": (0, 6, 0),
36+
"version": (0, 6, 1),
3737
"blender": (2, 80, 0),
3838
"location": (
3939
"3D View > N Panel > Mesh Align Plus tab, and"

mesh_mesh_align_plus/utils/geom.py

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4730,36 +4730,19 @@ def execute(self, context):
47304730
return {'FINISHED'}
47314731

47324732

4733-
# TODO: Remove, 2.7x/2.8x cross compatibility no longer supported
4734-
# Blender 2.8 API compatibility var
4735-
if str(bpy.app.version[1]).startswith('8'):
4736-
BLENDER_28_PY_API = True
4737-
else:
4738-
BLENDER_28_PY_API = False
4739-
4740-
4741-
# Blender 2.8 API compatibility func
4733+
# TODO: Refactor from old deprecated 2.7x compatibility design
47424734
def get_active_object():
4743-
if BLENDER_28_PY_API:
4744-
return bpy.context.view_layer.objects.active
4745-
else:
4746-
return bpy.context.active_object
4735+
return bpy.context.view_layer.objects.active
47474736

47484737

4749-
# Blender 2.8 API compatibility func
4738+
# TODO: Refactor from old deprecated 2.7x compatibility design
47504739
def get_select_state(item):
4751-
if BLENDER_28_PY_API:
4752-
return item.select_get()
4753-
else:
4754-
return item.select
4740+
return item.select_get()
47554741

47564742

4757-
# Blender 2.8 API compatibility func
4743+
# TODO: Refactor from old deprecated 2.7x compatibility design
47584744
def set_select_state(state, item):
4759-
if BLENDER_28_PY_API:
4760-
item.select_set(state)
4761-
else:
4762-
item.select = state
4745+
item.select_set(state)
47634746

47644747

47654748
class MAPLUS_OT_ShowHideQuickGeomBaseClass(bpy.types.Operator):

0 commit comments

Comments
 (0)