Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when enabling HDRI Handler if Label/Radius is being drawn #169

Closed
chenpaner opened this issue Apr 23, 2024 · 1 comment
Closed

Error when enabling HDRI Handler if Label/Radius is being drawn #169

chenpaner opened this issue Apr 23, 2024 · 1 comment
Labels

Comments

@chenpaner
Copy link

When I Turn on/off Gaffer's HORI handler,The console reports the error below
Traceback (most recent call last):
File "C:\Users\CP\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\Gaffer-trial\functions.py", line 618, in depsgraph_update_post_handler
refresh_light_list(scene)
File "C:\Users\CP\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\Gaffer-trial\functions.py", line 100, in wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\CP\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\Gaffer-trial\functions.py", line 309, in refresh_light_list
refresh_bgl() # update the radius/label as well
^^^^^^^^^^^^^
File "C:\Users\CP\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\Gaffer-trial\functions.py", line 731, in refresh_bgl
bpy.ops.gaffer.show_radius("INVOKE_DEFAULT")
File "G:\Blender Program\stable\blender-4.1\4.1\scripts\modules\bpy\ops.py", line 107, in call
ret = _op_call(self.idname_py(), kw, C_exec, C_undo)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Python: Traceback (most recent call last):
File "C:\Users\CP\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\Gaffer-trial\operators.py", line 1036, in invoke
elif context.area.type == "VIEW_3D":
^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'type'
G:\Blender Program\stable\blender-4.1\4.1\scripts\modules\bpy\ops.py:107

@gregzaal
Copy link
Owner

Thanks for the report, a fix will be available in 3.2.2 :)

@gregzaal gregzaal changed the title Can`t show radius Error when enabling HDRI Handler if Label/Radius is being drawn Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants