소스 검색

fix demo 3d mousepick test

add the missing camera parameter to the _input_event()
yg2f 10 년 전
부모
커밋
ef02ef2867
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      demos/3d/mousepick_test/mousepick.gd

+ 1 - 1
demos/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)