Version Bump
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ def show_version_error_popup():
|
|||||||
def register():
|
def register():
|
||||||
import bpy
|
import bpy
|
||||||
version = bpy.app.version
|
version = bpy.app.version
|
||||||
if version[0] > 4 or (version[0] == 4 and version[1] >= 5):
|
if version[0] > 5 or (version[0] == 5 and version[1] >= 3):
|
||||||
show_version_error_popup()
|
show_version_error_popup()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -639,7 +639,6 @@ def duplicate_bone(bone: EditBone) -> EditBone:
|
|||||||
new_bone.use_connect = bone.use_connect
|
new_bone.use_connect = bone.use_connect
|
||||||
new_bone.use_local_location = bone.use_local_location
|
new_bone.use_local_location = bone.use_local_location
|
||||||
new_bone.use_inherit_rotation = bone.use_inherit_rotation
|
new_bone.use_inherit_rotation = bone.use_inherit_rotation
|
||||||
new_bone.use_inherit_scale = bone.use_inherit_scale
|
|
||||||
new_bone.use_deform = bone.use_deform
|
new_bone.use_deform = bone.use_deform
|
||||||
return new_bone
|
return new_bone
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,10 @@ class AvatarToolKit_OT_CreateDigitigradeLegs(Operator):
|
|||||||
bpy.ops.armature.select_all(action='DESELECT')
|
bpy.ops.armature.select_all(action='DESELECT')
|
||||||
|
|
||||||
# Create and position calf bone
|
# Create and position calf bone
|
||||||
|
prev_connect = digi1.use_connect
|
||||||
|
digi1.use_connect = False
|
||||||
calf = duplicate_bone(digi1)
|
calf = duplicate_bone(digi1)
|
||||||
|
digi1.use_connect = prev_connect
|
||||||
calf.name = digi1.name.split('.')[0]
|
calf.name = digi1.name.split('.')[0]
|
||||||
calf.parent = digi0
|
calf.parent = digi0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user