KirilStrezikozin / BakeMaster-Blender-Addon

Welcome to BakeMaster, a powerful and feature-packed baking solution created for Blender - an open-source 3D Computer graphics software.
Other
34 stars 6 forks source link

BUG: Snap UV to pixels doesn't work (res_x undefined) #83

Closed KirilStrezikozin closed 5 months ago

KirilStrezikozin commented 5 months ago

This bug report is:

Describe the bug SSReaPeR and bvby0708 both reported that some bakes resulted in a Code Execution Error: name 'res_x' is not defined. My inspection revealed that uv_snap_to_pixels function call had undefined res_x and res_y args. It occurred since BakeMaster-2.6.0 when #67 was implemented.

To Reproduce Steps to reproduce the behavior:

  1. Tick Snap to pixels checkbox in the UV Settings.
  2. See that bake fails with a code execution error.

Expected behavior Restore res_x and res_y definitions to make uv_snap_to_pixels function work.

Screenshots Not relevant for now.

Desktop (please complete the following information):

Additional context I quickly reviewed operator_bake.py to ensure there were no other mistakes like this one.

KirilStrezikozin commented 5 months ago

No migration is needed since this only covers changes in operator_bake.py