Skip to content

Instantly share code, notes, and snippets.

@itsanov
itsanov / fix_sketchup_wine.rb
Last active May 21, 2024 00:56 — 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