fix images of save files being saved by the editor
This commit is contained in:
parent
7faa6e0a8f
commit
7d0c8a70ad
|
|
@ -11,10 +11,9 @@ class_name SaveGame extends Resource
|
||||||
|
|
||||||
@export var is_save_file_valid: bool = false
|
@export var is_save_file_valid: bool = false
|
||||||
|
|
||||||
# FIXME: for some reason this does not prevent the property from being saved.
|
|
||||||
func _validate_property(property: Dictionary):
|
func _validate_property(property: Dictionary):
|
||||||
if property.name == "thumbnail":
|
if property.name == "thumbnail":
|
||||||
property.usage != PROPERTY_USAGE_STORAGE
|
property.usage = not PROPERTY_USAGE_STORAGE
|
||||||
|
|
||||||
|
|
||||||
func _init(filepath = "") -> void:
|
func _init(filepath = "") -> void:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue