app/assets/javascripts/jax/shader_editor.js.coffee in jax-3.0.0.rc1 vs app/assets/javascripts/jax/shader_editor.js.coffee in jax-3.0.0.rc2

- old
+ new

@@ -8,15 +8,16 @@ @object = new Jax.Model mesh: new Jax.Mesh.Sphere, position: [0,0,-3] @world.addObject @object mouse_dragged: (m) -> @object.camera.pitch m.diffy * -0.01 @object.camera.yaw m.diffx * 0.01 - update: -> @object.mesh.material = @material + update: -> + @object.mesh.material = @material if @material canvas = $("#preview")[0] canvas.context = new Jax.Context canvas, root:"jax_suite" -controller = -> $("#preview")[0].context.current_controller +controller = -> $("#preview")[0].context.controller material = (name) -> div link(name, -> controller().material = name false