HugoTini / DeepBump

Normal & height maps generation from single pictures
https://hugotini.github.io/deepbump
GNU General Public License v3.0
1.02k stars 36 forks source link

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

Open crenshawda opened 6 months ago

crenshawda commented 6 months ago

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