MCPcopy Create free account
hub / github.com/c3d/tao3D / preloadSelectionCode

Method preloadSelectionCode

tao/widget.cpp:4746–4765  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4744
4745
4746void Widget::preloadSelectionCode()
4747// ----------------------------------------------------------------------------
4748// Make sure that we compile the selection code before running
4749// ----------------------------------------------------------------------------
4750// This is mostly to avoid a pause the first time the user clicks
4751{
4752 // Make sure we compile the selection the first time
4753 static bool first = true;
4754 if (first)
4755 {
4756 XL::Symbols *s = XL::MAIN->globals;
4757 double x = 0;
4758 (XL::XLCall("draw_selection"), x,x,x,x).build(s);
4759 (XL::XLCall("draw_widget_selection"), x,x,x,x).build(s);
4760 (XL::XLCall("draw_3D_selection"), x,x,x,x,x,x).build(s);
4761 (XL::XLCall("draw_handle"), x, x, x).build(s);
4762 (XL::XLCall("draw_control_point_handle"), x, x, x).build(s);
4763 first = false;
4764 }
4765}
4766
4767
4768bool Widget::markChange(text reason)

Callers 1

loadFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected