Skip to content

AttributeError: 'Context' object has no attribute 'active_node'. Did you mean: 'active_bone'? #35

@crenshawda

Description

@crenshawda

When I activate discombobulator on just a regular, stock cube object and execute it (I don't think this is specific to that operator, it's just where I noticed it and what I use to reproduce it), DeepBump give me this error in the logs:

Python: Traceback (most recent call last):
  File "{BLENDER_PATH}\blender-4.0.2-windows-x64\4.0\scripts\addons\DeepBump-7\__init__.py", line 133, in poll
    if context.active_node is not None :
AttributeError: 'Context' object has no attribute 'active_node'. Did you mean: 'active_bone'?

It's actually at lines 133, 211, 277 in the DeepBump init.py file, everywhere a classmethod checks for None on the active_node attribute on the context. I'm not quite certain why the context doesn't have it in this case or I would have just fixed it and submitted a PR for this instead.

OS: Windows 10
Blender Version: 4.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions