IcterusGames / SimpleGrassTextured

Plugin to make grass on Godot 4
MIT License
170 stars 16 forks source link

Add support for saving and overwriting disk resources #13

Open jkulawik opened 6 months ago

jkulawik commented 6 months ago

The plugin seems to create a new shader material each time that a scene containing SimpleGrassTextured is opened. This is quite annoying because it generates VCS diffs all the time even when nothing was changed.

A similar issue happens with multimesh resources. If the resource is saved to disk (which is useful because it can improve load times for the scene), it gets overwritten each time that the grass is painted, creating a new embedded resource instead.

Both issues should be possible to fix by overwriting the loaded resource path (if one exists) instead of simply assigning a new one.