From b437b38b609f647ac8cbf0ae9e0137591864b90d Mon Sep 17 00:00:00 2001 From: Janik Eriksson Date: Sun, 13 Jun 2021 18:30:55 +0200 Subject: [PATCH] Fix feature location feature --- ui/scripts/AframeCanvasManipulator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/scripts/AframeCanvasManipulator.js b/ui/scripts/AframeCanvasManipulator.js index d4e55b89..343825c2 100644 --- a/ui/scripts/AframeCanvasManipulator.js +++ b/ui/scripts/AframeCanvasManipulator.js @@ -196,7 +196,7 @@ var canvasManipulator = (function () { if (!(entity === undefined)) { var component = document.getElementById(entity.id); } - if (component === undefined) { + if (component == undefined) { events.log.error.publish({text: "CanvasManipualtor - changeColorOfEntities - components for entityIds not found"}); return; } @@ -204,7 +204,7 @@ var canvasManipulator = (function () { entity.originalColor = component.getAttribute("color"); } entity.currentColor = color; - setColor(component, "red"); + setColor(component, color); } ); }