While running Zen Unwrap in Blender 5.0.0, the operator fails with an UnboundLocalError referencing the variable p_init_positions inside zen_unwraputils.py during the ci_sel_sel_only_face stage. The unwrap process stops immediately and throws a full traceback. It appears the variable is only conditionally created and is not initialized in certain mesh/selection states, causing the unwrap operator to crash.
What I was doing:
Blender 5.0.0
ZenUV latest version
Multiple objects selected in Edit Mode
Faces selected
UV Sync Selection may have been on
Triggered Zen Unwrap from the ZenUV panel
UVPackmaster 3 installed and visible but not directly involved
Immediately received the traceback and the unwrap did not execute
Observed Behavior:
Zen Unwrap crashes with the following ending line:
UnboundLocalError: cannot access local variable 'p_init_positions' where it is not associated with a value
Expected Behavior:
Zen Unwrap should initialize all required variables and continue the unwrap process without throwing an exception.
Additional Notes:
The crash seems related to a code path where p_init_positions is not instantiated before being used, likely when certain face selections or island conditions are met.
https://cdn.discordapp.com/attachments/1440448584154611893/1440448584486228009/image.png?ex=6949b348&is=694861c8&hm=d8ce87a62c88345dc48c6431a5285b6f43a91cfb46f86e86fb996715449f9b8c&
a
AlexZhornyak
11/19/2025, 7:46 AM
Thank you for the very detailed report. We will fix it in the nearest release
v
Valeriy Yatsenko
11/19/2025, 9:07 AM
Could you please provide me with the scene in the same state as it was at the moment the error occurred, so I can reproduce the issue on my side?
Also, please specify how the operator properties were configured and what exactly was selected before running Zen Unwrap.
e
Elijah
11/20/2025, 12:10 AM
Not a problem, one second
Elijah
11/25/2025, 2:26 PM
Sorry guys I got ocupied and couldnt repliate it again