Skip to content

Instantly share code, notes, and snippets.

@stombi
stombi / fix_sketchup_wine.rb
Created August 18, 2021 15:30 — 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