summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2021-09-27Auto LOD fixes and improvementsjfons
* Fixed LODs for shadow meshes. * Added a merging step before simplification. This helps with tesselated meshes that were previously left untouched. The angle difference at wich edges ar considered "hard" can be tweaked as an import setting. * LODs will now start with the highest decimation possible and keep doubling (approximately) the number of triangles from there. This makes sure that very low triangle counts are included when possible. * Given more weight to normal preservation. * Modified MeshOptimizer to report distance-based error instead of including attributes in the reported metrics. * Added attribute transference between the original mesh and the various LODs. Right now only normals are taken into account, but it could be expanded to other attributes in the future.
2021-09-24Replace `#pragma once` by traditional include guards for consistencyHugo Locurcio
`#pragma once` was used in a few files, yet we settled on using traditional include guards instead. The PooledList template comment was also moved to allow editors such as Visual Studio Code to display the comment when hovering PooledList. `app.h` was renamed to `app_uwp.h` to be less generic for the include guard.
2021-09-23Construct values only when necessary.Anilforextra
2021-09-22[ClassDB] Unify construct/extension retrieval.Fabio Alessandrelli
2021-09-22[Core] Add ClassDB functions to retrieve/construct extensions.Fabio Alessandrelli
Calling the constructor alone is not enough if the class to be instantiated is not a base class. This commit adds two functions, one for retrieving the the extension class reference, the other to construct an instance using the constructor and the extension class reference.
2021-09-21Merge pull request #52878 from AnilBK/add-get-centerRémi Verschelde
2021-09-21Add Get Center Method for Rect2/Rect2i and AABB.Anilforextra
2021-09-21Merge pull request #52877 from Calinou/add-print-verboseRémi Verschelde
Add `print_verbose()` built-in function to print in verbose mode only
2021-09-21Add `print_verbose()` built-in function to print in verbose mode onlyHugo Locurcio
This can be used as a shorthand for: if OS.is_stdout_verbose(): print("...") Unlike `print_debug()`, this works in release builds too and can be toggled off in debug builds.
2021-09-21Improve implementation of builtin action overridesEric M
2021-09-20Merge pull request #52513 from Ev1lbl0w/fix_path_double_slashRémi Verschelde
Fix path with multiple slashes not being corrected on templates
2021-09-20Merge pull request #52398 from deakcor/dev-transformRémi Verschelde
2021-09-19Expose get_skew for transform2d and add new constructorVincent D
Expose set_scale and set_skew for transform2d Replacing float by real_t Adding const parameters Updated transform2d doc
2021-09-17Allow indexing of String values in scripting languagesGeorge Marques
2021-09-17Merge pull request #52450 from aaronfranke/they-came-from-scaleRémi Verschelde
Replace Vector3.to_diagonal_matrix with Basis.from_scale
2021-09-17Allow comparing equality between builtin types and nullGeorge Marques
2021-09-17Replace Vector3.to_diagonal_matrix with Basis.from_scaleAaron Franke
2021-09-16Merge pull request #52734 from lucypero/thread_override_masterRémi Verschelde
2021-09-16Allow for platform Thread implementation overrideLucy
2021-09-16Merge pull request #52739 from BastiaanOlij/gdextension_array_indexRémi Verschelde
2021-09-16Merge pull request #52740 from akien-mga/os-get_locale-languageRémi Verschelde
Implement `OS::get_locale_language()` helper method
2021-09-16Add GD extensions operator functions for arraysBastiaan Olij
2021-09-16Merge pull request #52358 from kleonc/astar_error_messagesRémi Verschelde
`AStar` Add error messages
2021-09-16Merge pull request #52735 from BastiaanOlij/gdextension_property_groupRémi Verschelde
Add property group and subgroup registration to extensions
2021-09-16Implement `OS::get_locale_language()` helper methodRémi Verschelde
This method extracts the 2 or 3-letter language code from `OS::get_locale()`, making it easier for users to identify the "main" language code for users that might have different OS locales due to different OS or region, but should be matched to the same translation (e.g. "generic" Spanish). Fixes #40703.
2021-09-15Merge pull request #52571 from timothyqiu/expose-enumJuan Linietsky
Expose enum related methods in ClassDB
2021-09-16Add property group and subgroup registration to extensionsBastiaan Olij
2021-09-15Fix String::num_real and String test cases when compiling with doublesAaron Franke
2021-09-15Merge pull request #52693 from akien-mga/fixup-inputmap-macos-overrideRémi Verschelde
InputMap: Fixup `macos` feature tag overrides after #52291
2021-09-15InputMap: Fixup `macos` feature tag overrides after #52291Rémi Verschelde
Fixes #52691.
2021-09-15--single-window is passed through project manager.Jacob Edie
This means you can start godot with --single-window
2021-09-15Merge pull request #52123 from lightspot21/fix-placement-new-warningRémi Verschelde
Silence false-positive warning for malformed placement new on GCC 11.1
2021-09-15Merge pull request #52562 from BastiaanOlij/gd_extensions_register_driversRémi Verschelde
Add driver types to GD extension initialisation levels
2021-09-15Merge pull request #52291 from Calinou/inputmap-rename-osx-macosRémi Verschelde
Rename `osx` to `macos` in input map feature tag handling
2021-09-15Rename `osx` to `macos` in input map feature tag handlingHugo Locurcio
This follows the general feature tag rename for 4.0.
2021-09-14Clean convex hull decomposition codePouleyKetchoupp
Remove unnecessary conversion between triangle data and vertex data whenever possible.
2021-09-15Fix placement new on zero-sized region warning on GCC 11.1Grigoris Pavlakis
On latest (11.1 as of this commit) GCC, the following warning is continuously issued during build: warning: placement new constructing an object of type 'SafeNumeric<unsigned int>' and size '4' in a region of type 'uint32_t*' {aka 'unsigned int*'} and size '0' [-Wplacement-new=] This happens because on 98ceb60eb4 the new operator override used was dropped and replaced with standard placement new. GCC sees the subtraction from the pointer and complains as it thinks that the SafeNumeric is placed outside an allocation, not knowing that the address requested is already inside one. After suggestions, the false positive is silenced, with no other changes.
2021-09-14Merge pull request #52613 from V-Sekai/fix_custom_sync_commandsFabio Alessandrelli
Fix custom multiplayer sync commands
2021-09-14Merge pull request #52535 from e8newallm/52490-type_conversionRémi Verschelde
Added explicit type conversion to uint32_t
2021-09-13Revert some URLs from the "Replace HTTP URLs with HTTPS" PRAaron Franke
2021-09-13Merge pull request #50375 from Paulb23/code_edit_unit_testsRémi Verschelde
2021-09-13Merge pull request #52049 from theraot/masterRémi Verschelde
2021-09-13Added explicit type conversionsMatthew Newall
2021-09-13Add driver types to GD extension initialisation levelsBastiaan Olij
2021-09-12Fix custom multiplayer sync commandsSaracenOne
2021-09-11Expose enum related methods in ClassDBHaoyu Qiu
2021-09-10Merge pull request #52406 from ellenhp/libvorbisJuan Linietsky
Replace stb_vorbis with libvorbis
2021-09-10Merge pull request #52229 from lawnjelly/basis_quat_warningMax Hilbrunner
Improve Basis::get_quaternion error message
2021-09-10Fix path with multiple slashes not being corrected on templatesRicardo Subtil
2021-09-09Replace stb_vorbis with libogg+libvorbisEllen Poe