Commit graph

33835 commits

Author SHA1 Message Date
Kirill Diduk
7b8b91f505 [GDScript][GDNative] Add 'sort' and 'has' methods to pooled arrays
This is a backport from 4.0 to 3.x that adds 'sort' and 'has' methods
to the following types:
- PoolByteArray
- PoolIntArray
- PoolRealArray
- PoolStringArray
- PoolVector2Array
- PoolVector3Array
- PoolColorArray

For all the types above, the methods 'sort' and 'has' have been
exposed to the GDNative API (v. 1.3)

Since the method 'has' was already implemented in GDScript before,
in this commit it has been only exposed to GDNative API.

The classes documentation is updated.

The method 'sort' uses the exisging class "Sorter".

Pooled arrays in 4.0 are rewritten, that's why this backport is not
completely indentical to the original PR made for 4.0 (see #32144).
2022-07-07 23:24:31 +02:00
Rémi Verschelde
c18e18563f
Merge pull request #62786 from timothyqiu/scene-tree-tween-doc
[3.x] Fix cherry-pick mistakes in `SceneTreeTween` doc
2022-07-07 07:44:22 +02:00
Haoyu Qiu
e170ddadef Fix cherry-pick mistakes in SceneTreeTween doc 2022-07-07 00:51:50 +08:00
Rémi Verschelde
417f20f06c i18n: Sync classref translations with Weblate 2022-07-06 15:04:01 +02:00
Rémi Verschelde
30ceef93b0 i18n: Sync editor translations with Weblate 2022-07-06 14:59:09 +02:00
Haoyu Qiu
b200a011d1 Fix heap-use-after-free when closing a scene with its builtin script open
(cherry picked from commit 61bc7d6576)
2022-07-06 11:45:12 +02:00
PZerua
7a35bf683a Fix light intensity and attenuation import from GLTF
(cherry picked from commit aa7ab96e71)
2022-07-06 11:44:30 +02:00
Jean-Marc Pelletier
ee227b9d09 StyleBox: Document correct methods to draw with a RID
(cherry picked from commit 63d5f31561)
2022-07-06 11:43:04 +02:00
Thakee Nathees
da626d8922 Fix FileDialog file name autocompletion with filters
Fixes #38195.

(cherry picked from commit 446f1b7052)
2022-07-06 11:39:04 +02:00
Rémi Verschelde
7d8adb2dc5
Merge pull request #62766 from timothyqiu/texture-region-callback
[3.x] Update TextureRegion editor when NinePatchRect/StyleBoxTexture changes
2022-07-06 08:38:21 +02:00
Haoyu Qiu
f7c144a180 Update TextureRegion editor when NinePatchRect/StyleBoxTexture changes
Updates the editor when the region rect or margins change.
2022-07-06 14:04:42 +08:00
Rémi Verschelde
0902165492
Merge pull request #62761 from timothyqiu/line-edit-move
[3.x] Fix LineEdit caret after using arrow key to deselect
2022-07-06 08:03:50 +02:00
Rémi Verschelde
c9bb4c993e
Merge pull request #62762 from timothyqiu/icon-color
[3.x] Fix icon color for Label3D and CPUParticles2D
2022-07-06 07:43:14 +02:00
Haoyu Qiu
8d1be8ca35 Fix icon color for Label3D and CPUParticles2D 2022-07-06 12:34:41 +08:00
Haoyu Qiu
d86a2d57cf Fix LineEdit caret after using arrow key to deselect 2022-07-06 09:32:39 +08:00
Rémi Verschelde
be85923dc5
Merge pull request #54083 from Rubonnek/add_bin_messages_3x 2022-07-05 23:04:15 +02:00
Rémi Verschelde
57e313daaf
Merge pull request #54080 from Rubonnek/add_hex_messages_3x
[3.x] Add error messages `String::hex_to_int` functions, and accept capital X in prefix
2022-07-05 23:04:03 +02:00
Wilson E. Alvarez
a97a016381
Add error messages to String::bin_to_int64, and accept capital B in prefix
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2022-07-05 11:59:21 -04:00
Wilson E. Alvarez
f12a1b6214
Add error messages String::hex_to_int functions, and accept capital X in prefix
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2022-07-05 10:16:55 -04:00
Rémi Verschelde
32ef964b0f
Merge pull request #62731 from akien-mga/Janglee123-autocompletion-underscore 2022-07-05 13:31:43 +02:00
Rémi Verschelde
917f2156df
Merge pull request #62729 from m4gr3d/fix_save_scene_crash_bug_3x 2022-07-05 13:03:29 +02:00
janglee
00c6cdd793 GDScript: Fix autocompletetion showing class names with an underscore
Fixes #35469.
2022-07-05 12:29:23 +02:00
Fredia Huya-Kouadio
27b63247fd Fix issue causing the Android Editor port to crash when saving a scene
In addition:
- Disable 'adb devices' query (not supported when running the editor on Android devices
- Add `move_to_trash` implementation for Android devices
2022-07-05 02:59:52 -07:00
Rémi Verschelde
0cc154b120
Merge pull request #62719 from m4gr3d/fix_directory_copy_bug_3x
Fix the directory copy bug issue
2022-07-04 23:49:37 +02:00
Fredia Huya-Kouadio
0abc4ad129 Fix the directory copy bug issue
The issue was caused by a logic bug causing end of file to be reported for empty files.
2022-07-04 12:56:53 -07:00
Rémi Verschelde
6a6d32276a
Merge pull request #62697 from bruvzg/custom_key_3 2022-07-04 09:44:58 +02:00
bruvzg
7f562030be
Use custom key struct, instead of raw hashes for the Label3D cache to avoid potential hash collisions. 2022-07-04 09:46:38 +03:00
Rémi Verschelde
bcd5a6951d
Merge pull request #62602 from akien-mga/3.x-android-preset-refactor-custom-build 2022-07-03 18:38:49 +02:00
Rémi Verschelde
f089f77c2a Android: Refactor Custom Build options in export preset
Instead of reusing the custom_template/ prefix which is actually only
used for the prebuilt APK workflow, we add a new custom_build/ prefix.

This is a slight compat breakage (users will have to redo their config)
but enables us to group the Min SDK and Target SDK options where they make
sense, and avoid reusing the previously hardcoded Target SDK 30 from
Godot 3.4.

Those two options are now strings instead of integers so that we can keep
them empty by default, and show their default value using a placeholder.
So some validation has been added to make sure they are proper ints.
The upper bound on Target SDK was also removed as it's a common use case
to use it to try to target newer released SDKs. But we warn the user that
this wasn't validated by us.

The export info dialog is now exclusive so that when it doesn't auto-close,
i.e. when it errors, you don't close it by mistake by clicking outside.

Fixes #62465.
2022-07-03 17:09:41 +02:00
Rémi Verschelde
1fa9c75c12
Merge pull request #62628 from RandomShaper/fix_gl_ub_3.5 2022-07-03 13:54:32 +02:00
Rémi Verschelde
64caa62870
Merge pull request #62664 from akien-mga/3.x-doc-input-accum-disabled 2022-07-03 13:50:11 +02:00
Rémi Verschelde
7de45b6203 Input: Document that accumulated input is disabled by default
This was actually disabled by mistake in 3.4 causing a regression, but since
this issue survived the whole 3.4.x series and it's now very close to 3.5,
it's too late to change it again.

We might consider it for 3.6 after some beta testing.

Fixes #55037.
2022-07-03 12:00:26 +02:00
mj.Jernigan
022cbeb192 Register missing WebRTCDataChannelJS type
(cherry picked from commit a413656e07)
2022-07-03 03:35:02 +02:00
Jummit
63f35d24c6 Use % when dropping unique scene nodes into script
This expands uppon #60708, using `get_node("%NodeName")` for nodes that
have a unique scene name to avoid having to change the onready
statements when the paths of the nodes change.

(cherry picked from commit 1101f6c660)
2022-07-03 03:34:23 +02:00
kobewi
07953346fa Include quotes conditionally for dropped paths
(cherry picked from commit 995bcd6218)
2022-07-03 03:33:26 +02:00
python273
77a9f3d4d8 Make asset library's column count dynamic
(cherry picked from commit d65eb592b0)
2022-07-03 03:26:12 +02:00
reduz
995281ca90 Fix editor-only visibility for lights
* Update visibility again for editor-only lights if owner changes.

Fixes #26399, supersedes #52327

(cherry picked from commit d69e3791bf)
2022-07-03 03:21:51 +02:00
Rémi Verschelde
2d54d3d71d
Merge pull request #57685 from cesarizu/gltf-texture-filename-decoding 2022-07-03 03:12:30 +02:00
Rémi Verschelde
df70aa1772
Merge pull request #57566 from Calinou/viewport-shadow-atlas-clamp-sizes 2022-07-03 03:08:03 +02:00
César Izurieta
f66200ed3c Fix gltf texture filename decoding 2022-07-03 03:03:24 +02:00
Rémi Verschelde
3d19f21576
Merge pull request #49967 from Calinou/viewport-2d-hdr-print-warning 2022-07-03 02:41:26 +02:00
Rémi Verschelde
86229d0b03
Merge pull request #54239 from Calinou/editor-directionallight-3d-only-show-relevant-properties-3.x
Only show relevant properties in the DirectionalLight inspector (3.x)
2022-07-03 02:02:10 +02:00
Rémi Verschelde
567083b981
Merge pull request #41402 from saneery/interpolated-camera-process-mode 2022-07-03 01:59:32 +02:00
saneery
cb94797ce4 Add process_mode property to InterpolatedCamera 2022-07-03 01:47:10 +02:00
Rémi Verschelde
097556d11a
Merge pull request #47170 from hilfazer/print_stray_nodes 2022-07-03 01:10:50 +02:00
Rémi Verschelde
498334d464
Merge pull request #47279 from Shatur/3.x 2022-07-03 01:10:37 +02:00
Rémi Verschelde
ef29a227bf
Merge pull request #55826 from kdiduk/gdnative-poolstringarray-join 2022-07-03 01:05:03 +02:00
hilfazer
fe21fb175c print_stray_nodes() also prints node's script 2022-07-03 01:00:58 +02:00
Shatur95
5ccc941a4c [3.x] Remove hardcoded names in generated objects 2022-07-03 00:58:13 +02:00
Rémi Verschelde
3000d8d140
Merge pull request #59576 from techiepriyansh/fix-multiple-instances-3.x 2022-07-03 00:22:15 +02:00