Bug #1195

NoneType stacktrace when using expressions

Added by Joel Palmius over 1 year ago.

Status:NewStart date:07/15/2017
Priority:NormalDue date:
Assignee:Joel Palmius% Done:

0%

Category:Code correctness
Target version:MakeHuman 1.1.2

Description

From http://www.makehumancommunity.org/forum/viewtopic.php?f=3&t=14624

Exception during event onHumanChanged
Traceback (most recent call last):
  File "core\events3d.py", line 211, in callEvent
  File "plugins/3_libraries_pose.py", line 239, in onHumanChanged
    self.autoScaleAnim(anim)
  File "plugins/3_libraries_pose.py", line 204, in autoScaleAnim
    scale_factor = float(bone.length) / self.bvh_bone_length
TypeError: unsupported operand type(s) for /: 'float' and 'NoneType'

... although the crash seems to happen in another plugin (3_libraries_pose.py). One would have assumed 2_posing_expression.py or 7_expression_mixer.py if the problem were with the expressions per se.

Also available in: Atom