Commit Graph

4681 Commits

Author SHA1 Message Date
cf6d8a0f2b Fix CSG gizmos only working on root shapes
(cherry picked from commit 60f3d1d36f)
2022-04-27 12:54:57 +02:00
d088128b43 Remove duplicate editor settings definitions 2022-04-27 15:26:46 +08:00
ba7881bd36 Merge pull request #60366 from adamscott/nav-map-thread-work-pool-3x
Use ThreadWorkPool instead of thread_process_array in NavMap [3.x]
2022-04-26 18:45:53 +02:00
7749346f48 Use ThreadWorkPool instead of thread_process_array in NavMap
Port ThreadWorkPool to 3.x
2022-04-26 09:18:46 -04:00
d60e432575 Merge pull request #60435 from Scony/fix-map-get-path-crash-3.x
[3.x] Fix crash in `GodotNavigationServer::map_get_path`, fixes #60413
2022-04-25 23:19:04 +02:00
3a8104289d Document that glTF classes are only usable in editor builds
Run-time glTF saving/loading is only available in Godot 4.0,
not Godot 3.x.
2022-04-22 19:08:37 +02:00
41d788375a Fix crash in GodotNavigationServer::map_get_path, fixes #60413 2022-04-22 18:19:11 +02:00
64eb2ebf40 Merge pull request #54629 from Gallilus/Fixes-copy-paste-issue-in-the-visual-script-editor-3.x
Fixes copy-paste issue in the visual script editor
2022-04-15 21:19:09 +02:00
c52d842435 NavMap::get_path Fix not resetting least_cost_id 2022-04-14 17:15:39 +02:00
ebaca9d432 Added set_extra_headers() to WebSocketServer
(cherry picked from commit fd4341fba4)
2022-04-13 11:43:49 +02:00
861c5fe567 Fix Visual Script's jump to function relative to zoom
When double-clicking on a function name the graph will now correctly jump to the function relative to the zoom ratio.

(cherry picked from commit e8a326a08f)
2022-04-13 11:43:49 +02:00
6bf7e8e010 String.Capitalize() in C# now matches the behaviour of String::capitalize() in C++
(cherry picked from commit 6c3b6664b5)
2022-04-13 11:43:49 +02:00
d65ec1f211 Merge pull request #60049 from timothyqiu/vs-filter-scroll 2022-04-12 21:03:28 +02:00
36dbcae2c7 Merge pull request #59994 from dsnopek/webxr-standard-mapping 2022-04-11 20:57:30 +02:00
aac7b5d1d1 Merge pull request #59886 from theoway/fix_vseditor_var/sig_node_rename 2022-04-11 17:54:12 +02:00
931bc4592a Fixes variable node not showing updated name in visualscript editor 2022-04-11 17:38:05 +05:30
79317f9cb1 BulletPhysicsServer::area_get_space: null check
This is now the same as e.g. body_get_space.
2022-04-10 23:00:50 +02:00
7c80d03669 Scroll to selected item when filtering VisualScript nodes 2022-04-09 10:14:09 +08:00
2a6199aa0f Add WebXRInterface.xr_standard_mapping flag to attempt to convert button/axis ids to match other AR/VR interfaces 2022-04-08 10:46:38 -05:00
cfdb99a741 Merge pull request #57411 from Scony/fix-threaded-navmesh-baking-3.x
Fix navmesh baking
2022-04-05 19:59:32 +02:00
21c3048397 Add missing argument names in bindings 2022-04-04 12:56:59 +02:00
3035b9c44c Fix navmesh baking, fixes #57148
- 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-04-02 23:20:41 +02:00
99c07c92eb Merge pull request #59793 from vnen/type-info-release-3.x 2022-04-02 00:08:47 +02:00
663978e8ba GDScript: Properly check type info in release builds
This makes sure native methods and properties have the actual type
checked to compare for compatibility and inference.
2022-04-01 18:20:37 -03:00
fce09f19dc Merge pull request #58209 from Scony/fix-navi-get-simple-path
Fix `get_simple_path` behavior in 2D & 3D
2022-04-01 08:46:54 +02:00
17ce0fcc7c Simplify FBX importer project settings registering 2022-03-29 15:00:31 +08:00
ad0c4bf32d Replace copies with constant refs
(cherry picked from commit 1a13de0f8d)
2022-03-29 00:08:29 +02:00
1f080e203d Use 3001 instead of 1001 when destroying a websocket.
(cherry picked from commit b659cfbd53)
2022-03-28 23:50:00 +02:00
fa9e2f8e21 Merge pull request #59522 from bruvzg/mo_and_woff2_3x
[3.x] Add binary MO translation file and brotli decoder and WOFF2 support.
2022-03-28 09:00:54 +02:00
c18df50eb6 Merge pull request #59521 from raulsntos/csproj-globbing-3.x 2022-03-25 20:40:11 +01:00
fd2fba7c2c Add binary MO translation file support. Add brotli decoder and WOFF2 support.
Use smaller .mo files instead of .po, if gettext is available.
Convert editor fonts to .woff2 format.
2022-03-25 19:51:39 +02:00
3086d7c035 Avoid modifying csproj globbing includes on remove
Check if the found globbing include already matches the given path on
removing scripts to avoid modifying users' csproj files.
2022-03-25 16:45:25 +01:00
1d16153881 collide_shape: return contact points in world space 2022-03-24 20:27:36 +01:00
b087538119 Add an XML schema for documentation
This makes it easier to spot syntax errors when editing the
class reference. The schema is referenced locally so validation
can still work offline.

Each class XML's schema conformance is also checked on GitHub Actions.
2022-03-16 23:01:02 +01:00
871a73341b Fix crash when is-operator right-hand-side is null 2022-03-13 23:17:25 +08:00
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
743f2d232a Use RTR() for VisualScriptNode captions and texts
(cherry picked from commit 77f80aa4ee)
2022-03-12 15:10:28 +01:00
a17c6e5325 Fix normals computation at the 'seam' of smoothed torus shape
(cherry picked from commit 8bcbaff411)
2022-03-12 14:45:21 +01:00
1cf444aff0 Merge pull request #58686 from vnen/gdscript-warn-export-type-mismatch 2022-03-10 21:12:05 +01:00
1639b3a6a9 Merge pull request #58674 from Calinou/smooth-trimesh-collision-always-setting-3.x 2022-03-10 21:11:44 +01:00
622ef48dae Fixed ccd enabled by default on Bullet bodies
It was due to main_shape_changed being called two times for each
added body. The first time it disables ccd, which sets the internal ccd
threshold to be 10000. The second time, it enables ccd again because
the internal threshold is > 0.

Bodies are now consistently set with a ccd threshold of 0 when ccd is
disabled.

This was causing crashing asserts in Bullet when adding bodies in some
scenarios, in btVector3::normalize():
btAssert(!fuzzyZero());

These crashes will still happen with ccd enabled.

(cherry picked from commit faca8b77aa)
2022-03-10 19:02:01 +01:00
a4088a995c Properly handle CSGShape parent and visibility updates 2022-03-09 17:32:35 -06:00
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
413689559c Always register the Smooth Trimesh Collision project setting
This ensures the project setting never disappears from the editor,
even if the current physics engine is GodotPhysics.

This also adds documentation for the Smooth Trimesh Collision
project setting.
2022-03-02 18:50:21 +01:00
f2166ba92f GDScript: Don't coerce default values to the export hint type
This behavior is inconsistent with non tools builds and can create
issues. Instead, a warning is emitted if there's a type mismatch. If the
type can't be converted, an error is shown instead.

For the editor it gives a converted value to avoid issues with the
property editor, which expects the correct type.
2022-03-02 12:26:17 -03:00
0959ff2fe4 Add sanity checks to lightmap unwrap texel size
(cherry picked from commit d0fd5fd3c7)
2022-02-24 13:31:17 +01:00
2e75471a48 Fix GLTF exporter crash when using GridMap 2022-02-20 22:02:23 +08:00
c0d9e4fd07 Fix get_simple_path behavior in 2D, fixes #56852 2022-02-17 18:23:34 +01:00
9135074cc2 Fix VisualScript crash when using Set Index node
(cherry picked from commit 1262d331c0)
2022-02-17 09:54:36 +01:00
b2c012a8c8 Add GridMap.get_used_cells_by_item 2022-02-16 13:03:50 +08:00