mirror of
https://github.com/godotengine/godot.git
synced 2024-09-20 22:42:43 +00:00
fix demo 3d mousepick test
add the missing camera parameter to the _input_event()
This commit is contained in:
parent
99cf6c0dc4
commit
ef02ef2867
|
@ -9,7 +9,7 @@ var gray_mat = FixedMaterial.new()
|
|||
|
||||
var selected=false
|
||||
|
||||
func _input_event(event,pos,normal,shape):
|
||||
func _input_event(camera,event,pos,normal,shape):
|
||||
if (event.type==InputEvent.MOUSE_BUTTON and event.pressed):
|
||||
if (not selected):
|
||||
get_node("mesh").set_material_override(gray_mat)
|
||||
|
|
Loading…
Reference in New Issue
Block a user