DeepBump icon indicating copy to clipboard operation
DeepBump copied to clipboard

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

Open crenshawda opened this issue 1 year ago • 0 comments

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

crenshawda avatar Dec 23 '23 16:12 crenshawda