File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/blenderbim/blenderbim/bim Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -219,8 +219,8 @@ def register():
219219
220220 wm = bpy .context .window_manager
221221 if wm .keyconfigs .addon :
222- km = wm .keyconfigs .addon .keymaps .new (name = ' Window' , space_type = ' EMPTY' )
223- kmi = km .keymap_items .new (' bim.switch_tab' , ' TAB' , ' PRESS' , ctrl = True )
222+ km = wm .keyconfigs .addon .keymaps .new (name = " Window" , space_type = " EMPTY" )
223+ kmi = km .keymap_items .new (" bim.switch_tab" , " TAB" , " PRESS" , ctrl = True )
224224 addon_keymaps .append ((km , kmi ))
225225
226226 global icons
@@ -238,12 +238,14 @@ def register():
238238 global last_commit_hash
239239 try :
240240 import git
241+
241242 path = Path (__file__ ).resolve ().parent
242243 repo = git .Repo (str (path ), search_parent_directories = True )
243244 last_commit_hash = repo .head .object .hexsha
244245 except :
245246 pass
246247
248+
247249def unregister ():
248250 global icons
249251
You can’t perform that action at this time.
0 commit comments