mirror of
https://github.com/godotengine/godot.git
synced 2025-03-01 23:21:39 +08:00
Merge pull request #980 from UsernameIsAReservedWord/fix-demo-3d-mousepick
fix demo 3d mousepick test
This commit is contained in:
commit
1664cd6710
@ -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