Enable resource_path in csv export

This commit is contained in:
don-tnowe 2022-10-27 11:21:19 +03:00
parent d6dd3fe489
commit 91b8459ad9
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -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]