the3dadvantage/Modeling-Cloth

Blender 2.79, MacOS: Select Pins in Edit mode causes error

Opened this issue · 0 comments

I just downloaded the latest version (28-jan) of the addon.

When clicking "Select Pins" while in edit mode, the following error is thrown:

Traceback (most recent call last):
  File "/Users/robw/Library/Application Support/Blender/2.79/scripts/addons/Modeling-Cloth-master/ModelingCloth.py", line 1295, in execute
    bpy.ops.object.select_all(action='DESELECT')
  File "/private/var/folders/41/lg3yp2gn7652vfg5m5fmg0dr0000gn/T/AppTranslocation/F8C9C582-44C4-42E7-9FC0-24E7FA27D743/d/blender-2.79.0.app/Contents/Resources/2.79/scripts/modules/bpy/ops.py", line 189, in __call__
    ret = op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.object.select_all.poll() failed, context is incorrect

location: <unknown location>:-1

Clicking the Select Pins button in Object mode works fine.

To reproduce on Blender 2.79: take default cube, mark as Modeling Cloth, hit TAB to go to edit mode, click "Select Pins".
I cannot produce on the daily build (MacOS, 2.79.2), as the addon doesn't seem to work at all in that version.