dfki-ric / phobos

An add-on for Blender allowing to create URDF, SDF and SMURF robot models in a WYSIWYG environment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[pre_v2.0.0] Create links don't work for Location: Selected Objects

brothermechanic opened this issue · comments

Describe the bug
Create links work only for Location: 3d Cursor
Create links don't work for Location: Selected Objects

To Reproduce
Steps to reproduce the behavior:

  1. Run bpy.ops.phobos.create_links() ("Create Links")
  2. Select location as Selected Objects
  3. See error
Error: Python: Traceback (most recent call last):
  File "~/.config/blender/3.5/scripts/addons/phobos/blender/operators/editing.py", line 1972, in execute
    modellinks.deriveLinkfromObject(
  File "~/.config/blender/3.5/scripts/addons/phobos/blender/model/links.py", line 70, in deriveLinkfromObject
    link = createLink({'scale': scale, 'name': linkname, 'matrix': obj.matrix_world})
NameError: name 'createLink' is not defined

Expected behavior
In Phobos v1 it works

Desktop:

  • OS: Gentoo
  • Version: ~amd64

Thanks for the report, this should be fixed. Please test and reopen if the issue reoccurs