MythTitans
c96336449e
Prevent non-smoothed face normals to participate to smoothed face normals
...
(cherry picked from commit ec2984f7c7
)
2022-03-12 15:10:28 +01:00
MythTitans
a17c6e5325
Fix normals computation at the 'seam' of smoothed torus shape
...
(cherry picked from commit 8bcbaff411
)
2022-03-12 14:45:21 +01:00
hoontee
a4088a995c
Properly handle CSGShape
parent and visibility updates
2022-03-09 17:32:35 -06:00
MythTitans
d13e1278ac
Fix normals computation at the 'seam' of smoothed sphere and cylinder shapes
...
(cherry picked from commit 509e03c821
)
2022-03-09 09:53:26 +01:00
Hugo Locurcio
1b505ef8ca
Document performance limitations with CSG nodes, link to tutorial
2022-02-07 14:01:56 +01:00
Hugo Locurcio
1e1fb145b3
Improve CSGPolygon3D documentation
...
- Describe why polygon triangulation usually fails in the error message.
2022-01-21 19:59:56 +01:00
Rémi Verschelde
a627cdafc5
Update copyright statements to 2022
...
Happy new year to the wonderful Godot community!
2022-01-13 15:54:13 +01:00
SaracenOne
b7273b6f7a
Fix selection of CSG objects
2022-01-07 20:08:42 +00:00
lawnjelly
3d981b8265
Add option to use handles to RID
...
Adds an option to compile an alternative implementation for RIDs, which allows checks for erroneous usage patterns as well as providing leak tests.
2021-12-06 14:43:34 +00:00
Rémi Verschelde
3ac2999f22
Replace Godot docs URL with $DOCS_URL
in XML class reference
2021-11-15 17:22:47 +01:00
Rémi Verschelde
14c366ddd7
Bump version to 3.5-beta
2021-11-05 16:10:17 +01:00
Rémi Verschelde
42d385b312
clang-format: Disable alignment of operands, too unreliable
...
Sets `AlignOperands` to `DontAlign`.
`clang-format` developers seem to mostly care about space-based indentation and
every other version of clang-format breaks the bad mismatch of tabs and spaces
that it seems to use for operand alignment. So it's better without, so that it
respects our two-tabs `ContinuationIndentWidth`.
2021-10-28 13:23:38 +02:00
M. Huri
37ccfb18ff
Fixed a typo in csg module
2021-10-12 11:13:29 +07:00
Stéphane Fortin
58a4035017
Fix merging error path_simplify_angle CSGPolygon
...
[3.x] Quick fix on path_simplify_angle introduce here https://github.com/godotengine/godot/pull/52509#issuecomment-933331579
after merging #52509
2021-10-05 21:19:23 -04:00
jitspoe
d7af7a9b3b
CSGPolygon fixes and features: Added angle simplification, UV tiling distance option, and interval type, which allows distance-based intervals (old) and subdivision-based intervals (new to 3.4).
2021-10-04 12:14:44 +02:00
Haoyu Qiu
acd15e4cd2
Don't update CSG Shape when not inside tree
...
(cherry picked from commit 07042b4044
)
2021-09-21 17:14:59 +02:00
Rémi Verschelde
f0b37b1519
doc: Point URLs to 3.4 version of the online docs
2021-08-12 17:08:10 +02:00
Marcel Admiraal
2449b581dd
Fix multiple issues with CSGPolygon
2021-08-12 09:55:18 +01:00
Rémi Verschelde
f5836b40d4
doc: Use self-closing tags for return
and argument
...
For the time being we don't support writing a description for those, preferring
having all details in the method's description.
Using self-closing tags saves half the lines, and prevents contributors from
thinking that they should write the argument or return documentation there.
(cherry picked from commit 7adf4cc9b5
)
2021-08-03 10:20:19 +02:00
Haoyu Qiu
f4208ad1e8
Do nothing when dragging CSGBox handle perpendicular to the camera
...
(cherry picked from commit 0f1e107ede
)
2021-08-03 09:33:24 +02:00
lawnjelly
e06cd3042f
Portals - Fix CSG updates on room conversion
...
Due to a quirk in CSG Shapes, updating is usually deferred to the next frame. This is problematic as we need to read back the geometry on the first frame when converting levels.
This PR adds a function to CSGShape to force immediate updating (if dirty), and calls it during room conversion.
2021-07-29 12:41:23 +01:00
Aaron Franke
48308a5e0a
Fix CSGSphere3D mesh creation
...
(cherry picked from commit b2156b22ea
)
2021-07-28 15:34:00 +02:00
Rafał Mikrut
cb5faca39a
Prevent setting too big or too small Collision Mask and Layer
2021-06-27 17:40:07 +02:00
Marcel Admiraal
a2204f3cb3
Fix UV mapping on CSGSphere
2021-05-29 19:13:57 +01:00
Rémi Verschelde
140350d767
Style: Enforce braces around if blocks and loops
...
Using clang-tidy's `readability-braces-around-statements`.
https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2021-05-05 15:02:01 +02:00
Rémi Verschelde
a828398655
Style: Replaces uses of 0/NULL by nullptr (C++11)
...
Using clang-tidy's `modernize-use-nullptr`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
2021-05-04 16:30:23 +02:00
Rémi Verschelde
b5e1e05ef2
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
2021-05-04 14:45:16 +02:00
Rémi Verschelde
64a63e0861
Style: clang-format: Disable AllowShortCaseLabelsOnASingleLine
2021-05-04 14:45:15 +02:00
Rémi Verschelde
3d15f04668
Style: clang-format: Disable AllowShortIfStatementsOnASingleLine
2021-05-04 14:45:15 +02:00
Rémi Verschelde
6e600cb3f0
Style: Set clang-format Standard to c++14
2021-05-04 14:45:15 +02:00
Johannes Witt
41a016c1e8
Fix CSG Path Polygon cache being removed after connect
...
fixes #30229
(cherry picked from commit bab36f1273
)
2021-04-29 12:29:28 +02:00
Marcel Admiraal
a68c88adfd
Update CSGMesh3D's documentation to explain how vertex normals are used
2021-04-27 18:37:19 +01:00
Rémi Verschelde
c3272997cd
doc: Update classref headers with 3.4 version
2021-04-26 13:15:29 +02:00
Marcel Admiraal
cfccf77edb
Fix CSGMesh undo not refreshing gizmo
...
(cherry picked from commit 4311c2f66e
)
2021-04-26 12:52:15 +02:00
Marcel Admiraal
decdf4fcbc
Fix empty CSGShape error
2021-04-25 08:01:14 +01:00
Rémi Verschelde
015973df04
doc: Make all tutorial links point to 3.3 branch of docs
2021-03-26 10:43:43 +01:00
Rémi Verschelde
1aba997d75
doc: Sync classref with 3.3 version bump
2021-03-23 13:40:34 +01:00
Rémi Verschelde
49646383f1
Update copyright statements to 2021
...
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 🎆
(cherry picked from commit b5334d14f7
)
2021-01-13 16:17:06 +01:00
hoontee
85cc31332a
Properly handle empty CSGShapes
...
(cherry picked from commit 24a6aac472
)
2020-12-29 16:02:02 +01:00
Rémi Verschelde
4287af5148
doc: Make docs.godotengine.org links point to 3.2 branch
2020-10-19 16:10:01 +02:00
Rémi Verschelde
0a26217579
Merge pull request #41200 from madmiraal/fix-38001-3.2
...
[3.2] Mark the first shape as inside, not the second shape, when CSG shapes are co-planer.
2020-10-01 13:50:19 +02:00
Marcel Admiraal
808865af97
Don't attempt to insert points into degenerate triangles.
...
Use a simpler degenerate triangle check that calculates area.
(cherry picked from commit 3521239d96
)
2020-09-24 14:43:05 +02:00
hoontee
aa0221f0fb
Transform CSGShape collision when necessary
...
(cherry picked from commit fc8574fbac
)
2020-09-24 14:43:05 +02:00
hoontee
8ce88d38f2
Properly handle empty CSGCombiners
...
(cherry picked from commit 001b6075cb
)
2020-09-24 14:43:05 +02:00
Rémi Verschelde
c8859f0463
Fix typos with codespell
...
Using codespell 1.17.1.
Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
fave
findn
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF
$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2020-09-18 14:09:51 +02:00
Hugo Locurcio
cc3b69cf7b
Reference the online documentation in collision layer/mask properties
...
See https://github.com/godotengine/godot-docs/pull/3863 .
(cherry picked from commit c73c327bab
)
2020-08-31 15:55:11 +02:00
Marcel Admiraal
557dce8e72
Mark the first shape as inside, not the second shape, when CSG shapes are
...
co-planer.
2020-08-12 07:28:33 +01:00
Marcel Admiraal
c8d8134288
Ensure CSG parent's _make_dirty() is called when entering a tree.
...
(cherry picked from commit 9be7b30f35
)
2020-07-30 22:45:17 +02:00
Marcel Admiraal
22ff17793c
Use is_equal_approx() instead of vertex_snap when checking if ray is
...
colliding with equiplanar CSG faces.
2020-06-29 19:48:47 +01:00
Marcel Admiraal
8e120230a1
Create degenerate triangles when inserting an edge into a CSG face.
...
They will be deleted when the faces are merged, but their edges are
needed for merging faces.
2020-06-29 16:40:53 +01:00