Skip to content

Instantly share code, notes, and snippets.

@itsanov
itsanov / fix_sketchup_wine.rb
Last active July 14, 2023 11:33 — forked from DSDev-NickHogle/fix_sketchup_wine.rb
Helps fix the one-frame delay problem when running Google Sketchup in Wine
# Fixes the view each time the view changes
require 'sketchup'
def refresh
UI.start_timer(0, false) {
Sketchup.active_model.active_view.invalidate.refresh
}
end