diff --git a/editor/js/ui/utils.js b/editor/js/ui/utils.js index 13d27d5bd..8e6654a7a 100644 --- a/editor/js/ui/utils.js +++ b/editor/js/ui/utils.js @@ -800,8 +800,9 @@ RED.utils = (function() { var paletteTheme = RED.settings.theme('palette.theme') || []; if (paletteTheme.length > 0) { if (!nodeColorCache.hasOwnProperty(type)) { + nodeColorCache[type] = def.color; var l = paletteTheme.length; - for (var i=0;i