瀏覽代碼

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)