Skip to content

[BUG] Calculate Path of Collection error when no curve object is selected #246

@vukhanhtrung

Description

@vukhanhtrung

Describe the Bug
As stated.

To Reproduce
Steps to reproduce the behavior:

  1. create operation with Collection source
  2. Set it to pocket strategy
  3. Deselect everything
  4. Click calculate path

Expected Behavior
Path get calculated

System Information:

  • OS: Arch
  • Blender Version: 4.4.3
  • Addon Version: 1.0.66

Error Message:
Copy and Paste the text of the error message here, it helps us to fix the bug faster.

Additional context

Can be fixed some what by adding code to select object in collection in the async def _calc_path(operator, context) function of path_ops.py.

    if o.geometry_source == "COLLECTION":
        obc = bpy.data.collections[o.collection_name]
        for ob in obc.objects:
            ob.hide_set(False)
            ob.select_set(True)
            bpy.context.view_layer.objects.active = ob

I don't know if it's the ideal fix. I also don't know how to contribute with github.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions