nutti / Magic-UV

Blender Add-on: Magic UV

Home Page:http://nutti.github.io/Magic-UV/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UV sculpt AttributeError: Vector subtraction: (NoneType - Vector) invalid type for this operation

Fak3 opened this issue · comments

System Information

  • OS: LInux
  • Blender version: 2.83
  • Add-on version: Git master

When i tried to sculpt UV in 3d view edit mode, it fails with error:

Traceback (most recent call last):
  File "/home/z/soft/blender-2.83-e8dd8c2829f3-linux64/2.83/scripts/addons/magic_uv/op/uv_sculpt.py", line 460, in modal
    self.__stroke_init(context, event)
  File "/home/z/soft/blender-2.83-e8dd8c2829f3-linux64/2.83/scripts/addons/magic_uv/op/uv_sculpt.py", line 269, in __stroke_init
    diff = loc_2d - self.__initial_mco
AttributeError: Vector subtraction: (NoneType - Vector) invalid type for this operation

location: <unknown location>:-1
commented

@Fak3

I could not reproduce this error.
Could you give me your detail situation?
I think this error depends on the mesh location and mouse cursor location.
Thanks.

Here is the blend file: https://drive.google.com/file/d/1U2MhaL0f6Ry6SB4c0YYDyIG00xbzk9qf/view?usp=sharing
How to reproduce (see screenshot):

  • Open the UV editing workspace
  • Select all faces
  • Enable UV sculpt in N-menu
  • Try to sculpt with it over the mesh

Screenshot_20200531_131601

commented

@Fak3

I could reproduce this issue.
Thanks to your cooperate, I could fix this issue (It is already in master branch).