Page MenuHome

Magic UV: Texture Lock error when sliding vertex along line
Open, Confirmed, MediumPublic

Description

System Information
Operating system: Windows 10
Graphics card: NVIDIA RTX 2080

Blender Version
Broken: 2.79b release

Short description of error

Using Magic UV addon, After a fresh install of release version. Error when sliding vertex encounters another vertex after selecting "Lock" Texture, or after selecting live unwrap lock.

Exact steps for others to reproduce the error

Using start-up file, subdivide cube twice, and UV unwrap. In cycles, add texture image node (I used a texture .jpg), attached to a BSDF Principled shader, with output to material. I note that there is no Magic UV tab in the sidebar as pictured in tutorials (maybe this is relevant?), so I use the "Texture Lock" option in the uv menu (pressing "u"). After selecting a vertex, I chose "start" to enable texture lock, then slide the vertex along a line (double-tap g key). When the vertex reaches another vertex at the end of the line, an error occurs. This also occurs while using the "interactive" start as well. The error message in the top bar reads:

**Traceback (most recent call last):

File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\uv_magic_uv\muv_texlock_ops.py", line 259, in execute
  ini_geom = get_ini_geom(ll, uv_layer, verts_orig, v_orig)
File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\uv_magic_uv\muv_texlock_ops.py", line 97, in get_ini_geom
  phi0 = u0u1.angle(u0u)

ValueError: Vector.angle(other): zero length vectors have no valid angle**

location: <unknown location>:-1

Details

Type
Bug

Event Timeline

Philipp Oeser (lichtwerk) triaged this task as Confirmed, Medium priority.

Can confirm [error still present in 2.8]