You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Expose 'Reimport' on right-click context menu in the FileSystem panel
This commit is contained in:
@@ -316,6 +316,21 @@ void ImportDock::set_edit_multiple_paths(const Vector<String> &p_paths) {
|
||||
}
|
||||
}
|
||||
|
||||
void ImportDock::reimport_resources(const Vector<String> &p_paths) {
|
||||
switch (p_paths.size()) {
|
||||
case 0:
|
||||
ERR_FAIL_MSG("You need to select files to reimport them.");
|
||||
case 1:
|
||||
set_edit_path(p_paths[0]);
|
||||
break;
|
||||
default:
|
||||
set_edit_multiple_paths(p_paths);
|
||||
break;
|
||||
}
|
||||
|
||||
_reimport_attempt();
|
||||
}
|
||||
|
||||
void ImportDock::_update_preset_menu() {
|
||||
preset->get_popup()->clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user