Commit graph

8709 commits

Author SHA1 Message Date
Rémi Verschelde 0ae65472e7
clang-format: Enable BreakBeforeTernaryOperators
clang-format keeps breaking the way it handles break *after* ternary operators,
so I give up and go with the only style they seem to actually test.
2021-10-28 15:57:41 +02:00
Rémi Verschelde 3a6be64c12
clang-format: Various fixes to comments alignment from clang-format 13
All reviewed manually and occasionally rewritten to avoid bad auto formatting.
2021-10-28 15:43:36 +02:00
Rémi Verschelde 3b11e33a09
clang-format: Disable alignment of operands, too unreliable
Sets `AlignOperands` to `DontAlign`.

`clang-format` developers seem to mostly care about space-based indentation and
every other version of clang-format breaks the bad mismatch of tabs and spaces
that it seems to use for operand alignment. So it's better without, so that it
respects our two-tabs `ContinuationIndentWidth`.
2021-10-28 15:19:35 +02:00
Rémi Verschelde 6d930bd270
Merge pull request #54342 from groud/remove_item_list_editor 2021-10-28 11:52:47 +02:00
Gilles Roudière a51f92273a Remove ItemList editor and replace it by a property array 2021-10-28 10:16:51 +02:00
Rémi Verschelde 7bb568328f
Merge pull request #52985 from Calinou/editor-debugger-bottom-panel-error-warning-highlight
Improve appearance of the editor Debugger bottom panel menu
2021-10-28 08:12:41 +02:00
Rémi Verschelde 157cba3933
Merge pull request #54321 from V-Sekai/import-scene-crash 2021-10-27 22:25:25 +02:00
K. S. Ernest (iFire) Lee d905d3c3d3 Avoid crash in scene importer when the mesh is empty. 2021-10-27 12:16:10 -07:00
Rémi Verschelde 21529c90f8
Merge pull request #54166 from ConteZero/unique_selection 2021-10-27 20:50:54 +02:00
ConteZero fbee4efa5f Add option to make selection unique 2021-10-27 19:45:52 +02:00
Hugo Locurcio bb681ef9f2
Improve appearance of the editor Debugger bottom panel menu
- Make the Debugger bottom panel menu more prominent when
  there are errors or warnings by adjusting the text color.
- Add some spacing to the right of the error/warning icon
  for better visual appearance.
2021-10-27 16:56:15 +02:00
Max Hilbrunner 55100f2f11 Small formatting fixes in Find in Files 2021-10-27 16:13:49 +02:00
Rémi Verschelde 8c162f4a7b
Merge pull request #54270 from JFonS/fix_selection 2021-10-26 19:03:34 +02:00
jfons 83fd0e0c70 Fix click selection in the editor 3D viewport 2021-10-26 18:08:31 +02:00
Rémi Verschelde 344babb939
Merge pull request #54267 from pycbouh/controls-button-font-focus 2021-10-26 17:34:07 +02:00
Yuri Sizov 12838bd99d Add focus font color to Button and derivatives 2021-10-26 17:42:40 +03:00
Rémi Verschelde c2640e2b21
Merge pull request #54254 from mhilbrunner/ticks-msec-64 2021-10-26 14:53:56 +02:00
Max Hilbrunner 5dc02eb8b0 Save all 64 bits of get_ticks_msec() in more cases 2021-10-26 13:58:58 +02:00
Rémi Verschelde 01afa39d21
Merge pull request #54073 from groud/terrains_for_procgen 2021-10-26 08:15:07 +02:00
reduz d03b7fbe09 Refactored Node3D rotation modes
* Made the Basis euler orders indexed via enum.
* Node3D has a new rotation_order property to choose Euler rotation order.
* Node3D has also a rotation_mode property to choose between Euler, Quaternion and Basis

Exposing these modes as well as the order makes Godot a lot friendlier for animators, which can choose the best way to interpolate rotations.
The new *Basis* mode makes the (exposed) transform property obsolete, so it was removed (can still be accessed by code of course).
2021-10-25 14:34:00 -03:00
Rémi Verschelde 24fdedfe94
Merge pull request #54050 from reduz/animation-compression 2021-10-25 14:27:58 +02:00
bruvzg ebbc25e89c Ignore empty Font resources as theme override.
Add range hint to font_size properties.
Remove excessive `base_size` Font property.
2021-10-25 14:05:37 +03:00
Rémi Verschelde e71184667e
Merge pull request #53707 from Calinou/action-editor-default-enable-physical 2021-10-24 23:34:08 +02:00
Rémi Verschelde 69eaa806c8
Merge pull request #53820 from Calinou/3d-editor-add-quick-fov-adjust 2021-10-24 22:33:05 +02:00
Wilson E. Alvarez fc30f6350a
Fix max argument count on AnimationTrackEdit spinbox 2021-10-24 10:05:01 -04:00
Rémi Verschelde c7b78b9538
Merge pull request #53885 from TokageItLab/fix-bone-animation-insertion
Fixed Pos/Rot/Scl 3D Tracks insertion in `SkeletonEditor`
2021-10-24 10:05:00 +02:00
Rémi Verschelde 0aa6f27061
i18n: Sync editor translations with Weblate
(cherry picked from commit 4010bb9af0)
2021-10-23 12:38:15 +02:00
Hugo Locurcio 5ae45cf388
Implement Alt + Mouse wheel to adjust FOV in the 3D editor viewport
This allows for quicker FOV adjustments compared to using the View menu.
2021-10-23 12:21:03 +02:00
Robin Arys e69d40cad9 Fix newly created files not sorted correctly 2021-10-23 10:50:05 +02:00
Silc 'Tokage' Renew 653e2a550c Fixed animation insertion in SkeletonEditor 2021-10-23 16:50:00 +09:00
Robin Arys bb7888debb Fix support for multiple base types in the quick load dialog 2021-10-22 23:27:46 +02:00
Rémi Verschelde beb3875cdf
Merge pull request #53781 from m4gr3d/restrict_project_data_dir_config_master 2021-10-22 19:30:35 +02:00
Yuri Roubinsky af08d497e2 Fix error spam at setting a CurveTexture in visual shaders 2021-10-22 17:32:16 +03:00
reduz a69541da4c Implement Animation Compression
Roughly based on https://github.com/godotengine/godot-proposals/issues/3375 (used format is slightly different).

* Implement bitwidth based animation compression (see animation.h for format).
* Can compress imported animations up to 10 times.
* Compression format opens the door to streaming.
* Works transparently (happens all inside animation.h)
2021-10-21 18:27:34 -03:00
Marcel Admiraal 87a4ba492e Remove unimplemented methods 2021-10-21 18:44:25 +01:00
Gilles Roudière d1aef45072 Allow updating TileMap cells using surrounding terrains 2021-10-21 16:57:28 +02:00
Rémi Verschelde 89b9624733
Merge pull request #53161 from Duroxxigar/copy-group-name 2021-10-21 11:22:12 +02:00
Duroxxigar 532a632077 Added ability to copy group name 2021-10-21 03:56:08 -04:00
Rémi Verschelde efa3ff6b95
Merge pull request #54024 from akien-mga/editor-i18n-thresholds 2021-10-20 16:05:30 +02:00
Rémi Verschelde c942d567eb
Merge pull request #53926 from YeldhamDev/i_am_tabbar_now 2021-10-20 15:42:41 +02:00
Rémi Verschelde 01aec21d25
i18n: Only include editor translations above a threshold
This reduces the size of the editor binaries significantly, as we otherwise
embed all WIP translations, including ones with very low completion ratios,
and end up paying for the size of all `msgid`s for each locale.

Cf. https://github.com/godotengine/godot-proposals/issues/3421 for details.

The thresholds used are:
- 30% for the editor interface (should already include most common strings
  while more obscure ones like UndoRedo action names might be untranslated).
- 10% for the class reference: this is a HUGE resource and 10% is already
  a lot of useful content, especially if focused on the most used APIs.

This currently reduces the size of the editor binary by 17% on Linux.

The list will be synced manually every now and then.

(cherry picked from commit 8425c58991)
2021-10-20 15:10:13 +02:00
Rémi Verschelde 9841c9abe8
Merge pull request #53994 from groud/move_tileset_tilemap_switch_to_tabs 2021-10-20 11:53:54 +02:00
Rémi Verschelde 6d3eef03bc
Merge pull request #53260 from Calinou/editor-inspector-warning-yellow 2021-10-20 11:48:12 +02:00
Haoyu Qiu 392d529247 Update view name after processing orbit view shortcuts 2021-10-20 13:05:59 +08:00
Gilles Roudière 20f4dce7a0 Fix EditorToaster constant update and prevent a crash 2021-10-19 17:18:45 +02:00
Gilles Roudière 5317b79a1d Remove the tilemap/tileset editor switch, move it to tabs 2021-10-19 17:11:34 +02:00
Michael Alexsander 67acb7de6e Rename Tabs to TabBar 2021-10-19 11:37:31 -03:00
Gilles Roudière bc0b702874
Merge pull request #53440 from groud/tile_map_patterns_palette
Implement TileMap patterns palette
2021-10-19 13:13:46 +02:00
Rémi Verschelde b1b5d516d7
Merge pull request #53979 from KoBeWi/bug_from_the_past 2021-10-19 13:13:09 +02:00
kobewi abe22dfcf4 Fix command history for plugin commands 2021-10-19 12:23:24 +02:00