Fredia Huya-Kouadio
14e6696c8e
Implementation of the Godot Android Plugin configuration file
2020-05-17 11:11:26 -07:00
Rémi Verschelde
1a43d3b396
Merge pull request #38451 from eduardonunesp/feature/command-comma-preferences
...
Using command + comma on macOS as default shortcut for editor settings
2020-05-16 13:24:15 +02:00
Rémi Verschelde
20ffb4b452
Merge pull request #38764 from YeldhamDev/icons_missing
...
Add more missing icons
2020-05-15 22:04:23 +02:00
Michael Alexsander
54ed1f63bf
Add more missing icons
2020-05-15 16:20:35 -03:00
Dominik 'dreamsComeTrue' Jasiński
095167dcc3
Hide editor_spin_slider grabber when closing Editor's windows
...
Fixes : #38740
2020-05-15 15:39:32 +02:00
Rémi Verschelde
0ee0fa42e6
Style: Enforce braces around if blocks and loops
...
Using clang-tidy's `readability-braces-around-statements`.
https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14 21:57:34 +02:00
Rémi Verschelde
07bc4e2f96
Style: Enforce separation line between function definitions
...
I couldn't find a tool that enforces it, so I went the manual route:
```
find -name "thirdparty" -prune \
-o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \
-o -name "*.glsl" > files
perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files)
misc/scripts/fix_style.sh -c
```
This adds a newline after all `}` on the first column, unless they
are followed by `#` (typically `#endif`). This leads to having lots
of places with two lines between function/class definitions, but
clang-format then fixes it as we enforce max one line of separation.
This doesn't fix potential occurrences of function definitions which
are indented (e.g. for a helper class defined in a .cpp), but it's
better than nothing. Also can't be made to run easily on CI/hooks so
we'll have to be careful with new code.
Part of #33027 .
2020-05-14 16:54:55 +02:00
Rémi Verschelde
0be6d925dc
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
...
Which means that reduz' beloved style which we all became used to
will now be changed automatically to remove the first empty line.
This makes us lean closer to 1TBS (the one true brace style) instead
of hybridating it with some Allman-inspired spacing.
There's still the case of braces around single-statement blocks that
needs to be addressed (but clang-format can't help with that, but
clang-tidy may if we agree about it).
Part of #33027 .
2020-05-14 16:54:55 +02:00
Rémi Verschelde
710b34b702
Style: Fix missing/invalid copyright headers
2020-05-14 16:54:54 +02:00
Rémi Verschelde
dcd1151d77
Enforce use of bool literals instead of integers
...
Using clang-tidy's `modernize-use-bool-literals`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-bool-literals.html
2020-05-14 13:45:01 +02:00
Rémi Verschelde
1a8167867b
Modernize remaining uses of 0/NULL instead of nullptr (C++11)
...
Using clang-tidy's `modernize-use-nullptr`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
2020-05-14 13:45:01 +02:00
Rémi Verschelde
1f6f364a56
Port member initialization from constructor to declaration (C++11)
...
Using `clang-tidy`'s `modernize-use-default-member-init` check and
manual review of the changes, and some extra manual changes that
`clang-tidy` failed to do.
Also went manually through all of `core` to find occurrences that
`clang-tidy` couldn't handle, especially all initializations done
in a constructor without using initializer lists.
2020-05-14 10:01:56 +02:00
Rémi Verschelde
1c18be1cc9
Merge pull request #38637 from Calinou/editor-rename-revert-scene-bind
...
Rename the editor action "Revert Scene" to "Reload Saved Scene"
2020-05-13 12:58:40 +02:00
Marcel Admiraal
e7fee711b3
Update game controller enums.
2020-05-13 10:33:32 +01:00
Fabio Alessandrelli
d79e28c302
Support multiple debug protocols.
2020-05-12 15:09:13 +02:00
Hugo Locurcio
2962819d1c
Rename the editor action "Revert Scene" to "Reload Saved Scene"
...
This option can be used to workaround various issues with stuff
not reloading properly when changes are made.
The option was renamed to clarify the fact that it actually
reloads the scene saved on the filesystem.
2020-05-12 14:42:09 +02:00
Hugo Locurcio
c6afb9f6ea
Update the editor icons README to remove outdated information
...
This closes #38684 .
2020-05-12 09:46:56 +02:00
Hugo Locurcio
0d7b627936
Tweak the error message displayd when a post-import script fails
...
See #38662 .
2020-05-11 21:11:17 +02:00
Rémi Verschelde
83b630b8c2
thirdparty: Cleanup after #38386 , document provenance and copyright
...
Also renamed `delaunay.h` to `delaunay_2d.h` to match the class name.
2020-05-11 14:50:06 +02:00
Rémi Verschelde
32133a11b5
Merge pull request #38386 from reduz/new-lightmapper
...
New GPU lightmapper
2020-05-11 13:45:48 +02:00
Eduardo Nunes Pereira
75f77f751e
Using command + comma on macOS as default shortcut for editor settings
2020-05-11 13:04:34 +02:00
Rémi Verschelde
70e39cc9a5
Merge pull request #38592 from Calinou/debugger-error-warning-icon
...
Use a different icon for the debugger tab with both warnings and errors
2020-05-11 11:31:59 +02:00
Rémi Verschelde
62bf8b4dd6
Merge pull request #38594 from Calinou/rename-clear-script-action
...
Rename the Clear Script editor action to Detach Script
2020-05-11 11:31:31 +02:00
Rémi Verschelde
845e2111ce
Merge pull request #38631 from Calinou/editor-log-selection-color-theme
...
Tweak the editor log selection color to match the current editor theme
2020-05-11 11:30:23 +02:00
Juan Linietsky
1bea8e1eac
New lightmapper
...
-Added LocalVector (needed it)
-Added stb_rect_pack (It's pretty cool, we could probably use it for other stuff too)
-Fixes and changes all around the place
-Added library for 128 bits fixed point (required for Delaunay3D)
2020-05-10 15:59:09 -03:00
Rémi Verschelde
94721f5ab8
Revert "Renamed plane's d to distance"
...
This reverts commit ec7b481170
.
This was wrong, `d` is not a distance but the `d` constant in the
parametric equation `ax + by + cz = d` describing the plane.
2020-05-10 16:47:11 +02:00
Hugo Locurcio
411af2c750
Tweak the editor log selection color to match the current editor theme
...
This overrides the default blue color.
2020-05-10 16:32:14 +02:00
Rémi Verschelde
69de7ce38c
Style: clang-format: Disable AllowShortCaseLabelsOnASingleLine
...
Part of #33027 .
2020-05-10 13:13:54 +02:00
Rémi Verschelde
e956e80c1f
Style: clang-format: Disable AllowShortIfStatementsOnASingleLine
...
Part of #33027 , also discussed in #29848 .
Enforcing the use of brackets even on single line statements would be
preferred, but `clang-format` doesn't have this functionality yet.
2020-05-10 13:12:16 +02:00
Rémi Verschelde
03b13e0c69
Style: Add missing copyright headers
2020-05-10 13:12:16 +02:00
Marcus Elg
ec7b481170
Renamed plane's d to distance
2020-05-10 12:12:51 +02:00
Hugo Locurcio
7fc0e38e92
Rename the Clear Script editor action to Detach Script
...
This makes it more obvious that the script won't be modified
in any way.
See comments in #27813 .
2020-05-09 19:09:11 +02:00
Hugo Locurcio
564f8ccc13
Use a different icon for the debugger tab with both warnings and errors
...
This makes it possible to see if both errors and warnings were
pushed without having to open the tab.
2020-05-09 15:29:13 +02:00
Marcus Elg
9a7e515d50
Rename Lineshapes d to distance
2020-05-09 15:10:00 +02:00
Rémi Verschelde
b9f2e57d62
Merge pull request #38555 from ThakeeNathees/rotation-gizmo-visible-fix
...
rotation gizmo visible = false; when camera preview
2020-05-08 12:59:31 +02:00
Thakee Nathees
60d67f13da
rotation gizmo visible = false; when camera preview
2020-05-08 06:44:24 +05:30
JFonS
051f02a3a0
Keep mouse inside 3D viewport rotation widget
...
Hide and keep the mouse in place when the user oribts the scene via the 3D
rotation widget.
2020-05-07 19:19:54 +02:00
Rémi Verschelde
ca289f4d6f
Merge pull request #38488 from EricEzaM/adjust-stretch-ratio-value-range-and-documentation
...
Updated editor spin slider to have better behaviour and adjusted control's size_flags_stretch_ratio value range
2020-05-06 10:06:53 +02:00
Eric M
915ab50673
Updated editor spin slider to have better behaviour and adjusted control's size_flags_stretch_ratio value range
2020-05-06 17:43:31 +10:00
Rémi Verschelde
33d0b9e169
Merge pull request #38393 from nekomatata/printerr-remote-debugger-4.0
...
Format remote printerr properly in script debugger output
2020-05-06 07:31:57 +02:00
Rémi Verschelde
cbb86fdf08
Merge pull request #38427 from EricEzaM/fix-custom-property-revert-implementation
...
Stop trying to revert to script/class default values when script implementation of property_can_revert exists
2020-05-06 07:29:42 +02:00
Rémi Verschelde
42649565e9
Merge pull request #38475 from Chaosus/vs_quals
...
Added uniform qualifiers to visual shaders
2020-05-06 07:27:35 +02:00
Rémi Verschelde
4d50f747d5
Merge pull request #37293 from Janglee123/ctrl-click-improvements
...
Improved go-to definition (Ctrl + Click)
2020-05-05 16:49:15 +02:00
Rémi Verschelde
0caf55a481
i18n: Sync translations with Weblate
...
(cherry picked from commit 00b5663782
)
2020-05-05 16:05:56 +02:00
Yuri Roubinsky
463e4ad0f5
Some fixes for canvas item visual shader inputs
2020-05-05 13:19:36 +03:00
Yuri Roubinsky
082542b525
Added uniform qualifiers to visual shaders
2020-05-05 11:25:48 +03:00
janglee
be7a353c70
Improved go-to definition (Ctrl + Click)
...
Co-Authored-By: Bojidar Marinov <bojidar.marinov.bg@gmail.com>
2020-05-05 10:46:12 +05:30
Rémi Verschelde
878adb22b7
Merge pull request #37717 from qarmin/world_fix
...
Change non-existent World to World3D
2020-05-04 16:37:40 +02:00
Rémi Verschelde
2df844d5b3
Merge pull request #38376 from dreamsComeTrue/duplicate-nodes-fix
...
Proper naming and ordering when Duplicate nodes in SceneTreeDock
2020-05-03 18:18:04 +02:00
Eric M
27ada5c114
Stopped trying to revert to default values when script implementation of property_can_revert exists
2020-05-03 16:54:58 +10:00