Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNBurn <7nburn@gmail.com>2019-01-29 02:56:18 +0300
committerNBurn <7nburn@gmail.com>2019-01-29 02:56:18 +0300
commitbdc109a5309b26c718a3ae0ca6f2393c731fde0d (patch)
tree59a4407ac5380176416d508bc7b3e4d036c9d395 /io_export_unreal_psk_psa.py
parent3267eec939805e17b6fd3aaded869b63f0792820 (diff)
addons: object select_get syntax update
Diffstat (limited to 'io_export_unreal_psk_psa.py')
-rw-r--r--io_export_unreal_psk_psa.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/io_export_unreal_psk_psa.py b/io_export_unreal_psk_psa.py
index b499aa30..651b9e1e 100644
--- a/io_export_unreal_psk_psa.py
+++ b/io_export_unreal_psk_psa.py
@@ -1766,7 +1766,7 @@ def find_armature_and_mesh():
elif len(all_armatures) > 1: # if there more armature then find the select armature
barmselect = False
for _armobj in all_armatures:
- if _armobj.select:
+ if _armobj.select_get():
armature = _armobj
barmselect = True
break
@@ -1785,7 +1785,7 @@ def find_armature_and_mesh():
for obj in armature.children:
# print(dir(obj))
- if obj.type == 'MESH' and obj.select is True:
+ if obj.type == 'MESH' and obj.select_get() is True:
meshselected.append(obj)
# try the active object
if active_object and active_object.type == 'MESH' and len(meshselected) == 0:
@@ -2021,7 +2021,7 @@ class OBJECT_OT_UTSelectedFaceSmooth(Operator):
print("Init Select Face(s):")
bselected = False
for obj in bpy.data.objects:
- if obj.type == 'MESH' and obj.select is True:
+ if obj.type == 'MESH' and obj.select_get() is True:
smoothcount = 0
flatcount = 0
bpy.ops.object.mode_set(mode='OBJECT') # it need to go into object mode to able to select the faces
@@ -2066,7 +2066,7 @@ class OBJECT_OT_MeshClearWeights(Operator):
def invoke(self, context, event):
for obj in bpy.data.objects:
- if obj.type == 'MESH' and obj.select is True:
+ if obj.type == 'MESH' and obj.select_get() is True:
for vg in obj.vertex_groups:
obj.vertex_groups.remove(vg)
self.report({'INFO'}, "Mesh Vertex Groups Removed")
@@ -2200,7 +2200,7 @@ class OBJECT_OT_UTRebuildMesh(Operator):
bpy.ops.object.mode_set(mode='OBJECT')
for obj in bpy.data.objects:
- if obj.type == 'MESH' and obj.select is True:
+ if obj.type == 'MESH' and obj.select_get() is True:
rebuildmesh(obj)
self.report({'INFO'}, "Rebuild Mesh Finished!")
@@ -2273,7 +2273,7 @@ class OBJECT_OT_UTRebuildArmature(Operator):
print("Init Rebuild Armature...")
bselected = False
for obj in bpy.data.objects:
- if obj.type == 'ARMATURE' and obj.select is True:
+ if obj.type == 'ARMATURE' and obj.select_get() is True:
rebuildarmature(obj)
self.report({'INFO'}, "Rebuild Armature Finish!")
print("End of Rebuild Armature.")
@@ -2557,7 +2557,7 @@ class OBJECT_OT_UDKObjUpdate(Operator):
def udkcheckmeshline():
objmesh = None
for obj in bpy.context.scene.objects:
- if obj.type == 'MESH' and obj.select is True:
+ if obj.type == 'MESH' and obj.select_get() is True:
objmesh = obj
objmesh = triangulate_mesh(objmesh) # create a copy of the mesh
@@ -2659,7 +2659,7 @@ class OBJECT_OT_ActionSetAnimUpdate(Operator):
if objarm.type == 'ARMATURE':
# print("ADDED ARMATURE...")
armatures.append(objarm)
- if objarm.select is True:
+ if objarm.select_get() is True:
armatureselected.append(objarm)
if len(armatureselected) == len(armatures) == 1: