Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-04-13 | Color: Rename `to_srgb`/`to_linear` to include base color space | Rémi Verschelde | |
This helps reduce confusion around sRGB <> Linear conversions by making both input and output color spaces explicit. | |||
2022-04-13 | Rearrange TriangleMesh stack level incrementation to fix MSVC compiler ↵ | SaracenOne | |
optimization bug | |||
2022-04-06 | Fix some issues found by cppcheck. | bruvzg | |
2022-04-05 | Fix DynamicBVH crash after #59867 | Rémi Verschelde | |
I made a wrong assumption that initialization the other pointer in the union would properly initialize the `childs` array. | |||
2022-04-04 | Zero initialize all pointer class and struct members | Rémi Verschelde | |
This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr. | |||
2022-03-23 | Add protective checks for invalid handle use in BVH | lawnjelly | |
Adds DEV_ASSERTS that will halt at runtime if the BVH is misused with invalid IDs, and adds ERR_FAIL macros to prevent calling with invalid IDs. Any such misuse is a bug in the physics, but this should flag any errors quickly. | |||
2022-03-20 | Rename `AStar` to `AStar3D` | Yuri Roubinsky | |
2022-03-17 | Merge pull request #59229 from ↵ | Rémi Verschelde | |
taigi100/Bugfix-#59215-Standard-color-name-returns-non-standard-color-code | |||
2022-03-17 | Update color constants to use HEX codes | taigi100 | |
2022-03-16 | Fix blend animation to solve TRS track bug & blend order inconsistency | Silc 'Tokage' Renew | |
2022-03-09 | Remove VARIANT_ARG* macros | reduz | |
* Very old macros from the time Godot was created. * Limited arguments to 5 (then later changed to 8) in many places. * They were replaced by C++11 Variadic Templates. * Renamed methods that take argument pointers to have a "p" suffix. This was used in some places and not in others, so made it standard. * Also added a dereference check for Variant*. Helped catch a couple of bugs. | |||
2022-03-07 | VariantUtility: Unexpose `Math::range_step_decimals` | Rémi Verschelde | |
This method was meant only as a convenience for editor code to allow using a step of 0 to disable snapping. It was exposed by mistake when refactoring GlobalScope. | |||
2022-03-07 | Protection for array operator for Vector2 / 3 in DEV builds | lawnjelly | |
A previous PR had changed the array operator to give unbounded access. This could cause crashes where old code depended on this previous safe behaviour. This PR adds DEV_ASSERT macros for out of bound access to DEV builds, allowing us to quickly identify bugs in calling code, without affecting performance in release or release_debug editor builds. | |||
2022-03-04 | Merge pull request #57630 from lawnjelly/bvh4_templated_checks | Rémi Verschelde | |
[4.x] BVH - Sync BVH with 3.x | |||
2022-03-01 | Merge pull request #58488 from lawnjelly/float_literals_casts | Rémi Verschelde | |
2022-02-26 | Use is_zero_approx and fix spelling in CameraMatrix invert | Aaron Franke | |
2022-02-24 | Float literals - fix main primitives to use real_t casting | lawnjelly | |
Uses (real_t) casting to ensure appropriate calculations are done in 32 bit where real_t is compiled as 32 bit. | |||
2022-02-19 | Core: Use forward declares for Vector3/Vector3i | Rémi Verschelde | |
Add add Vector3 operator in Vector3i. | |||
2022-02-16 | Style: Cleanup single-line blocks, semicolons, dead code | Rémi Verschelde | |
Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported. | |||
2022-02-12 | Implement cubic_interpolate() as MathFunc for refactoring | Silc 'Tokage' Renew | |
2022-02-10 | Float literals - fix main primitives to use .f | lawnjelly | |
Converts float literals from double format (e.g. 0.0) to float format (e.g. 0.0f) where appropriate for 32 bit calculations. | |||
2022-02-09 | Fix Vector2 and Vector2i coord access via operator[] | Bartłomiej T. Listwon | |
2022-02-07 | Merge pull request #57729 from TechnoPorg/astar-fix-invalid-include | Rémi Verschelde | |
Remove a cross include from a_star.cpp | |||
2022-02-06 | Remove a cross include from a_star.cpp | TechnoPorg | |
2022-02-06 | Fix integer vector mul/div operators and bindings. | reduz | |
* Vector2i and Vector3i mul/div by a float results in Vector2 and Vector3 respectively. * Create specializations to allow proper bindings. This fixes #44408 and supersedes #44441 and keeps the same rule of int <op> float returnig float, like with scalars. | |||
2022-02-05 | Merge pull request #57620 from Haydoggo/expression-exp-fix | Rémi Verschelde | |
Fix Expression's parsing of positive exponent literals | |||
2022-02-05 | Make parser treat all exponent literals as float | Hayden | |
2022-02-04 | Merge pull request #57623 from akien-mga/core-math-struct-em-all | Rémi Verschelde | |
2022-02-04 | BVH - Sync BVH with 3.x | lawnjelly | |
Templated mask checks and generic NUM_TREES Fix leaking leaves | |||
2022-02-04 | Core: Make all Variant math types structs | Rémi Verschelde | |
Some were declared as structs (public by default) and others as classes (private by default) but in practice all these math types exposed as Variants are all 100% public. | |||
2022-02-04 | Core: Move Vector2i to its own `vector2i.h` header | Rémi Verschelde | |
Also reduce interdependencies and clean up a bit. | |||
2022-02-04 | Core: Move Rect2i to its own `rect2i.h` header | Rémi Verschelde | |
And take the opportunity to improve interdependencies a bit with forward declares where possible. | |||
2022-02-04 | Cleanup and move char functions to the `char_utils.h` header. | bruvzg | |
2022-02-04 | Added hex and bin literal support to Expression parser | Hayden Leete | |
fixed formatting | |||
2022-02-02 | Vectors: Use clear() and has(). | Anilforextra | |
Use clear() instead of resize(0). Use has() instead of "find(p_val) != -1". | |||
2022-02-01 | Merge pull request #57469 from Sauermann/fix-rect2i-intersect | Rémi Verschelde | |
2022-01-31 | Fix incorrect Rect2i calculations: intersects and encloses | Markus Sauermann | |
Clarify expand documentation | |||
2022-01-30 | Add support for the escaped UTF-16 and UTF-32 Unicode characters in the ↵ | bruvzg | |
scripts and expressions. | |||
2022-01-20 | Rename or refactor macros to avoid leading underscores | Omar Polo | |
These are not used consistently and some can conflict with system-specific defines. While here, also delete some unused macros. | |||
2022-01-20 | Add nodiscard to core math classes to catch c++ errors. | lawnjelly | |
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-14 | Remove zero size checks from Rect2 grow methods | Aaron Franke | |
2022-01-13 | Merge pull request #56740 from AnilBK/camera-pre-allocate | Rémi Verschelde | |
2022-01-13 | CameraMatrix: Pre-allocate Vector in get_projection_planes(). | Anilforextra | |
2022-01-12 | Merge pull request #56492 from akien-mga/remove-author-docstrings | Rémi Verschelde | |
2022-01-12 | Use List Initializations for Vectors. | Anilforextra | |
2022-01-07 | Merge pull request #53618 from aaronfranke/signed-angle-vec3i | Rémi Verschelde | |
Add length and length_squared to Vector2i/3i | |||
2022-01-07 | Merge pull request #55877 from aaronfranke/slerp-same-len | Rémi Verschelde | |
2022-01-07 | Fix typos with codespell | Rémi Verschelde | |
Using codespell 2.1.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang ans ba curvelinear dof doubleclick fave findn gird inout leapyear lod merchantibility nd numer ois ony que readded seeked statics | |||
2022-01-06 | Allow Vector2/3 slerp values to have any length | Aaron Franke | |
2022-01-06 | Add length and length_squared to Vector2i/3i | Aaron Franke | |