File tree Expand file tree Collapse file tree 2 files changed +7
-24
lines changed Expand file tree Collapse file tree 2 files changed +7
-24
lines changed Original file line number Diff line number Diff line change 33
33
"based on geometry and measurements from your scene."
34
34
),
35
35
"author" : "Eric Gentry" ,
36
- "version" : (0 , 6 , 0 ),
36
+ "version" : (0 , 6 , 1 ),
37
37
"blender" : (2 , 80 , 0 ),
38
38
"location" : (
39
39
"3D View > N Panel > Mesh Align Plus tab, and"
Original file line number Diff line number Diff line change @@ -4730,36 +4730,19 @@ def execute(self, context):
4730
4730
return {'FINISHED' }
4731
4731
4732
4732
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
4742
4734
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
4747
4736
4748
4737
4749
- # Blender 2.8 API compatibility func
4738
+ # TODO: Refactor from old deprecated 2.7x compatibility design
4750
4739
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 ()
4755
4741
4756
4742
4757
- # Blender 2.8 API compatibility func
4743
+ # TODO: Refactor from old deprecated 2.7x compatibility design
4758
4744
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 )
4763
4746
4764
4747
4765
4748
class MAPLUS_OT_ShowHideQuickGeomBaseClass (bpy .types .Operator ):
You can’t perform that action at this time.
0 commit comments