You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.
Describe the bug
When user wants to use IK kinematics, the poses don't work properly after character creation.
The case is expected but doesn't work properly, user should not be able to choose a pose, and he can actually. With MB-Lab-dev version at least.
Where is the problem + Screenshot
The guilty is function is_"ik_armature(armature=None)" in utils.py.
We can see that if armature != None, function always return false...
Commit by a screenshot
Commit in code
def is_ik_armature(armature=None):
if not armature:
armature = get_active_armature()
if armature and armature.type == 'ARMATURE':
for b in armature.data.bones:
if 'IK' in b.name:
return True
elif armature and armature.type != 'ARMATURE':
logger.warning("Cannot get the bones because the obj is not an armature")
return False
return False
See ya' ^^
(by the way, if someone can explain to me how to format correctly a code to allow it to be copy/pasted directly... On to pull requests maybe? I really don't know how to do that)
The text was updated successfully, but these errors were encountered:
Let's try...
edit : much better... thanks for the help !
defis_ik_armature(armature=None):
ifnotarmature:
armature=get_active_armature()
ifarmatureandarmature.type=='ARMATURE':
forbinarmature.data.bones:
if'IK'inb.name:
returnTrueelifarmatureandarmature.type!='ARMATURE':
logger.warning("Cannot get the bones because the obj is not an armature")
returnFalsereturnFalse
- Skin Shader now uses Principled BSDF
- Modified Albedo maps
- Bump maps now 4k resolution
- Sebum map are now more detailed
- Modified Freckle masks
- Dev version upgraded to 1.7.8
- Slight GUI change to Assets and Hair tab
- Modified Material Engine
- Fixed typos in JSON for Typo: Hands_Lenght #224
- Pose bug fixed when IK Kinematics chosen #222
- Bug fixed in function generate_parameter #221
Describe the bug
When user wants to use IK kinematics, the poses don't work properly after character creation.
The case is expected but doesn't work properly, user should not be able to choose a pose, and he can actually. With MB-Lab-dev version at least.
Where is the problem + Screenshot
The guilty is function is_"ik_armature(armature=None)" in utils.py.
We can see that if armature != None, function always return false...
Commit by a screenshot
Commit in code
def is_ik_armature(armature=None):
if not armature:
armature = get_active_armature()
if armature and armature.type == 'ARMATURE':
for b in armature.data.bones:
if 'IK' in b.name:
return True
elif armature and armature.type != 'ARMATURE':
logger.warning("Cannot get the bones because the obj is not an armature")
return False
return False
See ya' ^^
(by the way, if someone can explain to me how to format correctly a code to allow it to be copy/pasted directly... On to pull requests maybe? I really don't know how to do that)
The text was updated successfully, but these errors were encountered: