smix8
744fa87da2
Move navigation mesh baking to NavigationServer
...
Moves navigation mesh baking to NavigationServer.
2023-08-03 19:49:07 +02:00
Rémi Verschelde
725beaa7af
Merge pull request #80219 from YeldhamDev/override_all_the_things
...
Improve `Window._get_contents_minimum_size()`'s code
2023-08-03 15:33:37 +02:00
Michael Alexsander
6d2453425b
Improve Window._get_contents_minimum_size()
's code
2023-08-03 10:25:05 -03:00
Rémi Verschelde
4c70849b3b
Merge pull request #80168 from akien-mga/extension-compat
...
Fix or workaround recent extension API compatibility issues
2023-08-03 15:12:38 +02:00
Rémi Verschelde
f9d960c925
Merge pull request #80178 from YeldhamDev/override_all_the_things
...
Expose `Window`'s `_get_contents_minimum_size()` to scripting
2023-08-03 14:46:52 +02:00
Rémi Verschelde
ae8f1015e0
Merge pull request #79064 from MewPurPur/rename-button-pressed-THIS-IS-NOT-A-COMPAT-BREAK
...
Rename `button_pressed` default signal binding to avoid shadowing
2023-08-03 14:46:39 +02:00
Rémi Verschelde
858e8748e8
Fix or workaround recent extension API compatibility issues
...
- Add compatibility methods for `RenderingDevice::shader_create_from_bytecode`
and `CodeEdit::get_text_for_symbol_loopup`.
- Silence errors which now have compatibility methods.
- Acknowledge GraphEdit/GraphNode compat breakage, intended and WIP.
2023-08-03 12:07:21 +02:00
PrecisionRender
af7f787c6e
Add ability to get barycentric coordinates from ray
2023-08-02 15:16:44 -05:00
Yuri Sizov
237bd0a615
Merge pull request #80117 from Sauermann/fix-actually-store-safe-rect
...
Actually store safe-rect in embedder
2023-08-02 21:48:02 +02:00
Michael Alexsander
f270163ab0
Expose Window
's _get_contents_minimum_size()
to scripting
2023-08-02 14:40:38 -03:00
Markus Sauermann
1e9d241809
Actually store safe-rect in embedder
...
`sw` is a copy and not a reference.
Add unit-test for this case.
2023-08-02 17:51:52 +02:00
Rémi Verschelde
3e958cfa8d
Merge pull request #79705 from 398utubzyt/gui/snap-charfx-fix
...
GUI: Snap CharFX offset to nearest pixel when setting is enabled
2023-08-02 12:18:46 +02:00
Rémi Verschelde
d8cbb6d645
Merge pull request #79563 from danny88881/drag-and-drop-text-setting
...
Add drag'n'drop text option for `LineEdit` and `RichTextLabel`
2023-08-02 12:17:56 +02:00
Rémi Verschelde
2a9aaae8a5
Merge pull request #79293 from ItsNL/add-accept-dialog-close-on-unfocused
...
Check `FLAG_POPUP` to close an AcceptDialog when parent is focused
2023-08-02 12:17:06 +02:00
Rémi Verschelde
b156e24216
Merge pull request #77280 from Rindbee/fix-unnecessary-break-in-Label
...
Fix unnecessary break when calculating the height of visible lines
2023-08-02 12:15:24 +02:00
Markus Sauermann
8c1ce404d7
Fix crash on Windows when closing Window
...
Send `WINDOW_EVENT_MOUSE_EXIT` when a window is destroyed.
Ensure, that on Windows, the event_callback is still valid during
destroying the `Window`.
2023-08-02 00:17:25 +02:00
Yuri Sizov
9fe9922dd9
Merge pull request #80122 from timothyqiu/rid-id
...
Fix "a number is required" error when printing RID
2023-08-01 20:04:04 +02:00
Yuri Sizov
e810671116
Merge pull request #79977 from Owl-A/bugfix
...
Add state sync after call to `_integrate_forces` in `_body_state_changed`
2023-08-01 20:03:47 +02:00
Yuri Sizov
88068a0374
Merge pull request #79946 from Ymanawat/propagate-check-79942
...
Fix Tree check propagation not unchecking parent items
2023-08-01 20:03:43 +02:00
Yuri Sizov
defaac6058
Merge pull request #67791 from Sauermann/fix-visual-mouse-notifications
...
Refactor mouse_entered and mouse_exited signals
2023-08-01 20:03:33 +02:00
Haoyu Qiu
35f28407d9
Fix "a number is required" error when printing RID
2023-08-01 23:30:21 +08:00
Yuri Sizov
8965e24dde
Merge pull request #79874 from clayjohn/PlaceholderTexture-rid
...
Lazily allocate RIDs for PlaceholderTextures to avoid allocating GPU resources unless used
2023-08-01 17:25:37 +02:00
Yuri Sizov
c9aa2131dc
Merge pull request #79710 from AThousandShips/video_play
...
Fix incorrect virtual function in `VideoStream.set_paused`
2023-08-01 17:25:25 +02:00
Yuri Sizov
fd1ee5d56b
Merge pull request #79332 from AThousandShips/mp_crash
...
Prevent crash when accessing `Node` Multiplayer from thread
2023-08-01 17:25:07 +02:00
Chinmay Awale
c118256865
added state sync after call to _integrate_forces
2023-08-01 19:03:43 +05:30
Markus Sauermann
1c3c17c608
Refactor mouse_entered and mouse_exited notifications
...
The previous implementation for signals mouse_entered and mouse_exited
had shortcomings that relate to focused windows and pressed mouse buttons.
For example a Control can be hovered by mouse, even if it is occluded by
an embedded window.
This patch changes the behavior, so that Control and Viewport send
their mouse-enter/exit-notifications based solely on mouse position,
visible area, and input restrictions and not on which window has
focus or which mouse buttons are pressed. This implicitly also
changes when the mouse_entered and mouse_exited signals are sent.
This functionality can not be implemented as a part of
Viewport::_gui_input_event, because of its interplay with Windows and
because Viewport::_gui_input_event is based on input and not on
visibility.
2023-08-01 13:28:49 +02:00
Yogendra Manawat
f0362cd37b
Fixed Tree Selection Bug
2023-07-29 00:30:39 +05:30
detomon
d275a7487d
Initialize MSDF parameters in BaseMaterial3D with default
2023-07-28 13:24:44 +02:00
Yuri Sizov
1e314d5501
Merge pull request #79941 from KoBeWi/scene_tile_devastation
...
Properly clear scene tiles
2023-07-27 19:09:40 +02:00
kobewi
055b9892d2
Properly clear scene tiles
2023-07-27 01:31:20 +02:00
Markus Sauermann
7fead979d6
Disable error condition for accessing safe rect
...
This PR removes the error-message, which is currently expected to happen.
The task of correctly fixing the underlying problem of window popup
closing is more complex, so this PR solves the immediate
error-notification-problem.
2023-07-26 20:21:30 +02:00
Yuri Sizov
7305318a88
Merge pull request #79913 from bruvzg/lbl_min_h_line
...
[Label] Remove extra line spacing from Label minimum size calculations.
2023-07-26 18:40:42 +02:00
Yuri Sizov
d50c52652f
Merge pull request #79805 from kumikumi/fix-subviewport-cursor
...
Prevent SubViewportContainer overriding Subviewport's cursor with its own cursor
2023-07-26 18:40:30 +02:00
Yuri Sizov
712f49ec57
Merge pull request #79766 from Sauermann/fix-window-determinant-zero
...
Add determinant check for minimized windows
2023-07-26 18:40:26 +02:00
Yuri Sizov
1de9171c32
Merge pull request #79443 from Sauermann/fix-ingore-hovering
...
Fix physics passive hovering with `MOUSE_FILTER_IGNORE`
2023-07-26 18:40:14 +02:00
Yuri Sizov
d49ea2b7d8
Merge pull request #79288 from BastiaanOlij/custom_texture_api
...
Add custom texture create function
2023-07-26 18:40:01 +02:00
Yuri Sizov
67873d0d5d
Merge pull request #79248 from Sauermann/fix-svc-focus-propagation
...
Make `SubViewportContainer` event propagation aware of focused Control
2023-07-26 18:39:57 +02:00
Yuri Sizov
6f6f7db911
Merge pull request #79129 from smix8/navbase_enabled_4.x
...
Add NavigationServer API to enable regions and links
2023-07-26 18:39:47 +02:00
Yuri Sizov
e8df8c5e2c
Merge pull request #78988 from RandomShaper/fix_change_scene
...
Reimplement scene change
2023-07-26 18:39:43 +02:00
Bastiaan Olij
63d6e9c557
Add custom texture create function
2023-07-26 20:46:34 +10:00
bruvzg
16d7e0bf98
[Label] Remove extra line spacing from Label minimum size calculations.
2023-07-26 08:15:53 +03:00
smix8
69fad39cf5
Add NavigationServer API to enable regions and links
...
Adds NavigationServer API to enable regions and links.
2023-07-26 01:20:15 +02:00
Patrick
65b0989f68
Additional Visual Shader Nodes
...
* RotationByAxis Visual Shader Node added
* WorldPositionFromDepth Visual Shader Node added
* ScreenNormalWorldSpace Visual Shader Node added
2023-07-26 00:39:12 +02:00
Yuri Sizov
a581bf0a24
Merge pull request #79879 from KoBeWi/the_tweenld
...
Improve and clarify paused Tweens
2023-07-25 21:51:35 +02:00
Yuri Sizov
ee1be950a1
Merge pull request #79786 from smix8/navmesh_max_edge_len_4.x
...
Disable NavigationMesh `edge_max_length` property by default
2023-07-25 21:26:16 +02:00
Yuri Sizov
4b0d1026af
Merge pull request #78365 from smix8/ps_navmap_default_up_4.x
...
Add ProjectSettings navigation map default up
2023-07-25 21:25:50 +02:00
kobewi
dbecf8bd1a
Improve and clarify paused Tweens
2023-07-25 13:29:30 +02:00
clayjohn
d61d498632
Lazily allocate RIDs for PlaceholderTextures to avoid allocating GPU resources unless used
2023-07-25 10:49:35 +02:00
Yuri Sizov
f6187014ec
Merge pull request #79851 from timothyqiu/null-tileset
...
Fix crash when executing `TileMap.fix_invalid_tiles`
2023-07-24 19:33:55 +02:00
Yuri Sizov
d06779cc07
Merge pull request #79782 from guemax/remove-spaces-from-input-of-html-color-in-color-picker
...
Remove spaces from input of HTML color in color picker
2023-07-24 19:33:34 +02:00
Yuri Sizov
beb9c3834d
Merge pull request #79713 from smix8/legacy_navmesh_struct_4.x
...
Remove unused struct from NavigationMesh
2023-07-24 19:33:15 +02:00
Yuri Sizov
6fb5d9e1e6
Merge pull request #79485 from smix8/tilemap_cell_size_4.x
...
Set default `cell_size` on new TileMap Layer navigation layer maps
2023-07-24 19:32:50 +02:00
Yuri Sizov
2f4c962929
Merge pull request #79434 from Calinou/2d-editor-allow-float-bone-size
...
Allow using floating-point bone sizes and outline widths in the 2D editor
2023-07-24 19:32:42 +02:00
Yuri Sizov
752b89dc36
Merge pull request #79403 from TokageItLab/fix-negative-timescale-transition
...
Fix `AnimationNodeTransition` with negative time scale
2023-07-24 19:32:37 +02:00
Yuri Sizov
fb2c3ae8f7
Merge pull request #79308 from Geometror/refactor-graphedit
...
Clean up/refactor GraphEdit
2023-07-24 19:32:33 +02:00
Yuri Sizov
52078dc994
Merge pull request #79157 from smix8/navmesh_clear_4.x
...
Add `clear` function to NavigationMesh / NavigationPolygon
2023-07-24 19:32:24 +02:00
Yuri Sizov
2bd904e3db
Merge pull request #73196 from Vilcrow/fix-lookup-symbol
...
Fix jumping to function definition using `Ctrl+LMB` or the "Lookup Symbol" button
2023-07-24 19:32:12 +02:00
Yuri Sizov
d6bb6d42b2
Merge pull request #71394 from Ithamar/feat-imagetexlay-ser
...
Fix ImageTextureLayered serialisation issues
2023-07-24 19:32:06 +02:00
Hendrik Brucker
a38fd09669
Clean up/refactor GraphEdit
2023-07-24 18:37:23 +02:00
Yuri Sizov
91258e52be
Merge pull request #79307 from Geometror/remove-graph-node-comment
...
Remove GraphNode's comment property and related functionality
2023-07-24 16:56:41 +02:00
Haoyu Qiu
a7ab7e469b
Fix crash when executing TileMap.fix_invalid_tiles
2023-07-24 20:01:27 +08:00
Mikko Ankkala
96b26574b9
Don't override SubViewport's cursor with SubViewportContainer's cursor
...
Add a warning for having a non-default value of `mouse_default_cursor_shape` in SubViewportContainer
Add test
2023-07-23 22:27:55 +03:00
Ithamar R. Adema
f37c2b5be2
Fix ImageTextureLayered serialisation issues.
2023-07-23 13:54:04 +02:00
smix8
c63125c317
Disable NavigationMesh edge_max_length property by default
...
Disables NavigationMesh edge_max_length property by default.
2023-07-22 14:09:15 +02:00
guemax
d934d00828
Remove spaces from input of HTML color in color picker
...
Fixes #79338
2023-07-22 12:11:28 +02:00
Markus Sauermann
e0bce0bd7f
Add determinant check for minimized windows
...
When the Window is minimized, the transform-determinant can be 0.
Add a check to prevent this case.
2023-07-22 00:02:37 +02:00
smix8
671839d5cd
Set default cell_size on new TileMap Layer navigation layer maps
...
Sets default cell_size on new TileMap Layer navigation layer maps.
2023-07-21 18:02:21 +02:00
Yuri Sizov
4770e87616
Merge pull request #79655 from kleonc/scene-dubugger-remove-outdated-error-check
...
Fix arg count checks in `SceneDebugger`
2023-07-21 17:55:02 +02:00
Yuri Sizov
7a313318b2
Merge pull request #79645 from adamscott/fix-camera-2d-editor
...
Fix Camera2D crash when edited scene root is null
2023-07-21 17:54:58 +02:00
Yuri Sizov
1843781918
Merge pull request #79640 from Calinou/default-theme-scale-fix-corner-radius
...
Fix corner radius not scaling with theme scale in the default theme
2023-07-21 17:54:54 +02:00
Yuri Sizov
e38dc58199
Merge pull request #76759 from Nidjo123/master
...
Fix RichTextLabel character line and paragraph index getters
2023-07-21 17:54:11 +02:00
Yuri Sizov
7835d42971
Merge pull request #79618 from HolonProduction/deleting-terrains-crash
...
Fix crash when deleting tileset terrains
2023-07-21 17:15:48 +02:00
Yuri Sizov
6a30f64dc8
Merge pull request #79595 from TokageItLab/rbmap-animblendtree
...
Make `AnimationNodeBlendTree` use `RBMap` insteads `HashMap`
2023-07-21 17:15:42 +02:00
Yuri Sizov
15c0e40375
Merge pull request #79546 from Sauermann/fix-input-handled-physics
...
Separate input-handled-state for different events during physics-picking
2023-07-21 17:15:36 +02:00
Yuri Sizov
de0f7935dd
Merge pull request #79524 from aaronfranke/gds-test-inst-placeholder
...
Change GDScript tests to use InstancePlaceholder as the example abstract class
2023-07-21 17:15:32 +02:00
Yuri Sizov
4d42d6fdf6
Merge pull request #78706 from RedworkDE/node-rename-inplace
...
Allow renaming child nodes in `_ready`
2023-07-21 17:15:26 +02:00
Yuri Sizov
ac0204b201
Merge pull request #78328 from groud/tilemap_layers_as_another_class
...
Move TileMap layers to their own class
2023-07-21 17:15:18 +02:00
kleonc
f12164d311
Fix CanvasModulate logic for updating canvas modulate
2023-07-21 15:33:36 +02:00
smix8
81930c6719
Remove unused struct from NavigationMesh
...
Removes unused struct from NavigationMesh.
2023-07-20 18:16:32 +02:00
Gilles Roudière
d6379e9a93
Move TileMap layers to their own class
2023-07-20 17:23:38 +02:00
Ninni Pipping
2284689b0e
Fix incorrect virtual function in VideoStream.set_paused
2023-07-20 15:55:18 +02:00
398utubzyt
aac2dfc1b4
Snap CharFX transforms to pixels when enabled
2023-07-20 06:01:08 -07:00
Yuri Roubinski
01101134f4
Make the dragging connections more user-friendly in visual shaders
2023-07-20 15:00:19 +03:00
unknown
cfe98c57b9
Add drag and drop option for line edit and rich text label
2023-07-19 22:18:34 -04:00
Markus Sauermann
b408b05d7d
Fix physics passive hovering for some cases
...
When the parent `SubViewportContainer` ignores mouse with
`MOUSE_FILTER_IGNORE` and also when the mouse is over a `Control`-node,
then the `SubViewport` shouldn't create mouse-move-events for passive
hovering.
2023-07-19 19:25:04 +02:00
kleonc
95809e58d5
Fix arg count checks in SceneDebugger
2023-07-19 18:13:15 +02:00
NL
a77d8b3eb5
Check FLAG_POPUP to close an AcceptDialog when parent is focused
2023-07-19 16:06:02 +02:00
Adam Scott
deb45c0cab
Fix Camera2D crash when edited scene root is null
2023-07-18 20:36:40 -04:00
Hugo Locurcio
4198fc9827
Fix corner radius not scaling with theme scale in the default theme
...
This also uses rounding consistently for scale multipliers, so that
behavior is more predictable with non-integer scale factors like `1.25`
and `1.5`.
2023-07-19 00:00:40 +02:00
Yuri Sizov
e8aa8c17d2
Merge pull request #79574 from bruvzg/win_nat_d
...
[Windows] Implement native file selection dialog support.
2023-07-18 19:04:40 +02:00
HolonProduction
89c39c7f9d
Fix crash when deleting terrains
2023-07-18 17:52:32 +02:00
bruvzg
d3ca91ad6a
[Windows] Implement native file selection dialog support.
2023-07-18 17:23:58 +03:00
Yuri Sizov
182b94c86a
Merge pull request #79465 from smix8/navregion_bake_deferred_4.x
...
Make NavigationRegion3D baking NavMesh on the main thread not finish deferred
2023-07-18 13:15:15 +02:00
Silc Lizard (Tokage) Renew
a3cdacdc4e
Make AnimationNodeBlendTree use RBMap insteads HashMap
2023-07-18 17:57:53 +09:00
Markus Sauermann
e6386bc843
Make SubViewportContainer
event propagation aware of focused Control
...
Propagate `InputEvents` without position either
- during the Input-stage, when it has focus or
- during the Unhandled-Input-stage, otherwise
This makes sure that Gui-Input happens in the correct order.
Move "Unhandled key Input" handling before "Unhandled Input" handling,
so that Unicode input with Alt / Ctrl modifiers are sent to the nodes
in the correct order.
Change the default focus mode of `SubViewportContainer` from
`FOCUS_NONE` to `FOCUS_CLICK`, to automatically remove focus from
other `Control`-nodes, when clicking inside a `SubViewport`.
2023-07-17 22:38:35 +02:00
kobewi
de4a3fa151
Unify and streamline connecting to Resource changes
2023-07-17 19:35:57 +02:00
Yuri Sizov
5954c58ee1
Merge pull request #79494 from timothyqiu/no-longer
...
Update OptionButton min size when disabling Fit to Longest Item
2023-07-17 19:12:03 +02:00
Yuri Sizov
38ccab2ab3
Merge pull request #79138 from aaronfranke/camera-exposure-range-hint
...
Change property hint range for camera attributes exposure multiplier
2023-07-17 17:17:16 +02:00
Hendrik Brucker
a29a680920
Extract StyleBoxFlat, StyleBoxTexture and StyleBoxLine in their own file
2023-07-17 13:25:00 +02:00
Hugo Locurcio
a39190a18f
Allow using floating-point bone sizes and outline widths in the 2D editor
...
This is useful when animating pixel art sprites in the 2D editor,
as a value of `1` is often too large when zoomed in.
2023-07-17 12:44:09 +02:00