godot/editor
Ryan Roden-Corrent d3684e662f
Don't strip whitespace when converting 3to4.
Fixes #74204.

The style guide says

> Always use one space around operators and after commas

The 3to4 conversion tool currently strips space in certain scenarios.
I've updated it to add space whenever it is generating new code.
In any case where it substitutes existing code, it leaves it as-is.

For example, connect(a,b,c) becomes `connect(a, callable(b, c))`, because the converter is adding new commads/parens.

However, `xform(Vector3(a,b,c))` becomes `Transform * Vector3(a,b,c)` because it uses the user's original Vector3 string whole. If the user originally had `xform(Vector3(a, b, c))`, then it becomes `Transform * Vector3(a, b, c)`.

Ideally we'd always preserve original formatting, but this seems quite difficult, so I tried to preserve it where we can, but air on the side of following the style guide whenever we're transforming code.
2023-03-02 18:00:19 -05:00
..
debugger Improvements and fixes based on Weblate comments 2023-02-13 15:22:18 +08:00
export Merge pull request #73365 from bruvzg/no_transient_children 2023-03-02 11:41:17 +01:00
fileserver One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
icons Add a custom icon for the project.godot file in the EditorFileDialog 2023-02-17 22:42:23 +01:00
import Fix a crash in the GLB importer 2023-02-27 17:24:03 +01:00
plugins Merge pull request #74039 from daBlesr/tilemap-remember-previosuly-selected-tile 2023-03-02 11:41:48 +01:00
translations i18n: Sync translations with Weblate 2023-03-01 00:11:39 +01:00
action_map_editor.cpp Merge pull request #71322 from EricEzaM/55856-proj-settings-initial-array-dict-shared-instance 2023-02-01 07:29:44 +01:00
action_map_editor.h Fix Project Settings array/dicts initial value being shared instances of the current value. 2023-01-13 21:48:43 +10:00
animation_bezier_editor.cpp Add gesture to ViewPanner and simplify a bit its API 2023-01-23 16:43:53 +01:00
animation_bezier_editor.h Add gesture to ViewPanner and simplify a bit its API 2023-01-23 16:43:53 +01:00
animation_track_editor_plugins.cpp Fix display for no-length audio stream keys 2023-02-15 17:00:31 +09:00
animation_track_editor_plugins.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
animation_track_editor.cpp Merge pull request #73195 from timothyqiu/weblate-comments 2023-02-17 09:55:39 +01:00
animation_track_editor.h Fix weird bezier edit button update timing in AnimationTrackEditor 2023-02-11 20:48:18 +09:00
audio_stream_preview.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
audio_stream_preview.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
code_editor.cpp Fix toggle comment not moving caret 2023-02-16 16:17:24 +02:00
code_editor.h Rework code editor multiline operations 2023-02-12 20:53:49 +02:00
connections_dialog.cpp Improve Connect Dialog navigation 2023-02-06 22:56:41 +01:00
connections_dialog.h Improve Connect Dialog navigation 2023-02-06 22:56:41 +01:00
create_dialog.cpp Fix filtering editor nodes in Create Dialog 2023-01-27 12:26:26 +01:00
create_dialog.h Fix filtering editor nodes in Create Dialog 2023-01-27 12:26:26 +01:00
dependency_editor.cpp Add handling of script creation/deletion for custom visual shader nodes 2023-01-23 15:30:17 +03:00
dependency_editor.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
doc_tools.cpp GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
doc_tools.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_about.cpp Fix UTF-8 encoding for copyright in About dialog 2023-01-08 16:15:26 +01:00
editor_about.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_asset_installer.cpp Removed unused property hints and Object::get_translatable_strings() 2023-01-09 16:56:01 +01:00
editor_asset_installer.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_atlas_packer.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_atlas_packer.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_audio_buses.cpp Merge pull request #68083 from atngames/master 2023-02-17 09:50:01 +01:00
editor_audio_buses.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_autoload_settings.cpp Add some missing translatable editor strings 2023-02-10 16:55:50 +08:00
editor_autoload_settings.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_build_profile.cpp Remove path hard-coding in editor_build_profile 2023-02-19 20:58:36 +01:00
editor_build_profile.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_builders.py Prepare for moving editor and classref translations to godot-editor-l10n repo 2023-02-07 14:20:40 +01:00
editor_command_palette.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_command_palette.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_data.cpp Cleanup unused engine code v2 2023-01-19 13:02:18 +01:00
editor_data.h Merge pull request #57606 from SaracenOne/update_on_reimport 2023-01-23 15:35:44 +01:00
editor_dir_dialog.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_dir_dialog.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_feature_profile.cpp Clean-up, harmonize, and improve StyleBox API 2023-01-19 20:02:21 +03:00
editor_feature_profile.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_file_dialog.cpp Add some missing EditorFileDialog methods and properties. 2023-02-22 11:55:08 +02:00
editor_file_dialog.h Add some missing EditorFileDialog methods and properties. 2023-02-22 11:55:08 +02:00
editor_file_system.cpp Merge pull request #71850 from WesleyElliott/fix-custom-node-export 2023-02-18 12:40:09 +03:00
editor_file_system.h Use reimport_append api for importing embedded gltf images 2023-02-06 07:11:45 -08:00
editor_folding.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_folding.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_fonts.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_fonts.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_help_search.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_help_search.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_help.cpp Merge pull request #67707 from Cykyrios/hide-private-prop-description-in-classdoc 2023-02-14 11:03:50 +01:00
editor_help.h Make EditorHelp respect font size settings 2023-02-11 20:09:57 +01:00
editor_inspector.cpp Apply inspector read_only only when changed 2023-02-20 09:55:06 +01:00
editor_inspector.h Merge pull request #66121 from Zylann/plugin_handles_edit_object_argument 2023-02-17 15:19:12 +01:00
editor_layouts_dialog.cpp Improve editor layout dialog 2023-02-02 01:29:40 +01:00
editor_layouts_dialog.h Improve editor layout dialog 2023-02-02 01:29:40 +01:00
editor_locale_dialog.cpp Add some missing translatable editor strings 2023-02-10 16:55:50 +08:00
editor_locale_dialog.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_log.cpp Remove some unused signals 2023-01-31 18:54:04 +01:00
editor_log.h Remove some unused signals 2023-01-31 18:54:04 +01:00
editor_native_shader_source_visualizer.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_native_shader_source_visualizer.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_node.cpp Merge pull request #73365 from bruvzg/no_transient_children 2023-03-02 11:41:17 +01:00
editor_node.h Merge pull request #73365 from bruvzg/no_transient_children 2023-03-02 11:41:17 +01:00
editor_path.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_path.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_paths.cpp Fix missing directories when exporting from cmd 2023-02-20 17:39:38 +01:00
editor_paths.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_plugin_settings.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_plugin_settings.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_plugin.cpp Automatically reparent editor message dialogs to avoid error spam. 2023-02-21 12:32:11 +02:00
editor_plugin.h Change _can_handle and _edit virtual methods to take Object* 2023-02-17 14:10:38 +01:00
editor_properties_array_dict.cpp Merge pull request #71740 from Jummit/dict-array-missing-types 2023-02-11 22:04:02 +01:00
editor_properties_array_dict.h GDScript: Fix issues with typed arrays 2023-01-31 11:54:41 +02:00
editor_properties.cpp Merge pull request #73381 from KoBeWi/works_better_than_expected_huh 2023-02-17 16:25:18 +03:00
editor_properties.h Use PropertyUsageFlags enum in parse_property 2023-01-31 23:31:15 +01:00
editor_property_name_processor.cpp Add more property capitalizations 2023-02-12 15:25:39 +08:00
editor_property_name_processor.h Prepare for moving editor and classref translations to godot-editor-l10n repo 2023-02-07 14:20:40 +01:00
editor_quick_open.cpp Support script global resource name in EditorFileSystem 2023-01-21 14:19:27 +01:00
editor_quick_open.h Support script global resource name in EditorFileSystem 2023-01-21 14:19:27 +01:00
editor_resource_picker.cpp Merge pull request #71686 from YuriSizov/stylebox-min-size-but-better 2023-01-22 17:53:04 +01:00
editor_resource_picker.h Implement a quick script inheritance check 2023-01-19 16:47:01 +01:00
editor_resource_preview.cpp Fix editor resource preview deadlocking with --headless mode 2023-02-23 20:57:19 +00:00
editor_resource_preview.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_run_native.cpp Disable remote debug button if no remote debug preset found. 2023-01-18 09:59:51 +02:00
editor_run_native.h Move remote debug buttons to a single menu. 2023-01-14 22:25:35 +02:00
editor_run_script.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_run_script.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_run.cpp Fix the issue causing the Godot Android Editor to crash when returning from the launched and running game 2023-01-26 02:59:39 -08:00
editor_run.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_scale.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_scale.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_sectioned_inspector.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_sectioned_inspector.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_settings_dialog.cpp Merge pull request #71379 from KoBeWi/destruction_of_compatibility_function 2023-01-18 17:40:13 +01:00
editor_settings_dialog.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_settings.cpp Merge pull request #72460 from Calinou/project-manager-disable-incompatible-rendering-methods 2023-02-22 22:47:07 +01:00
editor_settings.h Fix shortcut reset. 2023-02-21 08:08:53 +02:00
editor_spin_slider.cpp Some code simplifications 2023-02-07 14:30:16 +01:00
editor_spin_slider.h Fix TAB key usage in EditorSpinSlider (and hence inpector). 2023-01-12 14:13:49 +01:00
editor_themes.cpp Enable granular control of touchscreen related settings 2023-02-22 00:16:39 -08:00
editor_themes.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_title_bar.cpp [macOS] Move extended title bar input to _gui_input and add mouse filters to prevent editor buttons from passing double-click to title. 2023-01-20 12:47:05 +02:00
editor_title_bar.h [macOS] Move extended title bar input to _gui_input and add mouse filters to prevent editor buttons from passing double-click to title. 2023-01-20 12:47:05 +02:00
editor_toaster.cpp Stop toaster notification circle flickering when notifications are all hidden. 2023-02-27 02:33:49 +00:00
editor_toaster.h Limit toasts' width 2023-01-17 15:55:40 +01:00
editor_translation_parser.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_translation_parser.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_translation.cpp Prepare for moving editor and classref translations to godot-editor-l10n repo 2023-02-07 14:20:40 +01:00
editor_translation.h Prepare for moving editor and classref translations to godot-editor-l10n repo 2023-02-07 14:20:40 +01:00
editor_undo_redo_manager.cpp Add EditorUndoRedoManager singleton 2023-01-16 01:11:52 +01:00
editor_undo_redo_manager.h Add EditorUndoRedoManager singleton 2023-01-16 01:11:52 +01:00
editor_vcs_interface.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_vcs_interface.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
editor_zoom_widget.cpp Usability improvements to the Zoom Widget 2023-01-25 20:21:51 +01:00
editor_zoom_widget.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
event_listener_line_edit.cpp Add some missing translatable editor strings 2023-02-10 16:55:50 +08:00
event_listener_line_edit.h Propagate allowed input types to event_listener when setting them on InputEventConfigurationDialog 2023-01-10 23:26:33 +10:00
fbx_importer_manager.cpp Tweak fbx2gltf file filter to remove naming restriction 2023-01-16 10:20:40 +01:00
fbx_importer_manager.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
filesystem_dock.cpp Fix rightclick on some files changes the 'New' menu entry to 'Show in File Manager' due to no fixed index for the 'New' menu 2023-02-02 09:41:06 +01:00
filesystem_dock.h Fix rightclick on some files changes the 'New' menu entry to 'Show in File Manager' due to no fixed index for the 'New' menu 2023-02-02 09:41:06 +01:00
find_in_files.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
find_in_files.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
groups_editor.cpp Add EditorUndoRedoManager singleton 2023-01-16 01:11:52 +01:00
groups_editor.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
history_dock.cpp Add EditorUndoRedoManager singleton 2023-01-16 01:11:52 +01:00
history_dock.h Add EditorUndoRedoManager singleton 2023-01-16 01:11:52 +01:00
import_defaults_editor.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
import_defaults_editor.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
import_dock.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
import_dock.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
input_event_configuration_dialog.cpp Fix wrong font in Event Configuration 2023-02-16 18:19:28 +01:00
input_event_configuration_dialog.h Cleanup and unify keyboard input. 2023-01-23 15:08:12 +02:00
inspector_dock.cpp Fix corrupt undo after making sub-resources unique 2023-02-13 19:18:03 +01:00
inspector_dock.h Add Show in FileSystem option in the inspector 2023-01-08 23:25:13 +01:00
localization_editor.cpp Add EditorUndoRedoManager singleton 2023-01-16 01:11:52 +01:00
localization_editor.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
multi_node_edit.cpp Merge pull request #71345 from reduz/support-metadata-multi-node-edit 2023-01-21 11:28:59 +01:00
multi_node_edit.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
node_dock.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
node_dock.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
plugin_config_dialog.cpp Convert en_GB spelling to en_US with codespell 2023-01-23 11:02:20 +01:00
plugin_config_dialog.h Convert en_GB spelling to en_US with codespell 2023-01-23 11:02:20 +01:00
pot_generator.cpp Merge pull request #70675 from ZangEldor/pot-generating-fix 2023-01-06 00:10:06 +01:00
pot_generator.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
progress_dialog.cpp Automatically reparent editor message dialogs to avoid error spam. 2023-02-21 12:32:11 +02:00
progress_dialog.h Convert en_GB spelling to en_US with codespell 2023-01-23 11:02:20 +01:00
project_converter_3_to_4.cpp Don't strip whitespace when converting 3to4. 2023-03-02 18:00:19 -05:00
project_converter_3_to_4.h Clean up ProjectConverter3To4 architecture, move renames map to separate file 2023-02-10 14:35:22 +01:00
project_manager.cpp Fix "Convert Full Project" button not translated 2023-03-02 16:19:30 +08:00
project_manager.h Add a custom icon for the project.godot file in the EditorFileDialog 2023-02-17 22:42:23 +01:00
project_settings_editor.cpp Improvements and fixes based on Weblate comments 2023-02-13 15:22:18 +08:00
project_settings_editor.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
property_selector.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
property_selector.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
register_editor_types.cpp Implement a quick script inheritance check 2023-01-19 16:47:01 +01:00
register_editor_types.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
register_exporters.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
rename_dialog.cpp Add EditorUndoRedoManager singleton 2023-01-16 01:11:52 +01:00
rename_dialog.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
renames_map_3_to_4.cpp Add 3-to-4 renames for project settings in project.godot 2023-02-27 13:34:35 +01:00
renames_map_3_to_4.h Add 3-to-4 renames for project settings in project.godot 2023-02-27 13:34:35 +01:00
reparent_dialog.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
reparent_dialog.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
scene_create_dialog.cpp Fix inconsistent state of Controls when editing and running scenes 2023-01-09 15:54:04 +03:00
scene_create_dialog.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
scene_tree_dock.cpp Prevent wrong unedit when clicking editor viewport 2023-02-01 00:50:34 +01:00
scene_tree_dock.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
scene_tree_editor.cpp Merge pull request #65137 from dalexeev/editor-naming 2023-01-24 22:26:03 +03:00
scene_tree_editor.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
script_create_dialog.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
script_create_dialog.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
SCsub Prepare for moving editor and classref translations to godot-editor-l10n repo 2023-02-07 14:20:40 +01:00
shader_create_dialog.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
shader_create_dialog.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
shader_globals_editor.cpp Add EditorUndoRedoManager singleton 2023-01-16 01:11:52 +01:00
shader_globals_editor.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
template_builders.py