diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-10-01 21:13:26 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-10-01 21:13:26 +0300 |
commit | ed161459d14a31fd237cd1f65a7070113ae3300f (patch) | |
tree | 375a2763bf4fa7135aa4e64c92fccaaa335a4034 /blenderkit | |
parent | 50c493fb22869e0e08936c4b7a44624887b1de58 (diff) |
Fix typos in source comments and descriptions
Patch contributed by luzpaz.
Differential Revision: https://developer.blender.org/D5800
Diffstat (limited to 'blenderkit')
-rw-r--r-- | blenderkit/download.py | 2 | ||||
-rw-r--r-- | blenderkit/paths.py | 2 | ||||
-rw-r--r-- | blenderkit/search.py | 7 | ||||
-rw-r--r-- | blenderkit/ui.py | 2 |
4 files changed, 6 insertions, 7 deletions
diff --git a/blenderkit/download.py b/blenderkit/download.py index cb00341c..b3ecbeab 100644 --- a/blenderkit/download.py +++ b/blenderkit/download.py @@ -869,7 +869,7 @@ class BlenderkitDownloadOperator(bpy.types.Operator): s = bpy.context.scene sr = s['search results'] - asset_data = sr[self.asset_index].to_dict() # TODO CHECK ALL OCCURANCES OF PASSING BLENDER ID PROPS TO THREADS! + asset_data = sr[self.asset_index].to_dict() # TODO CHECK ALL OCCURRENCES OF PASSING BLENDER ID PROPS TO THREADS! au = s.get('assets used') if au == None: s['assets used'] = {} diff --git a/blenderkit/paths.py b/blenderkit/paths.py index 3aa7aaa9..4a9a2cd6 100644 --- a/blenderkit/paths.py +++ b/blenderkit/paths.py @@ -164,7 +164,7 @@ def get_download_filenames(asset_data): file_names = [] # fn = asset_data['file_name'].replace('blend_', '') if asset_data.get('url') is not None: - # this means asset is already in scene and we don't nedd to check + # this means asset is already in scene and we don't need to check fn = extract_filename_from_url(asset_data['url']) fn.replace('_blend', '') diff --git a/blenderkit/search.py b/blenderkit/search.py index 83bdb2ec..8e0c0140 100644 --- a/blenderkit/search.py +++ b/blenderkit/search.py @@ -122,9 +122,8 @@ def timer_update(): # TODO might get moved to handle all blenderkit stuff. # causing a lot of throuble literally. if len(search_threads) == 0 or bpy.context.scene.blenderkitUI.dragging: return 1 - for thread in search_threads: # TODO this doesn't check all processess when one gets removed, but most time only - # one is running anyway - + for thread in search_threads: # TODO this doesn't check all processes when one gets removed, + # but most of the time only one is running anyway if not thread[0].is_alive(): print('parsing') search_threads.remove(thread) # @@ -808,7 +807,7 @@ class Searcher(threading.Thread): full_thbs = zip(thumb_full_filepaths, thumb_full_urls) # we save here because a missing thumbnail check is in the previous loop - # we can also prepend previous results. These have already thumbnails downloaded... + # we can also prepend previous results. These have downloaded thumbnails already... if params['get_next']: rdata['results'][0:0] = origdata['results'] diff --git a/blenderkit/ui.py b/blenderkit/ui.py index e35a9298..e4eea0c1 100644 --- a/blenderkit/ui.py +++ b/blenderkit/ui.py @@ -271,7 +271,7 @@ def draw_ratings_bgl(): ui_img_name = 'rating_ui.png' else: ui_img_name = 'rating_ui_empty.png' - text = 'Try to estimate how many hours it would take to a proffesional artist to create this asset:' + text = 'Try to estimate how many hours it would take for a professional artist to create this asset:' tx = ui.rating_x + ui.workhours_bar_x # draw_text_block(x=tx, y=ui.rating_y, width=80, font_size=20, line_height=15, text=text, color=colors.TEXT) |