texture_builder + growing sprites

This commit is contained in:
Altaezio
2026-02-13 16:49:14 +01:00
parent e6d34a50a5
commit e305e3213d
10 changed files with 239 additions and 218 deletions

View File

@@ -76,7 +76,8 @@ func save_as_resource():
var plant_part = PlantPart.new()
plant_part.init(texture, root.position, attaches_vec2, bottom_attaches_vec2, type, is_back, base_attachable, bottom_attachable, branch_attachable)
plant_part.take_over_path(destination)
var err := ResourceSaver.save(plant_part, destination)
if err != OK:
printerr("Error saving resource: ", error_string(err))
else:
plant_part.take_over_path(destination)