diff --git a/js/outliner/cube.js b/js/outliner/cube.js index 126b2b93..6f572e15 100644 --- a/js/outliner/cube.js +++ b/js/outliner/cube.js @@ -73,7 +73,7 @@ class Cube extends OutlinerElement { this.to = [size, size, size]; this.shade = true; this.mirror_uv = false; - this.color = Math.floor(Math.random()*8) + this.color = Math.floor(Math.random()*markerColors.length) this.uv_offset = [0,0] this.inflate = 0; this.rotation = [0, 0, 0]; diff --git a/js/outliner/mesh.js b/js/outliner/mesh.js index a1c3cdbb..6b8f0600 100644 --- a/js/outliner/mesh.js +++ b/js/outliner/mesh.js @@ -729,7 +729,7 @@ class Mesh extends OutlinerElement { ]; new Property(Mesh, 'string', 'name', {default: 'mesh'}) -new Property(Mesh, 'number', 'color', {default: Math.floor(Math.random()*8)}); +new Property(Mesh, 'number', 'color', {default: Math.floor(Math.random()*markerColors.length)}); new Property(Mesh, 'vector', 'origin'); new Property(Mesh, 'vector', 'rotation'); new Property(Mesh, 'boolean', 'visibility', {default: true});