summaryrefslogtreecommitdiff
path: root/scene/resources/primitive_meshes.cpp
AgeCommit message (Collapse)Author
2022-10-13Merge pull request #67336 from jbcolli2/Normal-of-CylinderMeshRémi Verschelde
Fix bug in CylinderMesh when computing normals
2022-10-13Changed normal of CylinderMesh to account for slanted side.jbcolli2
2022-10-08Remove leading spaces from enumerator name hintsHaoyu Qiu
For `PROPERTY_HINT_ENUM` properties, enumerator names can be provided as a comma separated list. There're a few properties that add leading spaces to the names (e.g. `First, Second, Third`). These spaces are included in the Inspector dropdown, which is unexpected. It's better to leave the surrounding spaces untouched because it could be part of the resulting string value (the variable is a string enum). And most other enum hints don't contain surrounding whitespaces. This PR removes the spaces and documents this `PROPERTY_HINT_ENUM` behavior.
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-09-06Rename `range_lerp` to `remap`Micky
2022-08-30Rename Curve/Curve2D/Curve3D/Gradient `interpolate()` to `sample()`Hugo Locurcio
"sampling" is a more accurate term than "interpolating" for what's happening when using that function.
2022-08-26Add ThemeDB, expose previously static Theme methodsYuri Sizov
2022-08-26Merge pull request #64243 from bruvzg/multiline_textmeshRémi Verschelde
2022-08-25Merge pull request #64801 from clayjohn/plane-quadRémi Verschelde
Remove QuadMesh and add orientation parameter to PlaneMesh
2022-08-24Remove QuadMesh and add orientation parameter to PlaneMeshclayjohn
2022-08-23Replace Array return types with TypedArray 2kobewi
2022-08-10Add line breaking support to the TextMesh.bruvzg
2022-08-04Add `TorusMesh`hoontee
2022-07-06Refactor Font configuration and import UI, and Font resources.bruvzg
2022-07-04Use custom key structs, instead of raw hashes for the Label3D and TextMesh, ↵bruvzg
to avoid potential hash collisions.
2022-06-22Fix CapsuleMesh loading issue (radius reset)tefusion
2022-06-20Clean up Hash Functionsreduz
Clean up and do fixes to hash functions and newly introduced murmur3 hashes in #61934 * Clean up usage of murmur3 * Fixed usages of binary murmur3 on floats (this is invalid) * Changed DJB2 to use xor (which seems to be better)
2022-06-11Add suffixes to all nodes and resourcesFireForge
2022-05-25Merge pull request #61355 from bruvzg/text_mesh_fix_fill_alignRémi Verschelde
[TextMesh] Fix incorrectly applied FILL alignment.
2022-05-24Tweak TextMesh decomposition error message to mention self-intersecting linesHugo Locurcio
2022-05-24[TextMesh] Fix incorrectly applied FILL alignment.bruvzg
2022-05-24Merge pull request #61203 from Calinou/cylindermesh-add-cap-propertiesRémi Verschelde
Add properties to disable top/bottom cap generation in CylinderMesh
2022-05-23Fix typos with codespellRémi Verschelde
Using codespell 2.2-dev from current git.
2022-05-23[TextMesh] Do not generate meshes for non-visual glyphs.bruvzg
2022-05-22[TextMesh] Fix cubic cubic Bezier arc processing.bruvzg
2022-05-21Add properties to disable top/bottom cap generation in CylinderMeshHugo Locurcio
2022-05-19Use suffixes for units in nodes and resourcesAaron Franke
2022-05-13Implement TextMesh resource.bruvzg
Apply simulated slant and embolden to the TextServer `gont_get_glyph_contours` results.
2022-05-03Merge pull request #58777 from Sauermann/fix-capsulemesh-tangentRémi Verschelde
Reverse tangents of capsule mesh
2022-04-08Fix navmesh bakingPawel Lampe
- improved mesh data calculation from standalone static colliders so that no VisualServer calls are performed - and thus no VS mutexes need to be locked in case of on-thread baking - improved the same for GridMap's static colliders
2022-03-10Discern between virtual and abstract class bindingsreduz
* Previous "virtual" classes (which can't be instantiated) are not corretly named "abstract". * Added a new "virtual" category for classes, they can't be instantiated from the editor, but can be inherited from script and extensions. * Converted a large amount of classes from "abstract" to "virtual" where it makes sense. Most classes that make sense have been converted. Missing: * Physics servers * VideoStream * Script* classes. which will go in a separate PR due to the complexity involved.
2022-03-05Reverse tangents of capsule meshMarkus Sauermann
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2021-09-28Fixes the normals of SphereMesh when the radius is different from 1Duarte David
2021-09-27QuadMesh remove format ARRAY_FORMAT_INDEXBrian Semrau
2021-08-22Fixes the normals of SphereMesh when the sphere/hemisphere is oblongDuarte David
2021-08-11Make radius & height in CapsuleShape3D independentPouleyKetchoupp
Also changed CapsuleMesh to make settings consistent between render and physics.
2021-07-11added offset for plane mesh and quad meshQbieShay
2021-07-04Allow using ORMMaterial3D by using BaseMaterial3D as a resource hintHugo Locurcio
Previously, only StandardMaterial3D could be defined as an alternative to ShaderMaterial. This also reorders the CanvasItemMaterial property hints to follow alphabetical order (which is enforced by the inspector).
2021-06-23Allow a top and bottom radius equal to 0 in CylinderMeshHugo Locurcio
The CylinderMesh generation code handles this special case and avoids generating the top and bottom faces if their radius is equal to 0. This improves performance by reducing the number of vertices to draw. If both values are set to 0, nothing will be visible but the mesh generation will still succeed. This also improves the CylinderMesh class documentation.
2021-06-03Rename Transform to Transform3D in coreAaron Franke
2021-05-16Fix normals of PrismMeshJohn Wigg
2021-05-01Fix documentation following implementation of particle trailsMarcel Admiraal
2021-04-30Implement Particle Trailsreduz
-Enable the trails and set the length in seconds -Provide a mesh with a skeleton and a skin -Or, alternatively use one of the built-in TubeTrailMesh/RibbonTrailMesh -Works deterministically -Fixed particle collisions (were broken) -Not working in 2D yet (that will happen next)
2021-04-01Merge pull request #42827 from lyuma/rename_bones_blendshapesRémi Verschelde
Allow renaming bones and blendshapes.
2021-02-10Removed _change_notifyreduz
-For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
2021-02-09Initialize class variables with default values in scene/ [2/2]Rafał Mikrut
2021-01-09Use Math_TAU and deg2rad/rad2deg in more places and optimize codeAaron Franke
2021-01-01Update copyright statements to 2021Rémi Verschelde
Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
2020-12-05Rename CubeMesh BoxMeshMarcel Admiraal