Browse Source

fix demo 3d mousepick test

add the missing camera parameter to the _input_event()
yg2f 10 years ago
parent
commit
4521b6b879
1 changed files with 1 additions and 1 deletions
  1. 1 1
      3d/mousepick_test/mousepick.gd

+ 1 - 1
3d/mousepick_test/mousepick.gd

@@ -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)