Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clipboard image data get/set methods #76603

Closed
wants to merge 249 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
249 commits
Select commit Hold shift + click to select a range
040e258
Fix popup position of color picker
MewPurPur Jan 30, 2023
979b53a
Add info label to TileMap editor
KoBeWi Nov 17, 2022
786ad51
Move ShaderWarning definitions into rendering_server
smosages Feb 19, 2023
ba985ec
Fix `draw_multiline_colors()` for `width < 0`
dalexeev Mar 13, 2023
e15358d
Fix incorrect HTC action map entries
BastiaanOlij Mar 15, 2023
8836f21
Move call of `push_unhandled_input` from `Window` to `Viewport`
Sauermann Mar 31, 2022
8ea4ace
Fix shader uniform groups to prevent it sorting in alphabet order
Chaosus Mar 28, 2023
ab60d3b
Expose viewports render targer RID
BastiaanOlij Mar 31, 2023
aaf02ec
Close built-in shaders when closing scene
KoBeWi Apr 9, 2023
d4c46f1
Allow creation of rendering buffers at any time
RandomShaper Apr 11, 2023
15b8cb9
PhysicsDirectBodyState3D: report contact points using global coordinates
rburing Apr 15, 2023
4adbfcf
Add shader cache to gles3
ChibiDenDen Apr 15, 2023
865d6f5
Fix multiline items drawing in `Tree`
dalexeev Apr 28, 2023
249784e
Fix size error in `BitMap.opaque_to_polygons`
AThousandShips Apr 28, 2023
d3792a2
Use a SubViewport for CanvasItem inspector preview
Tetane Apr 28, 2023
c08e96e
Improve and document PackedDataContainer
KoBeWi Apr 28, 2023
ccff245
Fix compatibility breakage from adding NoiseTexture3D
clayjohn Apr 28, 2023
d24ee55
Allow EditorInspector to change its property name style when necessary
timothyqiu Mar 2, 2023
d710af2
Fix precision in physics supports generation
Black-Cat Apr 23, 2023
5956aa1
Fix gles3 rendering on android studio emulator
ChibiDenDen Mar 15, 2023
83626ab
Added note to used set_deferred while setting scroll values in _ready…
stmSi Apr 29, 2023
29358da
Expose horizontal/vertical custom_step as editor property for the Scr…
Maran23 Jan 3, 2023
f107594
Document high performance cost of turbulence in ParticleProcessMaterial
Calinou Apr 29, 2023
05402df
Clipboard has/get image methods
radzo73 Apr 30, 2023
f3d911f
Things I didn't catch before test compiling
radzo73 Apr 30, 2023
abd894d
Fixed error messages when setting all_tab_in_front of TabContainer
Tefatika Apr 29, 2023
7814ded
Preserve scene unique names when saving branch as scene.
HolonProduction Apr 30, 2023
1c93606
Add ValidatedCall to MethodBind
reduz Apr 24, 2023
9d77caa
Add an example for how to use AudioStreamGenerator
MewPurPur Apr 23, 2023
7469b32
Methods for iOS
radzo73 Apr 30, 2023
6b84e25
Use String.repeat() in more places
MewPurPur Jan 28, 2023
818d57b
Light3D show scaling warning immediately
MewPurPur Oct 29, 2022
8f2d684
Update platform/macos/display_server_macos.mm
radzo73 May 1, 2023
e6dc29e
Update platform/ios/display_server_ios.mm
radzo73 May 1, 2023
1c811df
Update platform/windows/display_server_windows.cpp
radzo73 May 1, 2023
990d584
Update display_server_windows.cpp Part 2
radzo73 May 1, 2023
92ade92
[Android] Fix dynamic Variant params stack constructions in JNI callb…
shendo Apr 28, 2023
bcce315
Update @GDScript.xml range docs to iterate backwards.
Koyper May 1, 2023
68b9fa7
Implement vertical icon alignment for buttons
Dragoncraft89 Mar 3, 2023
ee86505
Merge pull request #76640 from shendo/android_plugin_crash_on_emit_si…
m4gr3d May 1, 2023
2422438
Add proper snapping to tile polygon editor
KoBeWi Dec 23, 2022
46e06ee
Propogate previously unused NOTIFICATION_WORLD_2D_CHANGED, make Canva…
spacechase0 Jan 25, 2022
2dbc5d9
Fix SurfaceTool::create_from_blend_shape()
smix8 May 2, 2023
4a20869
Merge pull request #76597 from Tefatika/fix/tefatika/76578-tab-contai…
clayjohn May 2, 2023
68724aa
Merge pull request #76598 from Calinou/doc-particleprocessmaterial-tu…
clayjohn May 2, 2023
2a0aef5
Merge pull request #68033 from MewPurPur/auto-light3d-warning-updates
clayjohn May 2, 2023
2b053e4
adjusting step size for fastnoise frequency hint
brno32 May 2, 2023
8106d33
Fixed various typos across the docs
Xenoparrot May 1, 2023
a93a2e5
Wait for navigation baking to finish before destruction
mashumafi Apr 12, 2023
9c7673b
Add documentation for TubeTrailMesh and RibbonTrailMesh
MewPurPur Apr 30, 2023
3f17a81
Add debug collision shape to CSG with collision
rburing May 2, 2023
fb77021
Use proper UV in cubemap downsampler raster
clayjohn May 3, 2023
c58e50a
Fix additional cases of breakage of rendering effects
RandomShaper Apr 28, 2023
cbc99ee
Merge pull request #76683 from brno32/fastnoise-lite-frequency-hint
QbieShay May 3, 2023
61f03da
Explicitly mark inherited export mode when making a dedicated server …
dsnopek May 3, 2023
f008027
Merge pull request #76609 from HolonProduction/save-branch-as-scene-u…
clayjohn May 3, 2023
e35bbd7
Fix Rotation Issue with NODE_POSITION_VIEW Visual Shader Node
paddy-exe Apr 15, 2023
2816825
Merge pull request #76555 from Tetane/master
mhilbrunner May 3, 2023
1f104b4
Merge pull request #76669 from smix8/fix_create_from_blend_shape_4.x
mhilbrunner May 3, 2023
dbd615a
Merge pull request #76692 from clayjohn/Mobile-sky-dark
mhilbrunner May 3, 2023
33b9be2
Some clarifications on screen-space coordinates
KoBeWi May 1, 2023
c14f870
Merge pull request #76557 from clayjohn/NoiseTexture3D
mhilbrunner May 3, 2023
ba32279
Merge pull request #76550 from RandomShaper/vk_gi_take_2
mhilbrunner May 3, 2023
8c729f0
Merge pull request #76646 from KoBeWi/acoording_to_screen
mhilbrunner May 3, 2023
a6dc35e
Streamline and centralize bug reporting guides
Jayman2000 Feb 24, 2022
c8e06fe
Document TextServerDummy
MewPurPur May 3, 2023
6fa4f71
Reimplement String.erase
SilicDev Mar 30, 2023
740b071
Fix small mistake in docs, "antecedents" -> "ancestors"
aaronfranke May 4, 2023
5e1cb39
Make sun energy adjustable as a float in the 3D editor's preview sun
May 4, 2023
8452e6c
Add SPECULAR_AMOUNT spatial light shader built-in
JohanAR Mar 18, 2023
d023e51
Merge pull request #76722 from HotHead007/master
clayjohn May 4, 2023
3ce0ebb
Make environment energy adjustable as a float in 3D editor's preview …
May 5, 2023
59f04e1
Support long path in file access on windows
spanzeri May 5, 2023
9502f4c
Merge pull request #58518 from Jayman2000/bug-reporting-guidelines
mhilbrunner May 5, 2023
1a4eccf
Prevent infinite loop when signal disconnection fails during object d…
RedworkDE May 3, 2023
a7fe5b0
Merge pull request #76739 from spanzeri/fix-long-path-windows
mhilbrunner May 5, 2023
03dfae4
Merge pull request #76004 from mashumafi/wait-nav-region-thread
mhilbrunner May 5, 2023
5e9b7c3
Merge pull request #75055 from JohanAR/light_specular
mhilbrunner May 5, 2023
d6161b9
Merge pull request #76604 from MewPurPur/sylveon-moment-UwU
mhilbrunner May 5, 2023
fa451ea
Merge pull request #74883 from dalexeev/fix-thin-multiline-colors
mhilbrunner May 5, 2023
d481fca
Merge pull request #75517 from BastiaanOlij/expose_render_target
mhilbrunner May 5, 2023
39d8530
Merge pull request #76109 from paddy-exe/fix-node-position-view
mhilbrunner May 5, 2023
f6bf51c
Merge pull request #75864 from KoBeWi/assassin_of_shaders
mhilbrunner May 5, 2023
ce75c46
Merge pull request #76650 from Koyper/gdscript_range_docs
mhilbrunner May 5, 2023
4af3fc7
Overhaul the top sections of the class reference (Animation classes)
MewPurPur Apr 28, 2023
30d0dd4
Cache feature list in OS.has_feature()
KoBeWi May 5, 2023
8654e90
Mend some checks in CallQueue
RandomShaper May 5, 2023
12e4323
Merge pull request #75427 from Chaosus/shader_fix_groups_ordering
clayjohn May 5, 2023
214a848
Merge pull request #76700 from dsnopek/dedicated-server-mark-inherited
clayjohn May 5, 2023
a6fda19
add venv and .venv to the .gitignore
brno32 May 1, 2023
610877e
Merge pull request #72288 from MewPurPur/use-string-repeat
clayjohn May 5, 2023
7a13cf9
Merge pull request #75510 from SilicDev/string_erase
clayjohn May 5, 2023
5a0c186
Avoid redundant locking in CallQueue
RandomShaper May 5, 2023
43a7cb0
Explain why an image would be invalid for a texture
novalis May 5, 2023
88ea3dd
Remove erroneous signal connection
KoBeWi May 5, 2023
6441210
Add ARB_get_program_binary to glad to support shader cache over deskt…
ChibiDenDen Apr 29, 2023
9ce3194
Merge pull request #76765 from novalis/explain-why-invalid
clayjohn May 5, 2023
998b48f
Add handling of custom visual shader nodes from GDExtension
Chaosus Jan 4, 2023
115fa34
Merge pull request #76743 from HotHead007/master
mhilbrunner May 6, 2023
862cbe2
Merge pull request #76761 from KoBeWi/this_file_ain't_big_enough_for_…
mhilbrunner May 6, 2023
abd3de9
Merge pull request #76716 from brno32/venv-gitignore
mhilbrunner May 6, 2023
9d4e5ee
Merge pull request #76720 from aaronfranke/ancestortecedent
mhilbrunner May 6, 2023
76599be
Merge pull request #76699 from MewPurPur/document-text-server-dummy
mhilbrunner May 6, 2023
921d231
Merge pull request #76664 from Xenoparrot/simple-typos
mhilbrunner May 6, 2023
64eeb04
Merge pull request #76373 from MewPurPur/add-AudioStreamGenerator-exa…
mhilbrunner May 6, 2023
5715d3e
LSP: don't send empty completion command
achernik May 6, 2023
5056c42
Improve RenderingServer, RenderingDevice, ShaderGlobalsOverride docum…
Calinou Mar 28, 2023
01c32df
Fix another collision shape editor crash
KoBeWi May 7, 2023
46a7018
Add `naturalcasecmp_to` function to `String`
AThousandShips May 4, 2023
0b3fba4
Move convert_indent into CodeEdit
Paulb23 May 1, 2023
65236fe
Fix building the Windows x86_32 target
funkkiy May 7, 2023
8118d0d
Add more uses of appropriate cursors when resizing/moving some UI nodes
YeldhamDev May 7, 2023
5e3a985
Don't refresh inspector when changing internal meta
KoBeWi May 7, 2023
43bf0b5
Merge pull request #76008 from Calinou/doc-renderingserver-renderingd…
mhilbrunner May 7, 2023
5c06c03
Fix right click in selection of additional caret
jmb462 Apr 30, 2023
30824e9
Adds a `scale_gizmo_handles` entry to the `Touchscreen` editor settings
m4gr3d Apr 5, 2023
bd1bc68
Merge pull request #75718 from m4gr3d/add_scale_editor_icons_main
m4gr3d May 8, 2023
6db12c5
Improve some descriptions in the OS docs
YeldhamDev May 8, 2023
febc674
Document caveats related to exported project binary resource conversion
Calinou May 8, 2023
f369ed9
Allow concurrent buffering and dispatch of input events
RandomShaper Apr 24, 2023
fffa577
Minor bugfixes to `ItemList`
AThousandShips May 8, 2023
b226f7e
CI: Make codespell checks blocking, but only check changed files
akien-mga May 8, 2023
273a6ee
Redo how the remote filesystem works
reduz Apr 28, 2023
b639076
Merge pull request #68800 from KoBeWi/tinfo
akien-mga May 8, 2023
e707772
Merge pull request #70911 from Chaosus/vs_custom_gdextension_support
akien-mga May 8, 2023
e758164
Merge pull request #72376 from MewPurPur/fix-color-button-popup
akien-mga May 8, 2023
eebb1d8
Merge pull request #74369 from Dragoncraft89/master
akien-mga May 8, 2023
00215ec
Merge pull request #74930 from BastiaanOlij/fix_action_map_entries
akien-mga May 8, 2023
49ba2e0
Merge pull request #76399 from RandomShaper/fix_android_input_anr
akien-mga May 8, 2023
32fbba4
Merge pull request #76472 from jmb462/multicarets_selection_popup
akien-mga May 8, 2023
7e6f22b
Merge pull request #76549 from MewPurPur/improve-docs-top-sections-ANIM
akien-mga May 8, 2023
e85f687
Merge pull request #76561 from KoBeWi/most_obscure_class_that_has_eve…
akien-mga May 8, 2023
eb6d6ab
Merge pull request #76658 from Paulb23/convert-indent-code-edit
akien-mga May 8, 2023
466e99d
Merge pull request #76728 from RedworkDE/signal-disconnect-loop
akien-mga May 8, 2023
0daa634
Merge pull request #76747 from RandomShaper/fix_mq_redundant
akien-mga May 8, 2023
fe6cd73
Merge pull request #76748 from KoBeWi/has_feature(fast)
akien-mga May 8, 2023
353efd7
Merge pull request #76754 from RandomShaper/mq_less_lock
akien-mga May 8, 2023
41f1ec1
Merge pull request #76798 from KoBeWi/race_condition_except_there_is_…
akien-mga May 8, 2023
903289f
Merge pull request #76808 from davicr/x86-32_build_fix
akien-mga May 8, 2023
720869f
Merge pull request #76809 from YeldhamDev/cursor_mania
akien-mga May 8, 2023
4b51569
Merge pull request #76822 from YeldhamDev/os_docs
akien-mga May 8, 2023
21b6874
Merge pull request #76828 from akien-mga/ci-codespell-blocking
akien-mga May 8, 2023
b791a7a
Merge pull request #70488 from KoBeWi/SNAP!
akien-mga May 8, 2023
704560c
Merge pull request #70868 from Maran23/4-x-scrollcontainer-custom-ste…
akien-mga May 8, 2023
7f6b283
Merge pull request #74264 from timothyqiu/self-awareness
akien-mga May 8, 2023
e370b35
Merge pull request #74945 from ChibiDenDen/patch-3
akien-mga May 8, 2023
392fdd1
Merge pull request #75937 from RandomShaper/threaded_render_load
akien-mga May 8, 2023
70f69f6
Merge pull request #76379 from Black-Cat/fix-capsule2d-sleep
akien-mga May 8, 2023
3e6a731
Merge pull request #76418 from reduz/method-bind-validated-call
akien-mga May 8, 2023
c9f8104
Merge pull request #76536 from AThousandShips/bit_poly_size
akien-mga May 8, 2023
491a437
Merge pull request #76540 from reduz/redo-remote-filesystem
akien-mga May 8, 2023
0b944e1
Make `LocalVector` respect its `tight` template parameter
kleonc Aug 8, 2022
b3bb92a
CI: Use gh-cli for changed files, and workaround codespell skip list bug
akien-mga May 8, 2023
1b9802f
Prevent errors when using ViewportTexture
KoBeWi Apr 6, 2023
bbe05b6
Merge pull request #57179 from spacechase0/notify-world2d-changed-master
akien-mga May 8, 2023
cb6308e
Merge pull request #64120 from kleonc/local-vector-tight
akien-mga May 8, 2023
15f9ac9
Merge pull request #75751 from KoBeWi/eradicate_ViewportTexture_error…
akien-mga May 8, 2023
140c7f4
Merge pull request #76675 from rburing/csg_debug_collision
akien-mga May 8, 2023
cf8ad12
Merge pull request #76842 from akien-mga/ci-codespell-fix-skip-list
akien-mga May 8, 2023
a64137d
Dump API docs from inline GDScript comments using --doctool --gdscrip…
dsnopek Apr 26, 2023
c55892c
Print CPU and GPU usage statistics after Movie Maker is finished
myaaaaaaaaa Apr 30, 2023
341b958
Add missing thread safety to PagedAllocator
RandomShaper May 5, 2023
6465432
Save cluster render shader from being optimized out entirely
RandomShaper May 8, 2023
fabd953
fix a test for wrapf with signed 32-bit float
ajreckof May 8, 2023
d59cdb8
Fix regression with right click on main selection
jmb462 May 8, 2023
6980b2b
Merge pull request #76865 from jmb462/multicarets_selection_popup
akien-mga May 8, 2023
a85eef4
Add icon_modulate functionality to PopupMenu
the-sink Dec 19, 2022
e4d052e
Ensure WindowData minimized/maximized are mutually exclusive
chfoo May 9, 2023
0c94750
Fix double tap & drag on Android
OmarShehata May 6, 2023
c328676
For GDExternal use, provides access to internal graphics handles for …
BastiaanOlij Mar 10, 2023
72323a5
Merge pull request #57894 from Sauermann/fix-subviewport-1
akien-mga May 9, 2023
e0df3be
Merge pull request #70286 from the-sink/popupmenu_icon_modulate
akien-mga May 9, 2023
02db573
Merge pull request #70564 from stmSi/cant-set-srollcontainer-scrollva…
akien-mga May 9, 2023
1c7a62d
Merge pull request #76092 from ChibiDenDen/shader_cache_gles3
akien-mga May 9, 2023
1a987eb
Merge pull request #76624 from myaaaaaaaaa/movie-stat
akien-mga May 9, 2023
d550fdd
Merge pull request #76791 from OmarShehata/fix-android-double-tap
akien-mga May 9, 2023
668cf3c
Merge pull request #76832 from RandomShaper/cluster_render_prevail
akien-mga May 9, 2023
732ad38
Clarify that event handling does not affect `Input`
AThousandShips May 9, 2023
0b7fd66
Add API for HSL conversion
bonjorno7 Apr 25, 2023
5ade250
Merge pull request #76735 from AThousandShips/natural_cmp
akien-mga May 9, 2023
58ea42e
Merge pull request #76755 from RandomShaper/fix_allocator_thsafe
akien-mga May 9, 2023
ee931e2
Merge pull request #76814 from KoBeWi/underdata
akien-mga May 9, 2023
e56427b
Merge pull request #76868 from chfoo/issue-72728
akien-mga May 9, 2023
b0b2308
Merge pull request #76874 from AThousandShips/input_doc
akien-mga May 9, 2023
6bccdec
Make documentation sorting use natural order
AThousandShips May 4, 2023
8e7afec
Fix various errors when running the unit tests
RedworkDE May 9, 2023
72d1318
gltf: Permit sparse accessors without a bufferView.
lyuma May 9, 2023
98c655e
Refactor Node Processing
reduz Apr 10, 2023
de14109
Merge pull request #73588 from smosages/resolve-display-shader-settin…
akien-mga May 9, 2023
564d1b3
Merge pull request #74711 from BastiaanOlij/add_texture_native_handle
akien-mga May 9, 2023
10ed1d8
Merge pull request #76490 from dsnopek/dump-gdscript-docs
akien-mga May 9, 2023
0f444f1
Merge pull request #76661 from bonjorno7/hsl
akien-mga May 9, 2023
ccf8029
Merge pull request #76730 from AThousandShips/doc_order
akien-mga May 9, 2023
c2ba89d
Merge pull request #76790 from achernik/master
akien-mga May 9, 2023
1d87b36
Merge pull request #76824 from Calinou/doc-export-pck-binary-resource…
akien-mga May 9, 2023
f20061d
Merge pull request #76875 from lyuma/fix_zero_sparse_accessors
akien-mga May 9, 2023
6bca6be
Merge pull request #76878 from RedworkDE/tests-fix-errors
akien-mga May 9, 2023
f24ef75
Add missing shader debug documentation
AThousandShips May 9, 2023
7f46875
Merge pull request #76885 from AThousandShips/doc_update
akien-mga May 9, 2023
a5b8673
Exposes String functions for X509Certificates
ScorpionInc Apr 5, 2023
af58f1e
Improve the UX of ViewportTexture in the editor
Rindbee Aug 14, 2022
a6ac305
Rework Navigation Avoidance
smix8 Jan 10, 2023
081808b
Merge pull request #75721 from ScorpionInc/Expose_String_functions_fo…
Faless May 10, 2023
769d8a7
Merge pull request #76088 from rburing/contact_points_global_3d
akien-mga May 10, 2023
b4d6b47
Add multi window code and shader editors
trollodel Nov 2, 2022
c7a5ce6
CI: Skip codespell check if `CHANGED_FILES` is empty
akien-mga May 10, 2023
8e608e9
Merge pull request #64388 from Rindbee/improve-ViewportTexture
akien-mga May 10, 2023
3b8c828
Merge pull request #69988 from smix8/navigation_rvo_rework_4.x
akien-mga May 10, 2023
4d70328
Merge pull request #76532 from dalexeev/tree-fix-multiline-drawing
akien-mga May 10, 2023
703a3ce
Merge pull request #76830 from ajreckof/fix_wrapf_CI_with_too_big_float
akien-mga May 10, 2023
bee96aa
Merge pull request #76903 from akien-mga/ci-codesp-hell
akien-mga May 10, 2023
024a4b1
mbedTLS: disable weak crypto and TLS versions.
Faless Apr 11, 2023
fab160c
Store sensitive export options in dedicated credentials file
and-rad May 10, 2023
31fc7a8
Merge pull request #62378 from trollodel/gsoc_2022_multiwindow
akien-mga May 10, 2023
5271186
Merge pull request #75901 from reduz/refactor-node-processing
akien-mga May 10, 2023
74e5ad5
Merge pull request #76165 from and-rad/safe-credentials
akien-mga May 10, 2023
74c34ae
Merge pull request #76905 from Faless/mbedtls/no_weak_crypto_no_patch
akien-mga May 10, 2023
6cd9d72
Make `EditorPropertyNameProcessor` check `EditorSettings` validity
AThousandShips May 10, 2023
04317e9
Add metadata to resource previews
KoBeWi Aug 19, 2022
104de1a
Merge pull request #64628 from KoBeWi/a_new_meta
akien-mga May 10, 2023
4e1d5be
Merge pull request #76910 from AThousandShips/inspector_fix
akien-mga May 10, 2023
9e9b07f
rvo2: Include cstdint for uint32_t
akien-mga May 10, 2023
c80a2b4
Merge pull request #76913 from akien-mga/rvo2-include-cstdint
akien-mga May 10, 2023
679ff6d
Fix skeleton_3d & physical_bone_3d editor errors
spanzeri Apr 29, 2023
8983b20
Avoid interaction issues between resource loading threads
RandomShaper Mar 5, 2023
5a4613f
Avoid sync issues in resources with deferred updates
RandomShaper May 10, 2023
b6647a5
Avoid sync issues in materials with scheduled shader updates
RandomShaper May 9, 2023
045401c
Use WorkerThreadPool for threaded resource loading
RandomShaper May 10, 2023
cdf9c33
add unit tests for Curve3D
brno32 May 6, 2023
7a2e350
x11: Do not use uninitialized timestamps.
stolk May 10, 2023
ac02086
Propagate shortcuts to SubViewports
Sauermann May 10, 2023
b08a608
Modifies the file system dock to use the inline editor instead of a d…
Wiwip Nov 26, 2022
dc46163
Improve editor state persistence
Geometror May 11, 2023
7e1a261
Prevent unnecessary navigation map synchronizations
smix8 Apr 5, 2023
50c5ed4
Make acos and asin safe
lawnjelly May 9, 2023
fbb1a92
Merge pull request #74405 from RandomShaper/fix_res_loader
akien-mga May 11, 2023
ddcb2d1
Don't expose mac specific display server.
HolonProduction May 8, 2023
f7070a6
Merge pull request #72277 from Geometror/improve-editor-state-preserv…
akien-mga May 11, 2023
3fdf555
Merge pull request #76592 from spanzeri/fix-skeletons-and-bones
akien-mga May 11, 2023
4020cc8
Merge pull request #76794 from Wiwip/inline-edit
akien-mga May 11, 2023
9bf60c3
Merge pull request #76812 from brno32/curve-3d-tests
akien-mga May 11, 2023
a745bf3
Merge pull request #76826 from AThousandShips/item_list_fix
akien-mga May 11, 2023
a1db628
Merge pull request #76856 from HolonProduction/macos-specific
akien-mga May 11, 2023
0c7c35b
Merge pull request #76924 from stolk/fixuninit
akien-mga May 11, 2023
f717cc0
Merge pull request #76926 from Sauermann/fix-call-to-unhandled-input
akien-mga May 11, 2023
f78c2dd
Merge pull request #75678 from smix8/navregion_update_guards_4.x
akien-mga May 11, 2023
fd4a06c
Merge pull request #76906 from lawnjelly/safe_acos4_2
akien-mga May 11, 2023
cb5673b
Merge branch 'master' of https://github.com/radzo73/godot
radzo73 May 11, 2023
fd46697
Revert "Merge branch 'master' of https://github.com/radzo73/godot"
radzo73 May 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 26 additions & 14 deletions doc/classes/DisplayServer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,50 @@
<tutorials>
</tutorials>
<methods>
<method name="clipboard_get" qualifiers="const">
<return type="String" />
<method name="clipboard_get_image" qualifiers="const">
<return type="Image" />
<description>
Returns the user's clipboard as a string if possible.
Returns the user's clipboard as an image if possible.
</description>
</method>
<method name="clipboard_get_primary" qualifiers="const">
<return type="String" />
<description>
Returns the user's [url=https://unix.stackexchange.com/questions/139191/whats-the-difference-between-primary-selection-and-clipboard-buffer]primary[/url] clipboard as a string if possible. This is the clipboard that is set when the user selects text in any application, rather than when pressing [kbd]Ctrl + C[/kbd]. The clipboard data can then be pasted by clicking the middle mouse button in any application that supports the primary clipboard mechanism.
[b]Note:[/b] This method is only implemented on Linux (X11).
Returns the user's primary clipboard as a string if possible.
[b]Note:[/b] This method is only implemented on Linux.
</description>
</method>
<method name="clipboard_get_text" qualifiers="const">
<return type="String" />
<description>
Returns the user's clipboard as a string if possible.
</description>
</method>
<method name="clipboard_has" qualifiers="const">
<method name="clipboard_has_image" qualifiers="const">
<return type="bool" />
<description>
Returns [code]true[/code] if there is content on the user's clipboard.
Returns [code]true[/code] if there is an image content on the user's clipboard.
</description>
</method>
<method name="clipboard_set">
<return type="void" />
<param index="0" name="clipboard" type="String" />
<method name="clipboard_has_text" qualifiers="const">
<return type="bool" />
<description>
Sets the user's clipboard content to the given string.
Returns [code]true[/code] if there is a text content on the user's clipboard.
</description>
</method>
<method name="clipboard_set_primary">
<return type="void" />
<param index="0" name="clipboard_primary" type="String" />
<argument index="0" name="clipboard_primary" type="String" />
<description>
Sets the user's [url=https://unix.stackexchange.com/questions/139191/whats-the-difference-between-primary-selection-and-clipboard-buffer]primary[/url] clipboard content to the given string. This is the clipboard that is set when the user selects text in any application, rather than when pressing [kbd]Ctrl + C[/kbd]. The clipboard data can then be pasted by clicking the middle mouse button in any application that supports the primary clipboard mechanism.
[b]Note:[/b] This method is only implemented on Linux (X11).
Sets the user's primary clipboard content to the given string.
[b]Note:[/b] This method is only implemented on Linux.
</description>
</method>
<method name="clipboard_set_text">
<return type="void" />
<argument index="0" name="clipboard" type="String" />
<description>
Sets the user's clipboard content to the given string.
</description>
</method>
<method name="cursor_get_shape" qualifiers="const">
Expand Down
2 changes: 1 addition & 1 deletion editor/connections_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ void ConnectionsDock::_handle_signal_menu_option(int p_option) {
disconnect_all_dialog->popup_centered();
} break;
case COPY_NAME: {
DisplayServer::get_singleton()->clipboard_set(item->get_metadata(0).operator Dictionary()["name"]);
DisplayServer::get_singleton()->clipboard_set_text(item->get_metadata(0).operator Dictionary()["name"]);
} break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion editor/debugger/editor_debugger_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ void EditorDebuggerTree::_item_menu_id_pressed(int p_option) {
text = text.substr(slash + 1);
}
}
DisplayServer::get_singleton()->clipboard_set(text);
DisplayServer::get_singleton()->clipboard_set_text(text);
} break;
}
}
Expand Down
4 changes: 2 additions & 2 deletions editor/debugger/script_editor_debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void ScriptEditorDebugger::debug_copy() {
if (msg.is_empty()) {
return;
}
DisplayServer::get_singleton()->clipboard_set(msg);
DisplayServer::get_singleton()->clipboard_set_text(msg);
}

void ScriptEditorDebugger::debug_skip_breakpoints() {
Expand Down Expand Up @@ -1590,7 +1590,7 @@ void ScriptEditorDebugger::_item_menu_id_pressed(int p_option) {
ci = ci->get_next();
}

DisplayServer::get_singleton()->clipboard_set(text);
DisplayServer::get_singleton()->clipboard_set_text(text);
} break;

case ACTION_OPEN_SOURCE: {
Expand Down
2 changes: 1 addition & 1 deletion editor/editor_about.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void EditorAbout::_license_tree_selected() {
}

void EditorAbout::_version_button_pressed() {
DisplayServer::get_singleton()->clipboard_set(version_btn->get_meta(META_TEXT_TO_COPY));
DisplayServer::get_singleton()->clipboard_set_text(version_btn->get_meta(META_TEXT_TO_COPY));
}

void EditorAbout::_bind_methods() {
Expand Down
2 changes: 1 addition & 1 deletion editor/editor_inspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ void EditorProperty::menu_option(int p_option) {
emit_changed(property, InspectorDock::get_inspector_singleton()->get_property_clipboard());
} break;
case MENU_COPY_PROPERTY_PATH: {
DisplayServer::get_singleton()->clipboard_set(property_path);
DisplayServer::get_singleton()->clipboard_set_text(property_path);
} break;
case MENU_PIN_VALUE: {
emit_signal(SNAME("property_pinned"), property, !pinned);
Expand Down
2 changes: 1 addition & 1 deletion editor/editor_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void EditorLog::_copy_request() {
}

if (!text.is_empty()) {
DisplayServer::get_singleton()->clipboard_set(text);
DisplayServer::get_singleton()->clipboard_set_text(text);
}
}

Expand Down
4 changes: 2 additions & 2 deletions editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ void EditorNode::_titlebar_resized() {
}

void EditorNode::_version_button_pressed() {
DisplayServer::get_singleton()->clipboard_set(version_btn->get_meta(META_TEXT_TO_COPY));
DisplayServer::get_singleton()->clipboard_set_text(version_btn->get_meta(META_TEXT_TO_COPY));
}

void EditorNode::_update_undo_redo_allowed() {
Expand Down Expand Up @@ -4465,7 +4465,7 @@ void EditorNode::show_warning(const String &p_text, const String &p_title) {
}

void EditorNode::_copy_warning(const String &p_str) {
DisplayServer::get_singleton()->clipboard_set(warning->get_text());
DisplayServer::get_singleton()->clipboard_set_text(warning->get_text());
}

void EditorNode::_dock_floating_close_request(Control *p_control) {
Expand Down
2 changes: 1 addition & 1 deletion editor/export/export_template_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ void ExportTemplateManager::_mirror_options_button_cbk(int p_id) {
return;
}

DisplayServer::get_singleton()->clipboard_set(mirror_url);
DisplayServer::get_singleton()->clipboard_set_text(mirror_url);
} break;
}
}
Expand Down
4 changes: 2 additions & 2 deletions editor/filesystem_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2098,7 +2098,7 @@ void FileSystemDock::_file_option(int p_option, const Vector<String> &p_selected
case FILE_COPY_PATH: {
if (!p_selected.is_empty()) {
String fpath = p_selected[0];
DisplayServer::get_singleton()->clipboard_set(fpath);
DisplayServer::get_singleton()->clipboard_set_text(fpath);
}
} break;

Expand All @@ -2107,7 +2107,7 @@ void FileSystemDock::_file_option(int p_option, const Vector<String> &p_selected
ResourceUID::ID uid = ResourceLoader::get_resource_uid(p_selected[0]);
if (uid != ResourceUID::INVALID_ID) {
String uid_string = ResourceUID::get_singleton()->id_to_text(uid);
DisplayServer::get_singleton()->clipboard_set(uid_string);
DisplayServer::get_singleton()->clipboard_set_text(uid_string);
}
}
} break;
Expand Down
4 changes: 2 additions & 2 deletions editor/groups_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ void GroupDialog::_modify_group_pressed(Object *p_item, int p_column, int p_id,
undo_redo->commit_action();
} break;
case COPY_GROUP: {
DisplayServer::get_singleton()->clipboard_set(ti->get_text(p_column));
DisplayServer::get_singleton()->clipboard_set_text(ti->get_text(p_column));
} break;
}
}
Expand Down Expand Up @@ -705,7 +705,7 @@ void GroupsEditor::_modify_group(Object *p_item, int p_column, int p_id, MouseBu
undo_redo->commit_action();
} break;
case COPY_GROUP: {
DisplayServer::get_singleton()->clipboard_set(ti->get_text(p_column));
DisplayServer::get_singleton()->clipboard_set_text(ti->get_text(p_column));
} break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion editor/gui/editor_file_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ void EditorFileDialog::_item_menu_id_pressed(int p_option) {
switch (p_option) {
case ITEM_MENU_COPY_PATH: {
Dictionary item_meta = item_list->get_item_metadata(item_list->get_current());
DisplayServer::get_singleton()->clipboard_set(item_meta["path"]);
DisplayServer::get_singleton()->clipboard_set_text(item_meta["path"]);
} break;

case ITEM_MENU_DELETE: {
Expand Down
2 changes: 1 addition & 1 deletion editor/plugins/script_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ void ScriptEditor::_copy_script_path() {
ScriptEditorBase *se = _get_current_editor();
if (se) {
Ref<Resource> scr = se->get_edited_resource();
DisplayServer::get_singleton()->clipboard_set(scr->get_path());
DisplayServer::get_singleton()->clipboard_set_text(scr->get_path());
}
}

Expand Down
2 changes: 1 addition & 1 deletion editor/project_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2546,7 +2546,7 @@ void ProjectManager::_open_asset_library() {
}

void ProjectManager::_version_button_pressed() {
DisplayServer::get_singleton()->clipboard_set(version_btn->get_text());
DisplayServer::get_singleton()->clipboard_set_text(version_btn->get_text());
}

ProjectManager::ProjectManager() {
Expand Down
2 changes: 1 addition & 1 deletion editor/scene_tree_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
if (node) {
Node *root = EditorNode::get_singleton()->get_edited_scene();
NodePath path = root->get_path().rel_path_to(node->get_path());
DisplayServer::get_singleton()->clipboard_set(path);
DisplayServer::get_singleton()->clipboard_set_text(path);
}
}
} break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ private void IssuesListContextOptionPressed(long id)
}

if (text != null)
DisplayServer.ClipboardSet(text);
DisplayServer.ClipboardSetText(text);
break;
}
default:
Expand Down
12 changes: 6 additions & 6 deletions platform/android/display_server_android.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,36 +107,36 @@ void DisplayServerAndroid::tts_stop() {
TTS_Android::stop();
}

void DisplayServerAndroid::clipboard_set(const String &p_text) {
void DisplayServerAndroid::clipboard_set_text(const String &p_text) {
GodotJavaWrapper *godot_java = OS_Android::get_singleton()->get_godot_java();
ERR_FAIL_NULL(godot_java);

if (godot_java->has_set_clipboard()) {
godot_java->set_clipboard(p_text);
} else {
DisplayServer::clipboard_set(p_text);
DisplayServer::clipboard_set_text(p_text);
}
}

String DisplayServerAndroid::clipboard_get() const {
String DisplayServerAndroid::clipboard_get_text() const {
GodotJavaWrapper *godot_java = OS_Android::get_singleton()->get_godot_java();
ERR_FAIL_NULL_V(godot_java, String());

if (godot_java->has_get_clipboard()) {
return godot_java->get_clipboard();
} else {
return DisplayServer::clipboard_get();
return DisplayServer::clipboard_get_text();
}
}

bool DisplayServerAndroid::clipboard_has() const {
bool DisplayServerAndroid::clipboard_has_text() const {
GodotJavaWrapper *godot_java = OS_Android::get_singleton()->get_godot_java();
ERR_FAIL_NULL_V(godot_java, false);

if (godot_java->has_has_clipboard()) {
return godot_java->has_clipboard();
} else {
return DisplayServer::clipboard_has();
return DisplayServer::clipboard_has_text();
}
}

Expand Down
6 changes: 3 additions & 3 deletions platform/android/display_server_android.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ class DisplayServerAndroid : public DisplayServer {
virtual void tts_resume() override;
virtual void tts_stop() override;

virtual void clipboard_set(const String &p_text) override;
virtual String clipboard_get() const override;
virtual bool clipboard_has() const override;
virtual void clipboard_set_text(const String &p_text) override;
virtual String clipboard_get_text() const override;
virtual bool clipboard_has_text() const override;

virtual TypedArray<Rect2> get_display_cutouts() const override;
virtual Rect2i get_display_safe_area() const override;
Expand Down
7 changes: 5 additions & 2 deletions platform/ios/display_server_ios.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,11 @@ class DisplayServerIOS : public DisplayServer {
void virtual_keyboard_set_height(int height);
virtual int virtual_keyboard_get_height() const override;

virtual void clipboard_set(const String &p_text) override;
virtual String clipboard_get() const override;
virtual void clipboard_set_text(const String &p_text) override;
virtual String clipboard_get_text() const override;
virtual Ref<Image> clipboard_get_image() const override;
virtual bool clipboard_has_text() const override;
virtual bool clipboard_has_image() const override;

virtual void screen_set_keep_on(bool p_enable) override;
virtual bool screen_is_kept_on() const override;
Expand Down
29 changes: 27 additions & 2 deletions platform/ios/display_server_ios.mm
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@

#import <sys/utsname.h>

#include <drivers/png/png_driver_common.h>

static const float kDisplayServerIOSAcceleration = 1.f;

DisplayServerIOS *DisplayServerIOS::get_singleton() {
Expand Down Expand Up @@ -650,16 +652,39 @@ _FORCE_INLINE_ int _convert_utf32_offset_to_utf16(const String &p_existing_text,
return virtual_keyboard_height;
}

void DisplayServerIOS::clipboard_set(const String &p_text) {
void DisplayServerIOS::clipboard_set_text(const String &p_text) {
[UIPasteboard generalPasteboard].string = [NSString stringWithUTF8String:p_text.utf8()];
}

String DisplayServerIOS::clipboard_get() const {
String DisplayServerIOS::clipboard_get_text() const {
NSString *text = [UIPasteboard generalPasteboard].string;

return String::utf8([text UTF8String]);
}

bool DisplayServerIOS::clipboard_has_text() {
return [UIPasteboard generalPasteboard].hasStrings;
}

Ref<Image> DisplayServerIOS::clipboard_get_image() const {
Ref<Image> image;
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
if (!pasteboard.hasImages) {
return image;
}
UIImage *data = pasteboard.image;
NSData *pngData = UIImagePNGRepresentation(data);
image.instantiate();
UInt8 buf[pngData.length];
[pngData getBytes:buf length:pngData.length];
PNGDriverCommon::png_to_image(buf, pngData.length, false, image);
radzo73 marked this conversation as resolved.
Show resolved Hide resolved
return image;
}

bool DisplayServerIOS::clipboard_has_image() {
return [UIPasteboard generalPasteboard].hasImages;
}

void DisplayServerIOS::screen_set_keep_on(bool p_enable) {
[UIApplication sharedApplication].idleTimerDisabled = p_enable;
}
Expand Down
4 changes: 2 additions & 2 deletions platform/linuxbsd/x11/display_server_x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ BitField<MouseButtonMask> DisplayServerX11::mouse_get_button_state() const {
return last_button_state;
}

void DisplayServerX11::clipboard_set(const String &p_text) {
void DisplayServerX11::clipboard_set_text(const String &p_text) {
_THREAD_SAFE_METHOD_

{
Expand Down Expand Up @@ -644,7 +644,7 @@ String DisplayServerX11::_clipboard_get_impl(Atom p_source, Window x11_window, A
return ret;
}

String DisplayServerX11::_clipboard_get(Atom p_source, Window x11_window) const {
String DisplayServerX11::_clipboard_get_text(Atom p_source, Window x11_window) const {
String ret;
Atom utf8_atom = XInternAtom(x11_display, "UTF8_STRING", True);
if (utf8_atom != None) {
Expand Down
6 changes: 3 additions & 3 deletions platform/linuxbsd/x11/display_server_x11.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ class DisplayServerX11 : public DisplayServer {
void _update_window_mouse_passthrough(WindowID p_window);

String _clipboard_get_impl(Atom p_source, Window x11_window, Atom target) const;
String _clipboard_get(Atom p_source, Window x11_window) const;
String _clipboard_get_text(Atom p_source, Window x11_window) const;
void _clipboard_transfer_ownership(Atom p_source, Window x11_window) const;

bool do_mouse_warp = false;
Expand Down Expand Up @@ -399,8 +399,8 @@ class DisplayServerX11 : public DisplayServer {
virtual Point2i mouse_get_position() const override;
virtual BitField<MouseButtonMask> mouse_get_button_state() const override;

virtual void clipboard_set(const String &p_text) override;
virtual String clipboard_get() const override;
virtual void clipboard_set_text(const String &p_text) override;
virtual String clipboard_get_text() const override;
virtual void clipboard_set_primary(const String &p_text) override;
virtual String clipboard_get_primary() const override;

Expand Down
Loading