From 85ae7cf172af342cc9cb4dc4dcf4c91d777c1b37 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Sat, 26 Dec 2020 11:37:36 -0500 Subject: [PATCH] differentiate hover / selected --- src/mode/cam/client.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mode/cam/client.js b/src/mode/cam/client.js index ede5e21d..e1212bf3 100644 --- a/src/mode/cam/client.js +++ b/src/mode/cam/client.js @@ -548,9 +548,9 @@ let color = material.color; let {r, g, b} = color; material.colorSave = {r, g, b}; - color.r = 1; + color.r = 0; color.g = 0; - color.b = 0; + color.b = 1; }; func.traceHoverUp = function(int) { if (!int) return; @@ -562,6 +562,9 @@ let { widget, poly } = obj.trace; let process = current.process; let areas = poppedRec.areas; + if (!areas) { + return; + } let wlist = areas[widget.id] = areas[widget.id] || []; obj.selected = !obj.selected; if (!colorSave) {