Commit Graph

31791 Commits

Author SHA1 Message Date
lawnjelly c4d44e3826
Fix lighting_dirty flag bug
In rare circumstances, changing the geometry data attached to an instance, there was the opporunity for the lighting_dirty flag to get out of sync, which could lead to access to a stale light RID, and warnings or worse.

This PR fixes the problem by ensuring the lighting is always updated on the instance when first adding GeometryData.

(cherry picked from commit 26e93dc5c6)
2021-12-14 17:30:16 +01:00
Aaron Franke e147fc3428
[3.x] Misc build system fixes
(cherry picked from commit 7bf7bd70ac)
2021-12-14 17:29:59 +01:00
raphaelazev 37a8a615e5
Added check to get_all_locales to avoid adding duplicate locales to array
(cherry picked from commit 82527df55c)
2021-12-14 17:29:20 +01:00
Haoyu Qiu 1230169ad1
Fix broken links in Class Reference
(cherry picked from commit b1153f8829)
2021-12-10 17:30:31 +01:00
Rémi Verschelde 6fb47a271f
i18n: Remove deleted translations from PO files
Since we bundle the whole files in the editor binary, they actual impact the
binary size needlessly.

Automate it via `make merge`.
2021-12-10 11:49:04 +01:00
Rémi Verschelde f4b3c3ff09
i18n: Sync classref translations with Weblate 2021-12-10 11:46:57 +01:00
Rémi Verschelde fd86272ca0
i18n: Sync editor translations with Weblate 2021-12-10 11:39:33 +01:00
Rémi Verschelde 2813713be7
Sync controller mappings DB with SDL2 community repo
Synced with gabomdq/SDL_GameControllerDB@348cfa347f.

(cherry picked from commit 03e105f677)
2021-12-10 11:19:21 +01:00
ne0fhyk 522c0dd6b6
Add support for configuring the xr hand tracking frequency mode
(cherry picked from commit 9d22ad3c9b)
2021-12-09 23:05:20 +01:00
Fredia Huya-Kouadio 605502a0d2
Enable configuration of the `android:excludeFromRecents` activity attribute.
(cherry picked from commit cfa81ff32a)
2021-12-09 23:03:42 +01:00
Fredia Huya-Kouadio 0ed8be946f
Add configs to specify the min and target sdk versions.
(cherry picked from commit 65cfa28cce)
2021-12-09 23:02:13 +01:00
Francois Belair 77746ebed5
Remove extraneous return to LSP
(cherry picked from commit ad01201f34)
2021-12-09 22:08:21 +01:00
Cory Petkovsek 686780e289
Clears RIDs wherever they are freed by VisualServer or PhysicsServer and possibly reused. Fixes #53374
(cherry picked from commit 3d20218dae)
2021-12-09 22:02:00 +01:00
lawnjelly cd371c45b7
Fix leaking environment RIDs in GLES2
This PR adds the code necessary to correctly free environments in GLES2, which was previously missing causing them to leak.

(cherry picked from commit 7134ef90bb)
2021-12-09 12:08:42 +01:00
Hugo Locurcio c089e687cf
Document that RigidBody angular velocity is in degrees per second
This will be changed to radians per second in Godot 4.0, but it can't
be changed in 3.x to preserve compatibility with existing projects.

(cherry picked from commit 2fe15124de)
2021-12-09 12:08:10 +01:00
Luis Sanchez 57927ff097
Fix files_dropped in HTML5 export.
(Ignore trailing slash when creating the temporary directory)

(cherry picked from commit 40f26cb260)
2021-12-09 12:06:14 +01:00
Raul Santos a10372fe9a
Expose `ScriptEditor::edit` to scripting
Exposes a method in `EditorInterface` to open scripts on a specified
line and column. This method handles if the internal or the external
editor should be used.

(cherry picked from commit 9535831866)
2021-12-09 12:06:12 +01:00
Rémi Verschelde 6e1bcf9390
Revert "Print a warning with unknown SCons variables to ease troubleshooting"
This reverts commit 60d1200a26.
2021-12-08 12:13:20 +01:00
bruvzg fa3f071e21
[macOS] Fix crash handler not printing function names on M1 Macs.
(cherry picked from commit c8037ef2e5)
2021-12-08 10:38:43 +01:00
Univeous 42e3187560
Fix UI navigation with joysticks
(cherry picked from commit cf788ae684)
2021-12-07 12:16:05 +01:00
Yuri Sizov e77c6aaba7
Sort and group theme properties in docs, improve formatting for theme and enums
(cherry picked from commit ebd8101546)
2021-12-07 12:14:59 +01:00
Raffaele Picca d5aa00c2cb
Fix for double use of seed in random Particle shader variables.
(cherry picked from commit 20568b9768)
2021-12-07 12:01:52 +01:00
Rémi Verschelde 14f92f9944
Revert "Fix particles emitting at old location"
(cherry picked from commit ee1877e63e)
2021-12-07 10:56:45 +01:00
lawnjelly 1b5832494a
Fix incorrect RID cleanup in Rasterizers
Proper cleanup for GLES3 RIDs (preventing leak reports), and added missing destructor for RasterizerSceneGLES2.

(cherry picked from commit 6f4c0b95fc)
2021-12-07 09:14:40 +01:00
Francois Belair 97958e2a38
Prevent LSP adding signal func to non GDScripts
(cherry picked from commit 66f1b4bf66)
2021-12-07 09:14:32 +01:00
Haoyu Qiu 8ba1b94187
Fix EditorPlugin.remove_inspector_plugin() instance cleanup
(cherry picked from commit da94b61d09)
2021-12-07 09:14:32 +01:00
Manolis Papadeas 8c59dbda33
Fix link to the supported image formats in the Image class
It previously linked to this page which doesn't exist. https://docs.godotengine.org/en/latest/getting_started/workflow/assets/importing_images.html#supported-image-formats

Now, it should link here: https://docs.godotengine.org/en/latest/tutorials/assets_pipeline/importing_images.html#supported-image-formats

(cherry picked from commit c01c4c687b)
2021-12-07 09:14:31 +01:00
Hugo Locurcio 6ff6c503d0
Document SceneTreeTimer being freed automatically when elapsed
The note was present in the SceneTree `create_timer()` class
documentation, but not in the SceneTreeTimer class documentation.

(cherry picked from commit 796ea60d11)
2021-12-07 09:14:31 +01:00
Raffaele Picca 47f9a316ce
Fix Ring-Axis parameter being always visible
(cherry picked from commit 2f69caaff3)
2021-12-07 09:14:31 +01:00
Vincent 2c7f6832ae
AudioStreamMP3: expose loop properties to the editor
(cherry picked from commit 8263646f68)
2021-12-07 09:14:31 +01:00
Marcel Admiraal ca3ab75697
Allow any kind of Mesh to be added to an EditorSpatialGizmo
(cherry picked from commit e0729b9c79)
2021-12-07 09:14:31 +01:00
kleonc d3b0436cfb
Clarify Transform.xform_inv docs
(cherry picked from commit c20d097636)
2021-12-07 09:14:31 +01:00
Yuri Sizov 3d0676a588
Allow scrolling theme preview when the control picker is active
(cherry picked from commit eb98210be4)
2021-12-07 09:14:31 +01:00
Raul Santos 34bdca36de
Skip script property in remote object property list
(cherry picked from commit ba3e1d6ced)
2021-12-07 09:14:30 +01:00
kobewi 03bfedc67c
Improve store_string() description
(cherry picked from commit 09b1fc1956)
2021-12-07 09:14:27 +01:00
Rémi Verschelde 5a06859bd7
Merge pull request #55673 from lawnjelly/rids_34_rasterizersync 2021-12-07 09:14:07 +01:00
lawnjelly bf785444ff [3.4] Cutdown version of RID fixes to sync with 3.5 RID handles
The RID Handles PR introduced a couple of bug fixes, they are added here without the RID handles functionality in order to keep 3.4 and 3.x roughly in sync, allowing further fixes to RID lifetimes to be backported.
2021-12-06 16:43:27 +00:00
Yuri Sizov fce6e13034
Make default/project theme wait for modules before initializing
(cherry picked from commit 33fb44223f)
2021-12-02 17:32:36 +01:00
Hugo Locurcio e463d3daca
Only print message for `get_modified_time()` failure when in verbose mode
This error message was often displayed for no good reason when PCK
files were loaded in the editor.

Since file modification dates are secondary metadata, it's not
very important if it can't be retrieved successfully anyway.

(cherry picked from commit 5acb8a253e)
2021-12-02 17:32:17 +01:00
Rémi Verschelde ba277a0aa0
Revert "Expose Variant operator= to GDNative"
(cherry picked from commit 796f875870)
2021-12-02 11:47:50 +01:00
BimDav 521af55301
expose Variant operator= to GDNative
(cherry picked from commit 084b21c4a8)
2021-12-01 17:09:04 +01:00
Vincent 72709bb821
Fix crash when loading an invalid mp3 file
(cherry picked from commit 2d0068d1cb)
2021-12-01 17:01:31 +01:00
Yuri Sizov 2b9a1e0d2c
Fix a crash in editor's script parent class check
(cherry picked from commit 62c34a6be7)
2021-12-01 14:36:24 +01:00
Rémi Verschelde 49285b2639
Remove editor splash screen with sponsors logo
The Godot Project Leadership Committe has decided to update the sponsoring
tiers so that the Platinum Sponsorship no longer includes a logo on the
editor splash screen.

This lets us reclaim the editor splash screen space for community-related
content instead of sponsors (e.g. a different community-designed splash
screen for each stable branch?).

Also removes two Platinum Sponsors whose sponsorship has expired earlier this
year.

(cherry picked from commit c283fce698)
2021-12-01 14:36:03 +01:00
Rémi Verschelde 187530de7d
doc: Fixup Tabs reference after cherry-pick
(cherry picked from commit 6cf77f80b5)
2021-11-30 14:47:22 +01:00
Fabio Alessandrelli 4ce01a35be
[HTML5] Fix multi-touch input handling.
The code to populate the input data for WebAssembly was incorrectly
overriding values when multiple touches were present due to wrong
indexing.

(cherry picked from commit 470496d8d4)
2021-11-30 12:21:28 +01:00
zacryol 7a79ee014d
Clarify usage of TabContainer
Makes it more clear that TabBar is separate from TabContainer, and that the container draws the tabs itself.

(cherry picked from commit 5c645d510f)
2021-11-30 11:00:05 +01:00
bruvzg 726fe83b84
[macOS] Fix driver crash when enabling per-pixel transparency on M1 macs.
(cherry picked from commit f72cc71ebe)
2021-11-30 10:59:49 +01:00
ator-dev 43d23c3926
Prevent hidden tab close buttons from intercepting input [3.x]
(cherry picked from commit a8977006fd)
2021-11-30 10:59:32 +01:00
Haoyu Qiu 8e441d7c8b
Fix potential infinite loop when connecting HTTPClient
(cherry picked from commit de1cdc2102)
2021-11-30 10:59:18 +01:00