Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2021-05-27 18:26:34 +0300
committerBastien Montagne <bastien@blender.org>2021-05-27 18:26:34 +0300
commit73c752effe0d3ac18d50ec39a1431b5cb24cd5c2 (patch)
tree06761f2667d2f875d10ed0fff1af1bc7c20a2bda /render_povray/object_gui.py
parentea587cffd123977f5b94ed9cea9e81282b6c9b71 (diff)
Povray: Fix bunch of issues after recent refactor.
Those were breaking automated tests, since (un)registering was not working properly. Mainly: * Use `hasattr` instead of try/except when batch-assigning to a variable that does not always exist. * Fix some incorrect call to sub-`register()` from parent `unregister()` functions. * Remove double definition (in two different files) of World's pov textures.
Diffstat (limited to 'render_povray/object_gui.py')
-rwxr-xr-xrender_povray/object_gui.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/render_povray/object_gui.py b/render_povray/object_gui.py
index bc7df9f4..9fbf8a8b 100755
--- a/render_povray/object_gui.py
+++ b/render_povray/object_gui.py
@@ -34,11 +34,8 @@ from bl_ui import properties_data_modifier
for member in dir(properties_data_modifier):
subclass = getattr(properties_data_modifier, member)
- try:
+ if hasattr(subclass, "COMPAT_ENGINES"):
subclass.COMPAT_ENGINES.add('POVRAY_RENDER')
- except BaseException as e:
- print(e.__doc__)
- print('An exception occurred: {}'.format(e))
del properties_data_modifier