fc27636999
Vectors: Use clear() and has().
...
Use clear() instead of resize(0).
Use has() instead of "find(p_val) != -1".
2022-02-02 00:11:09 +05:45
8a0a3accee
simplify formatting scripts, add a clang-tidy script, and run clang-tidy
2022-01-29 04:41:03 -06:00
78c946f554
Fix lightmap size hint option not displaying for 3D scenes
...
This also renames the Static Lightmaps option hint to be more explicit
about which GI techniques are supported (as VoxelGI/SDFGI can still
be used with Static Lightmaps).
2022-01-26 00:33:47 +01:00
b86e3dbe7b
Add usage of indeterminate checkboxes to editor
2022-01-22 21:12:06 +01:00
7e3b92f81f
Merge pull request #55360 from Calinou/rename-bake-mode-properties
2022-01-20 17:35:32 +01:00
b411a731fe
Add nodiscard to core math classes to catch c++ errors.
...
A common source of errors is to call functions (such as round()) expecting them to work in place, but them actually being designed only to return the processed value. Not using the return value in this case in indicative of a bug, and can be flagged as a warning by using the [[nodiscard]] attribute.
2022-01-20 13:07:49 +00:00
ce2b5bdfa8
Merge pull request #52969 from bruvzg/locale_detection
2022-01-18 15:43:04 +01:00
40c56ed410
Improve locale detection.
...
Use separate language, script and country lists.
Add locale selection dialog and property hint.
2022-01-18 14:30:00 +02:00
1cdad6c5bb
Fix import hints breaking node paths in animations
2022-01-18 12:18:42 +01:00
a2d323c67e
Merge pull request #54794 from bruvzg/runtime_bmfont_parser
2022-01-17 13:25:08 +01:00
7176a43260
Remove property hints referencing unsupported svgz extension
...
The wrongly claimed support for it was removed in #49645 .
See also #56862 .
2022-01-17 12:40:43 +01:00
a7f743039d
Hide SVG scale for non-SVG textures
2022-01-16 21:18:00 +01:00
40be15920f
Remove support for PVRTC texture encoding and decoding
...
On the only platform where PVRTC is supported (iOS),
ETC2 generally supersedes PVRTC in every possible way. The increased
memory usage is not really a problem thanks to modern iOS' devices
processing power being higher than its Android counterparts.
2022-01-14 21:08:22 +01:00
858bcd5058
Fix various typos
...
Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inh,inout,leapyear,lod,nd,numer,ois,ony,paket,ro,seeked,sinc,switchs,te,uint,varn,vew`
2022-01-13 23:20:01 -05:00
c89c515ccf
[TextServer] Improve ligature cursor handling.
...
Fix mid-grapheme hit test.
Fix OpenType features property handling, add default features override option.
Enable mid-grapheme cursor by default.
2022-01-09 19:03:48 +02:00
07a39684a0
options dict is now passed to _import_scene.
2022-01-05 01:07:54 -08:00
fe52458154
Update copyright statements to 2022
...
Happy new year to the wonderful Godot community!
2022-01-03 21:27:34 +01:00
a124f1effe
Fix various typos
...
Found via ` codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint,varn`
Update editor/import/resource_importer_layered_texture.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com >
Update doc/classes/TileSetScenesCollectionSource.xml
Co-authored-by: Raul Santos <raulsntos@gmail.com >
Update scene/gui/graph_edit.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com >
Update scene/resources/animation.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com >
Update scene/resources/animation.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com >
Update scene/resources/animation.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com >
Update scene/gui/rich_text_label.cpp
Co-authored-by: Raul Santos <raulsntos@gmail.com >
Revert previously committed change
2022-01-02 01:03:58 -05:00
5c3b92e94f
Don't crash when texture param is null
2021-12-17 15:56:41 +00:00
e962900f23
Rename and reorder bake mode properties for consistency
...
The order now goes from least to most computationally expensive:
- Disabled
- Static
- Dynamic
2021-12-14 12:01:12 +01:00
db70957a5f
Merge pull request #53323 from xMakerx/patch-1
2021-12-10 10:42:20 +01:00
49403cbfa0
Replace String comparisons with "", String() to is_empty()
...
Also:
- Adds two stress tests to test_string.h
- Changes to .empty() on std::strings
2021-12-09 04:48:38 -06:00
41a20171eb
align to horizontal_alignment, valign to vertical_alignment, related
2021-12-09 01:38:46 -06:00
81efebb3a1
Fix bad popups offset in editor with single window off
...
Co-authored-by: Gil Arasa Verge <gilarasaverge@gmail.com >
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com >
2021-12-06 14:29:48 +01:00
efd0db85f6
Merge pull request #55238 from Giwayume/bugfix/atlas_cutoff_edge_master
...
Atlas import 1px missing from right side of non-cropped image.
2021-11-24 08:01:47 +01:00
e078f970db
Rename remove() to remove_at() when removing by index
2021-11-23 18:58:57 -07:00
cbca2cf152
Fix edge case where 1px cut off from right of image
...
Remove -1 px
2021-11-23 10:56:36 -05:00
eabf8f5edf
Added reset_size method to Control and Window classes
2021-11-22 16:55:21 +03:00
bbdba3310f
Added hint about loop_mode to resource importer
2021-11-19 23:56:14 +09:00
9432efb7d0
Fix texture atlas generation when source sprite is larger than generated atlas
2021-11-18 10:05:59 -05:00
cd2a499084
Add path to functions that return iporter options
...
-Allows displaying custom options for specific file format variants
-Added support for scene format import to retrieve custom options
This PR is necessary for #54886 to be implemented properly.
2021-11-14 14:06:10 -03:00
3c0fdcc8ac
Use "enum class" for input enums
2021-11-12 15:37:54 -06:00
88c4380737
Modules: Make sure to include modules_enabled.gen.h where needed
2021-11-12 13:42:58 +01:00
37c11e4159
Fix import_scene_from_other_importer and import_animation_from_other_importer
2021-11-11 03:24:51 -08:00
35c4cad7ad
Merge pull request #54838 from groud/fix_editor_import_plugin
2021-11-10 18:09:57 +01:00
8de0f969bf
Fix EditorImportPlugin logic for checking unimplemented methods
2021-11-10 16:33:11 +01:00
06a33e590f
Merge pull request #53819 from TokageItLab/re-implement-ping-pong
...
Reimplement ping-pong animation and reverse playback
2021-11-09 22:11:04 +01:00
46780aaa0f
Merge pull request #54694 from briansemrau/rem-silly-obj-error
...
Prevent obj importer from printing misleading error
2021-11-09 21:49:11 +01:00
081c1ceda4
Merge pull request #51341 from V-Sekai/fps-30
...
Default to 30 animation fps for better quality.
2021-11-09 10:55:15 -08:00
f4204ac8e0
Default to 30 animation fps for better quality.
2021-11-09 08:13:45 -08:00
294e48ae58
Move BMFont parser code from importer to the FontData to allow loading bitmap fonts in the runtime (without importing).
2021-11-09 10:41:45 +02:00
d9a74fd07f
Merge pull request #54372 from bruvzg/text_edit_ui
2021-11-09 00:13:25 +01:00
bd0d15c5be
Prevent obj importer from printing misleading error
2021-11-06 22:12:36 -04:00
c012fbc8b2
Rename PROPERTY_USAGE_NOEDITOR to PROPERTY_USAGE_NO_EDITOR
...
This is consistent with other constants that include `NO`,
such as `PROPERTY_HINT_COLOR_NO_ALPHA`.
2021-11-03 23:06:17 +01:00
a2803f3d86
Merge pull request #54072 from KoBeWi/hrcr_is_ded
2021-11-03 17:31:48 +01:00
953a7bce7e
reimplement ping-pong
2021-11-03 13:39:33 +09:00
79d4edfca7
Fix crash in ResourceImporterTexture::_save_stex if webp disabled
...
Fixes #51535 .
2021-11-02 09:17:54 +01:00
3f33e1d7d6
Add functions for getting name and font style from dynamic and bitmap fonts.
...
Add font selection toolbar editor plugin.
2021-10-31 12:40:58 +02:00
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
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