Skip to content

Commit 2027efc

Browse files
committed
Update get_set_material.script
1 parent f1db1de commit 2027efc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gui/get_set_material/example/get_set_material.script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function init(self)
1010
end
1111

1212
function on_input(self, action_id, action)
13-
if action.pressed then
13+
if action_id == hash("mouse_button_left") and action.pressed then
1414
-- get the material file currently assigned to the material with id 'default'
1515
local current_texture = go.get("#gui", "materials", { key = "default" })
1616

0 commit comments

Comments
 (0)