Takanu / Capsule

(Blender 4.1) Universal batch export manager
https://takanu.itch.io/capsule-blender-addon
GNU General Public License v3.0
200 stars 13 forks source link

NameError: name 'cursor' is not defined #64

Open Flynsarmy opened 1 month ago

Flynsarmy commented 1 month ago

Blender 4.2.2 LTS, Capsule 1.4.2.

When attempting to export a mesh I get the following error: File "C:\path\to\Capsule\tk_utils\record.py", line 357, in MuteArmatureConstraints object_transform.MoveBone(item, bone, context, entry['true_location']) File "C:\path\to\Capsule\tk_utils\object_transform.py", line 195, in MoveBone location_diff = copy_location - cursor.location ^^^^^^ NameError: name 'cursor' is not defined

Indeed upon loading the file in Visual Studio Code, I can see cursor isn't defined.

Looks like cursor.location just needs to be renamed to cursor_loc defined a few lines above.