Portponky / better-terrain

Terrain plugin for Godot 4
The Unlicense
433 stars 21 forks source link

Question: Where is the data persisted? #83

Closed arran-nz closed 2 months ago

arran-nz commented 2 months ago

Thanks for the incredible addon!

I'm making changes to a Terrain, updating peering bits etc and I don't see any changes in the git diff.

Here is my .gitignore

.mono/
data_*/
mono_crash.*.json

build/
.godot/editor
.godot/exported

Where is the data saved and, or, should I update my .gitignore?

Thanks!

Portponky commented 2 months ago

The better terrain data is stored as metadata inside the tileset. If you have the tileset in a scene, it will be in the scene's .tscn file. If you have the tileset as a separate resource, it'll be in that .tres file. Sometimes the engine is a little bit lazy with saving resource changes, so if you have the tileset as a separate resource, you might need to manually save it from the drop down menu with the resource in the object inspector.

arran-nz commented 2 months ago

Thank you @Portponky, that was it! Really appreciate the help, sorry it was so trivial in this case

Portponky commented 2 months ago

Not a problem. Glad you are finding the plugin useful.