Skip to content

Instantly share code, notes, and snippets.

@stroncium
stroncium / fix_sketchup_wine.rb
Created October 7, 2021 11:06 — forked from itsanov/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