@lunkwill said:
I found a workaround to the refresh bug
All available workarounds for the refresh problem under wine seem to fail for me.
After a lot of frustration I have made this little ruby-script that seems to work for me
# wine-refresh.rb
#
# Copyright (C) 2012 Jan Brouwer <jan@brewsky.nl>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
module Brewsky
module WineRefresh
# This observer refreshes the view every time the selection is changed
class WrSelectionObserver < Sketchup;;SelectionObserver
def initialize
@view = Sketchup.active_model.active_view
end
def onSelectionBulkChange(selection)
@view.refresh
end
def onSelectionCleared(selection)
@view.refresh
end
end
# Attach the observer.
Sketchup.active_model.selection.add_observer(WrSelectionObserver.new)
end
end