planetis-m / naylib

Yet another raylib Nim wrapper
MIT License
209 stars 11 forks source link

texture= setter doesn't work with complex expressions. #117

Closed planetis-m closed 4 months ago

planetis-m commented 4 months ago

This will break any texture manager implementation.

var t: Table[int, Texture]
model.materials[0].maps[MaterialMapIndex.Diffuse].texture = t[0] # Doesn't compile

Imo, lvalue is a better fit for this problem, but all textures should now be declared as var.