mirror of
https://github.com/Relintai/godot-resources-as-sheets-plugin.git
synced 2024-11-10 10:12:08 +01:00
Enable resource_path in csv export
This commit is contained in:
parent
d6dd3fe489
commit
91b8459ad9
@ -148,7 +148,6 @@ func _on_import_edit_pressed():
|
||||
func _on_export_csv_pressed():
|
||||
hide()
|
||||
var exported_cols = editor_view.columns.duplicate()
|
||||
exported_cols.erase("resource_path")
|
||||
exported_cols.erase("resource_local_to_scene")
|
||||
for x in editor_view.hidden_columns[editor_view.current_path].keys():
|
||||
exported_cols.erase(x)
|
||||
|
@ -84,6 +84,10 @@ func string_to_property(string : String, col_index : int):
|
||||
|
||||
func property_to_string(value, col_index : int) -> String:
|
||||
if value == null: return ""
|
||||
if col_index == 0:
|
||||
if prop_names[col_index] == "resource_path":
|
||||
return value.get_file().get_basename()
|
||||
|
||||
if prop_types[col_index] is PoolStringArray:
|
||||
return TextEditingUtils.string_snake_to_naming_case(
|
||||
prop_types[col_index][value]
|
||||
|
Loading…
Reference in New Issue
Block a user