mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
rename String.extension() -> String.get_extension() / String.basename() -> String.get_basename()
This commit is contained in:
parent
f3b6177ece
commit
d9d77291bc
51 changed files with 113 additions and 113 deletions
|
|
@ -81,7 +81,7 @@ void SampleLibraryEditor::_file_load_request(const PoolVector<String>& p_path) {
|
|||
dialog->popup_centered_minsize();
|
||||
return; ///beh should show an error i guess
|
||||
}
|
||||
String basename = path.get_file().basename();
|
||||
String basename = path.get_file().get_basename();
|
||||
String name=basename;
|
||||
int counter=0;
|
||||
while(sample_library->has_sample(name)) {
|
||||
|
|
@ -376,7 +376,7 @@ void SampleLibraryEditor::drop_data_fw(const Point2& p_point,const Variant& p_da
|
|||
if (sample->get_name()!="") {
|
||||
basename=sample->get_name();
|
||||
} else if (sample->get_path().is_resource_file()) {
|
||||
basename = sample->get_path().basename();
|
||||
basename = sample->get_path().get_basename();
|
||||
} else {
|
||||
basename="Sample";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue