animate1978 / MB-Lab

MB-Lab is a character creation tool for Blender 4.0 and above, based off ManuelBastioniLAB
Other
1.83k stars 315 forks source link

Small bug in file_ops.py #233

Closed TetoTheSquirrelFox closed 4 years ago

TetoTheSquirrelFox commented 4 years ago

Describe the bug A class method won't work as intended I think

To Reproduce Steps to reproduce the behavior: Open file_ops.py Method def json_booleans_to_python(value) (line 278)

Expected behavior When value is 0, return False, True otherwise.

Screenshots image

The bug itself I think that to work properly, the method should be:

def json_booleans_to_python(value):
    return value != 0

The method seems to be unused, but well...

animate1978 commented 4 years ago

I will look into it

animate1978 commented 4 years ago

I don't even think this is used anywhere in the code...

TetoTheSquirrelFox commented 4 years ago

I don't think so either. Just for the future if you need it.