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:
Diffstat (limited to 'render_copy_settings/__init__.py')
-rw-r--r--render_copy_settings/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/render_copy_settings/__init__.py b/render_copy_settings/__init__.py
index 62b0ab30..42003048 100644
--- a/render_copy_settings/__init__.py
+++ b/render_copy_settings/__init__.py
@@ -90,7 +90,8 @@ def register():
bpy.types.Scene.render_copy_settings = PointerProperty(type=RenderCopySettings)
bpy.utils.register_module(__name__)
- bpy.app.translations.register(__name__, translations.translations_dict)
+ if hasattr(bpy.app, "translations"):
+ bpy.app.translations.register(__name__, translations.translations_dict)
def unregister():
@@ -101,7 +102,8 @@ def unregister():
del bpy.types.Scene.render_copy_settings
bpy.utils.unregister_module(__name__)
- bpy.app.translations.unregister(__name__)
+ if hasattr(bpy.app, "translations"):
+ bpy.app.translations.unregister(__name__)
if __name__ == "__main__":