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-25 06:59:16 +0300
committerNBurn <7nburn@gmail.com>2019-01-25 06:59:16 +0300
commitc686df25d98bc6a08ad02b9f4f9cff6b4aee4805 (patch)
tree2ddb8dd6ee0fc2bd546bb95691c07b906aeab1cf /object_skinify.py
parenta6189ebcbe0fcee59f72147fcc160f7b47234354 (diff)
addons: object select_set syntax update
Diffstat (limited to 'object_skinify.py')
-rw-r--r--object_skinify.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/object_skinify.py b/object_skinify.py
index 795492ad..19d93aab 100644
--- a/object_skinify.py
+++ b/object_skinify.py
@@ -576,7 +576,7 @@ def main(context):
oldRotation = None
oldScale = None
armature_object = scn.objects.active
- armature_object.select = True
+ armature_object.select_set(True)
old_pose_pos = armature_object.data.pose_position
bpy.ops.object.mode_set(mode='OBJECT')
@@ -620,20 +620,20 @@ def main(context):
if sknfy.apply_mod and sknfy.parent_armature:
bpy.ops.object.mode_set(mode='OBJECT')
bpy.ops.object.select_all(action='DESELECT')
- ob.select = True
- armature_object.select = True
+ ob.select_set(True)
+ armature_object.select_set(True)
scn.objects.active = armature_object
bpy.ops.object.parent_set(type='ARMATURE_AUTO')
armature_object.data.pose_position = old_pose_pos
- armature_object.select = False
+ armature_object.select_set(False)
else:
bpy.ops.object.mode_set(mode='OBJECT')
ob.location = oldLocation
ob.rotation_euler = oldRotation
ob.scale = oldScale
- ob.select = False
- armature_object.select = True
+ ob.select_set(False)
+ armature_object.select_set(True)
scn.objects.active = armature_object
armature_object.location = oldLocation