Cleanup: use common prefix for addons

This commit is contained in:
Campbell Barton 2017-07-25 01:42:10 +10:00
parent d1b57c76ad
commit 49230a4c12
18 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import bpy
# Utility function get preferences setting for exporters
def get_preferences():
# replace the key if the add-on name changes
addon = bpy.context.user_preferences.addons["stored_views"]
addon = bpy.context.user_preferences.addons[__package__]
show_warn = (addon.preferences.show_exporters if addon else False)
return show_warn

View File

@ -25,7 +25,7 @@ from bpy.types import (
def get_preferences_timer():
# replace the key if the add-on name changes
# TODO: expose refresh rate to ui???
addon = bpy.context.user_preferences.addons["stored_views"]
addon = bpy.context.user_preferences.addons[__package__]
timer_update = (addon.preferences.view_3d_update_rate if addon else False)
return timer_update