Skip to content

Commit

Permalink
Cosmetics.
Browse files Browse the repository at this point in the history
  • Loading branch information
muhuk committed Nov 23, 2020
1 parent c30d294 commit 0aeac7d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions meshstats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def register():

# Register Handlers
bpy.app.handlers.load_pre.append(mesh.app__load_pre_handler)
bpy.app.handlers.depsgraph_update_post.append(mesh.app__depsgraph_update_post)
bpy.app.handlers.depsgraph_update_post.append(
mesh.app__depsgraph_update_post
)
draw_handler = bpy.types.SpaceView3D.draw_handler_add(
overlay.draw_callback,
(),
Expand All @@ -85,7 +87,9 @@ def unregister():
# Unregister Handlers
bpy.types.SpaceView3D.draw_handler_remove(draw_handler, 'WINDOW')
bpy.app.handlers.load_pre.remove(mesh.app__load_pre_handler)
bpy.app.handlers.depsgraph_update_post.remove(mesh.app__depsgraph_update_post)
bpy.app.handlers.depsgraph_update_post.remove(
mesh.app__depsgraph_update_post
)

# Unregister UI
bpy.utils.unregister_class(ui.VIEW3D_PT_overlay_meshstats)
Expand Down

0 comments on commit 0aeac7d

Please sign in to comment.