peter-kish / gloot

A universal inventory system for the Godot game engine.
MIT License
625 stars 28 forks source link

inventory_grid.set_item_rotation_direction fails with 'invalid call' #230

Closed jjcard closed 2 months ago

jjcard commented 2 months ago

function is

func set_item_rotation_direction(item: InventoryItem, positive: bool) -> void:
    _constraint_manager.set_item_rotation_direction(item, positive)

when it should be

func set_item_rotation_direction(item: InventoryItem, positive: bool) -> void:
    _constraint_manager.get_grid_constraint().set_item_rotation_direction(item, positive)
peter-kish commented 2 months ago

Should be fixed in v2.4.11