Describe the bugSSReaPeR 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:
Tick Snap to pixels checkbox in the UV Settings.
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):
OS - Any
Blender Version >= 2.83
BakeMaster Version - 2.6.0 and 2.6.1
Additional context
I quickly reviewed operator_bake.py to ensure there were no other mistakes like this one.
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 thatuv_snap_to_pixels
function call had undefinedres_x
andres_y
args. It occurred sinceBakeMaster-2.6.0
when #67 was implemented.To Reproduce Steps to reproduce the behavior:
Snap to pixels
checkbox in the UV Settings.Expected behavior Restore
res_x
andres_y
definitions to makeuv_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.