Improved online performance for canvases with many components
This commit is contained in:
parent
8a36bc4b6d
commit
b6a25280e6
16 changed files with 406 additions and 183 deletions
|
|
@ -35,13 +35,11 @@ void RectSelectTool::gui_toolbox() {
|
|||
void RectSelectTool::reset_tool() {
|
||||
drawP.selection.deselect_all();
|
||||
controls = RectSelectControls();
|
||||
drawP.compCache.disableRefresh = false;
|
||||
}
|
||||
|
||||
void RectSelectTool::tool_update() {
|
||||
switch(controls.selectionMode) {
|
||||
case 0: {
|
||||
drawP.compCache.disableRefresh = false;
|
||||
if(drawP.controls.leftClick) {
|
||||
if(drawP.selection.is_something_selected()) {
|
||||
if(!drawP.selection.mouse_collided_with_selection())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue