Forum

Color picking is not available Error

10 February 2015 16:53
I am getting a strange error in the console everytime the cursor moves over the 3dcanvas element:
Color picking is not available b4w.full.min.js:231
a.error b4w.full.min.js:231
a.pick_object b4w.full.min.js:484
l b4w.full.min.js:1632

I haven't once touched the b4w.full.min.js file and I've torn through my code but I can't figure out what it is, is this be a bug?
10 February 2015 17:07
I am getting a strange error in the console everytime the cursor moves over the 3dcanvas element:

I suppose you are calling the pick_object function. If you have no objects with a selectable flag turned on, you won't be able to use colorpicking.

[EDIT]
Another option for such an error to occur is a call of mouse.enable_mouse_hover_glow when there are no selectable objects.
11 February 2015 09:17
Yep thats it, thank you!

My js file was calling mouse.enable_mouse_hover_glow without there being any selectable objects in my scene.
 
Please register or log in to leave a reply.