animate1978 / MB-Lab

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

Proxy Fitting bug #199

Closed animate1978 closed 4 years ago

animate1978 commented 4 years ago

Describe the bug This bug is calling for

algorithms.closest_point_on_triangle(vert_co, coords[0], coords[1], coords[2]),

Which does not exist?

To Reproduce Steps to reproduce the behavior:

  1. Create and finalize character
  2. Add an asset to the scene
  3. Go to Proxy Fitting tools
  4. Click Fit Proxy

Expected behavior With this new "feature" this is supposed to help with very tight mesh.

Screenshots proxy_bug_01

Additional context

Weird thing is that it's supposed to be there according to this commit -

https://github.com/animate1978/MB-Lab/commit/fe74931fc818e8f54d7a695c010124500f5f7564

I am not sure when something changed...

Logs `Traceback (most recent call last): File "/home/farishta/.config/blender/2.81/scripts/addons/MB-Lab/init.py", line 1661, in execute smoothing = not (advanced and scn.mblab_proxy_no_smoothing), File "/home/farishta/.config/blender/2.81/scripts/addons/MB-Lab/proxyengine.py", line 449, in fit_proxy_object self.fit_near_vertices(proxy,from_body,proxy_shapekey,to_body,proxy_threshold,all_faces) File "/home/farishta/.config/blender/2.81/scripts/addons/MB-Lab/proxyengine.py", line 365, in fit_near_vertices algorithms.closest_point_on_triangle(vert_co, coords[0], coords[1], coords[2]), AttributeError: module 'MB-Lab.algorithms' has no attribute 'closest_point_on_triangle'

location: :-1

location: :-1

`