reduz
6236a688b7
Implement Feature Build Profiles
...
This PR is a continuation of #50381 (which was implemented exactly a year ago!)
* Add a visual interface to select which classes should not be built into Godot (well, they are built if something else uses them, but if not used the optimizer will remove them out).
* Add a detection system to scan the project and figure out the actual classes used.
* Added the ability for SCons to load build profiles.
Obligatory Screen:
A simple test with a couple of nodes in the scene resulted in a 25% reduction for the final binary size
TODO:
* Script languages need to implement used class detection (left for another PR).
* Options to disable servers or server functionalities (like 2D or 3D physics, navigation, etc). Are missing, that should also greatly aid in reducing binary size.
* Options to disable some modules would be desired.
* More options to disable drivers (OpenGL, Vulkan, etc) would be desired.
In general this PR is a starting point for more contributors to improve and enhance this functionality.
2022-07-22 10:53:23 +02:00
Rémi Verschelde
184f62cb46
Merge pull request #60458 from KoBeWi/Deprecated-hint,-unused-
2022-07-14 00:20:30 +02:00
Hugo Locurcio
21ea1c3835
Rename soft shadow quality project settings for easier searching
...
`rendering/quality/shadows` is now `rendering/quality/positional_shadow`
to explicitly denote that the settings only affect positional light shadows,
not directional light shadows.
Shadow atlas settings now contain the word "atlas" for easier searching.
Soft shadow quality settings were renamed to contain the word "filter".
This makes the settings appear when searching for "filter" in the
project settings dialog, like in Godot 3.x.
2022-07-13 19:56:02 +02:00
Rémi Verschelde
4639050c64
SpriteFrames: Sort animations alphabetically
...
And finally remove the 'frames' property which was added for compatibility with 2.1
in bed3efb17e
.
Fixes #21765 .
The 'animations' property on the other hand is needed, contrarily to what its comment
said (copy-paste mistake probably).
Also removes unused '_get_animation_list'.
2022-07-13 16:15:11 +02:00
Rémi Verschelde
c17af2c5a3
Merge pull request #62774 from Rindbee/make-the-meta-click-area-fit
...
Make the meta click area fit to its visible area
2022-07-13 14:14:34 +02:00
Rémi Verschelde
207ef8a33d
Merge pull request #62781 from MinusKube/tree-slider-bug
...
Fix range slider in tree not updating text value
2022-07-13 14:13:38 +02:00
Rémi Verschelde
b942c1ffe3
Merge pull request #62827 from fire-forge/ok-cancel
...
Add `ok_button_text` to AcceptDialog and `cancel_button_text` to ConfirmationDialog
2022-07-13 14:10:38 +02:00
Rémi Verschelde
f7786603c7
Merge pull request #62884 from KoBeWi/THICKUNDERLINE
2022-07-13 14:08:39 +02:00
Rindbee
74f99f7fa3
Make the meta click area fit
...
Eliminate the click vacuum area, mainly the indentation generated by indent/ul/ol tags
2022-07-13 07:12:22 +08:00
kobewi
2f777b9a1e
Remove unused hints
2022-07-12 00:44:13 +02:00
kobewi
f4a7450216
Fix too thin underline in brace match
2022-07-10 18:23:03 +02:00
FireForge
af19501cc7
Seperate filter and description in FileDialog.add_filter()
2022-07-09 10:51:45 -05:00
FireForge
e4067064ce
Add ok_button_text to AcceptDialog and cancel_button_text to ConfirmationDialog
2022-07-09 10:47:08 -05:00
Rémi Verschelde
d26442e709
Merge pull request #60739 from KoBeWi/add_static_methods_everywhere!!
2022-07-08 16:50:47 +02:00
Xentripetal
f514b82fd3
Account for relative z-indexes when y-sorting
2022-07-08 09:18:00 -05:00
kobewi
d2900429e8
Add static methods for creating Image and ImageTexture
2022-07-08 13:40:47 +02:00
Rémi Verschelde
ca18a02e00
Merge pull request #62744 from AThousandShips/tree_h_scroll
2022-07-08 11:51:07 +02:00
Rémi Verschelde
13346ab4cc
Merge pull request #62632 from linkpy/62630_fix
...
Make sure the tile data clears its `terrain` field when said terrain is removed from the tileset.
2022-07-08 11:30:28 +02:00
Rémi Verschelde
7d3ff927de
Merge pull request #62075 from Vitika9/gsoc-colorpicker
2022-07-08 09:06:47 +02:00
bruvzg
8f6c4956ca
Fix regressions from Font refactor
...
Remove unnecessary font override
Fixes button outline draw when it should not, causing button colors to be slightly off
2022-07-08 08:27:18 +03:00
Rémi Verschelde
5268efdcd9
Merge pull request #62806 from dylan-conway/layered-texture-update-fix-and-error-messages
2022-07-08 00:16:15 +02:00
Dylan Conway
78ca147c8a
Changed valid check to null check, added error messages
2022-07-07 11:11:47 -07:00
bruvzg
a319e6e623
Fix regressions from Font refactor
...
Fixes `p_font.is_null()` errors due to incorrect resource type used.
Fixes code editor font not set correctly, and OpenType features applied to the wrong font.
2022-07-07 15:11:08 +03:00
Ninni Pipping
bed65894d3
Horizontal scroll for Tree
2022-07-07 12:58:44 +02:00
Rémi Verschelde
1e553e34fb
Merge pull request #62108 from bruvzg/font_config_v3
2022-07-07 12:22:49 +02:00
bruvzg
0c5431644d
Allows parsing of invalid UTF-16 surrogates (can be encountered in Windows filenames) and some non-standard UTF-8 variants, makes Unicode parse errors more verbose.
2022-07-07 11:07:18 +03:00
Vitika9
0011d93c81
ColorPicker Refactor
2022-07-06 22:11:43 +05:30
MinusKube
ed68f867fb
Fix range slider in tree not updating text value
2022-07-06 17:43:16 +02:00
lawnjelly
1f69666209
Remove Octree
...
Octree is no longer used in 4.x.
2022-07-06 14:10:05 +01:00
bruvzg
344ba0ffaf
Refactor Font configuration and import UI, and Font resources.
2022-07-06 14:12:36 +03:00
Hugo Locurcio
983ce7e9f3
Disable Expand by default in VideoStreamPlayer
...
This ensures videos are always visible as soon as a video file
is specified in the VideoStreamPlayer node. The node will no longer
be resized to 0×0 by default, making the video invisible in the process
(even if the audio can still be heard).
2022-07-06 00:51:27 +02:00
Hugo Locurcio
aa9403bcda
Clamp VoxelGI extents to reasonable values to avoid breaking baking
...
This also prevents crashes when resizing a VoxelGI's extents to 0
on any axis.
2022-07-05 18:32:44 +02:00
Rémi Verschelde
5f386fecf0
Merge pull request #62721 from Nolkaloid/line_edit-caret-blink-fix
...
Change LineEdit caret blink to use internal process
2022-07-05 17:00:58 +02:00
Nolkaloid
9dc58511c6
Change LineEdit caret blink to use process
...
Now using internal process for blinking instead of a Timer node
2022-07-05 00:02:44 +02:00
kobewi
41f6e7c50e
Allow to disable TextEdit vertical scroll
2022-07-04 15:02:15 +02:00
Rémi Verschelde
1d06fec535
Merge pull request #62448 from MinusKube/completion-scroll-click
...
Add the ability to drag the code completion scrollbar using the mouse click
2022-07-04 10:13:20 +02:00
Rémi Verschelde
ba8e7efc2b
Merge pull request #38298 from ThakeeNathees/file-dialog-autocomplete-fix
2022-07-04 10:10:47 +02:00
bruvzg
329923c6ac
Use custom key structs, instead of raw hashes for the Label3D and TextMesh, to avoid potential hash collisions.
2022-07-04 09:47:49 +03:00
Thakee Nathees
446f1b7052
Fix FileDialog file name autocompletion with filters
...
Fixes #38195 .
2022-07-04 01:26:34 +02:00
MinusKube
336400dc42
Add the ability to drag the code completion scrollbar using the mouse click
2022-07-03 23:47:52 +02:00
Rémi Verschelde
41fdddb1f8
Merge pull request #62677 from akien-mga/particles-fix-warnings-update
2022-07-03 18:42:51 +02:00
Rémi Verschelde
5d9e56ecec
Particles: Fix missing configuration warning updates
...
Fixes #33488 .
2022-07-03 16:04:20 +02:00
kleonc
73ecd71b7d
Fix no `hint_string` for `frame` property in `AnimatedSprite`s
2022-07-03 15:31:43 +02:00
Estelle Linkpy Reid
3a37053aac
Make sure the tile data clears its `terrain` field when said terrain is removed from the tileset.
2022-07-02 15:01:07 +02:00
Rémi Verschelde
a2459c7d35
Merge pull request #61610 from TokageItLab/importer-retarget-registered-gdhumanoid
2022-07-02 00:17:21 +02:00
Rémi Verschelde
d67691fbd6
Merge pull request #62605 from Calinou/internal-group-names-prefix-underscore
2022-07-02 00:16:38 +02:00
Rémi Verschelde
692c2d9215
Merge pull request #50755 from foxydevloper/add-global-position-and-global-rotation
...
Add global_position and global_rotation to Node3D
2022-07-01 21:50:42 +02:00
Hugo Locurcio
462432f89f
Add an underscore to internal group names as per engine policy
...
This also adds `SNAME()` macros where relevant to improve performance.
2022-07-01 20:16:25 +02:00
Hugo Locurcio
e7315fcc45
Clamp Decal's upper/lower fade to positive values
...
Negative easing values result in broken rendering.
2022-07-01 19:23:57 +02:00
foxydevloper
8b16a4131f
Add global_position and global_rotation to Node3D
2022-07-01 10:27:07 -04:00