Workaround for "selectSelectionTool" Mac bug?
-
Hi all,
I'm using SU 8 on Mac and I've noticed that when I do
Sketchup.send_action "selectSelectionTool;"
The selected tool in the floating SketchUp toolbar changes, but the one at the top of the model window does not.
In the above screenshot, you can see that the floating toolbar (left) has the selection tool, but the selected tool in the window toolbar (right) is still Rectangle. I can even click back and forth on the tools in the floating toolbar and the selected tool in the window bar doesn't change! (Until I "fix it" by selected a tool from that toolbar...)
Any ideas for a workaround?
Thanks,
J
-
Well this should also work for ONLY the selectionTool
Sketchup.active_model.select_tool(nil)
@unknownuser said:
](https://developers.google.com/sketchup/docs/ourdoc/model#select_tool)":74a4ir3l]
The select tool is returned if you pass
nil
to theselect_tool
method.Try that and report back. (I know it's not a fix for any tool )
-
@dan rathbun said:
Well this should also work for ONLY the selectionTool
Sketchup.active_model.select_tool(nil)
Nope, same results. In the model window toolbar, the original tool stays visually selected even though the actual tool is now the selection tool (and the floating toolbar shows the selection tool is selected).
It's some sort of refresh bug, annoying but doesn't hamper functionality...just afraid it'll confuse users that the cursor is now the selection tool even though that toolbar says otherwise.
-
@jasef said:
It's some sort of refresh bug, ...
try calling
UI.refresh_inspectors()
just after changing the tool ?The API docs say that if a model undo operation has disabled UI updates, then you can force a single UI update with this method.
-
Still no luck. And I just confirmed it's Mac-only, the toolbar refreshes correctly on Win...
-
Howdy from Boulder,
I do not see a bug in our database for this issue. I'll log a bug for you guys.
Take care.
Advertisement