Commit Graph

14689 Commits

Author SHA1 Message Date
Jason Lothamer b250660ee9 fix issue where Light2D does not re-attach itself to new canvas when viewport worlds are shared 2024-04-05 17:38:42 -04:00
Silc Lizard (Tokage) Renew 21082a6834 Make AnimationMixer consider Discrete for RESET track 2024-04-06 05:37:45 +09:00
Rémi Verschelde 4ff5731705
Merge pull request #90246 from rburing/fti_2d_per_node
Fix per-node physics interpolation setting
2024-04-05 12:16:51 +02:00
Rémi Verschelde 4d20840b11
Merge pull request #90231 from TokageItLab/mod-reset
Remove unavailable property binding `reset_on_save` from Skeleton3D
2024-04-05 12:16:44 +02:00
Rémi Verschelde 63db50654a
Merge pull request #90217 from Calinou/editor-decal-allow-greater-emission-energy
Allow Decal Emission Energy values above 128 in the inspector
2024-04-05 12:16:31 +02:00
Rémi Verschelde fe784573c4
Merge pull request #90167 from ajreckof/fix-negative-value-for-position_smoothing_speed-being-allowed
Ensure `Camera2D.position_smoothing_speed` is non-negative.
2024-04-05 12:16:14 +02:00
Rémi Verschelde b7e0b0ea0c
Merge pull request #89970 from AThousandShips/require_expose
[Animation] Expose `SkeletonProfile.set/is_required`
2024-04-05 12:16:04 +02:00
Rémi Verschelde 54116086af
Merge pull request #89956 from KoBeWi/warning!_self_destruct_sequence_activated
Remove Control z-index warning
2024-04-05 12:16:00 +02:00
Ricardo Buring e6b9161246 Fix per-node physics interpolation setting
The per-node default should be ON.
2024-04-05 10:30:19 +02:00
Silc Lizard (Tokage) Renew bf3ef56c2f Remove unavailable property binding reset_on_save from Skeleton3D 2024-04-05 08:47:50 +09:00
Hugo Locurcio ae12244e13
Allow Decal Emission Energy values above 128 in the inspector
This also sets the maximum value for the slider to 16 to match
BaseMaterial3D (higher values can be entered or dragged manually).
2024-04-04 21:19:17 +02:00
Silc Lizard (Tokage) Renew 04dd299cba Skeleton3D: Add SkeletonModifier / Deprecate Override / Separate PB 2024-04-05 01:28:26 +09:00
kobewi c3d2fab1e5 Remove Control z-index warning 2024-04-04 17:22:04 +02:00
ajreckof 07406af6cc Fix negative value for position_smoothing_speed being allowed. 2024-04-04 17:15:53 +02:00
Rémi Verschelde f6a78f83aa
Merge pull request #90207 from groud/fix_no_cached_rect
Fix "no cached rect" errors in TileMapLayer editor
2024-04-04 17:09:26 +02:00
Rémi Verschelde 63135ac753
Merge pull request #89975 from AThousandShips/tile_fix_exit
[TileMap] Fix forcing cleanup on exiting tree/canvas
2024-04-04 17:09:11 +02:00
Rémi Verschelde 0c71ba7801
Merge pull request #89880 from dsnopek/openxr-composition-layers-node3d-drs
Add support for OpenXR composition layers
2024-04-04 17:09:07 +02:00
Gilles Roudière c928273c6c Fixes "no cached rect" errors in TileMapLayer editor 2024-04-04 16:28:31 +02:00
David Snopek 0f2b804059 Add support for OpenXR composition layers
Co-authored-by: Bastiaan Olij <mux213@gmail.com>
2024-04-04 09:20:23 -05:00
Hendrik Brucker a81561cbd9 Add GraphFrame and integrate it in VisualShader 2024-04-04 15:11:00 +02:00
A Thousand Ships 09edece17d
[TileMap] Fix forcing cleanup on exiting tree/canvas 2024-04-04 14:47:32 +02:00
Rémi Verschelde ffa650f1d8
Merge pull request #90113 from smix8/draw_2d_outlines
Make physics debug respect shape outline setting inside editor
2024-04-04 14:37:21 +02:00
Rémi Verschelde 7c6892662d
Merge pull request #90095 from QbieShay/qbe/fix-cpuparticle-instancew
Fix `INSTANCE_CUSTOM.w` not being assigned correctly in CPUParticles 2D and 3D
2024-04-04 14:37:15 +02:00
Rémi Verschelde 0df9c16d81
Merge pull request #89993 from Sauermann/fix-textedit-clip-contents
Make `TextEdit.clip_contents` more transparent to users
2024-04-04 14:35:54 +02:00
Rémi Verschelde b345614adb
Merge pull request #89977 from aqfranco/master
Fix TreeItem shows cell edit in the wrong column when `select_mode=Row` and TreeItem has multiple columns
2024-04-04 14:35:44 +02:00
Rémi Verschelde b77ac0a2b3
Merge pull request #89933 from jsjtxietian/path3d-remove
Support "clear points" function in Path3D topmenu bar
2024-04-04 14:35:27 +02:00
Rémi Verschelde 4abe9183e3
Merge pull request #89926 from Sauermann/fix-button-mask-special-case
Fix a special case for button masks
2024-04-04 14:35:24 +02:00
Rémi Verschelde 32dcaa0659
Merge pull request #89920 from Sauermann/fix-event-order
Prohibit execution of delayed input events by different means
2024-04-04 14:35:20 +02:00
Rémi Verschelde 27dec32699
Merge pull request #89735 from bruvzg/ed_native_fd2
[Native File Dialog] Add support for using native dialogs in the editor.
2024-04-04 14:31:39 +02:00
Rémi Verschelde 2ac88339e4
Merge pull request #89721 from KoBeWi/position_who
Rename some arguments called "position"
2024-04-04 14:31:35 +02:00
Rémi Verschelde f69fab5bfd
Merge pull request #89575 from TokageItLab/move-loop-check-state
Move the line of infinity loop checking in AnimationStateMachine
2024-04-04 14:31:28 +02:00
Rémi Verschelde 1dacd6a527
Merge pull request #89179 from groud/expose_tile_map_layer
Expose TileMapLayer
2024-04-04 14:31:16 +02:00
Rémi Verschelde 734a2543ae
Merge pull request #87889 from smix8/heightmap_image
Add HeightMapShape3D update with Image data
2024-04-04 14:30:45 +02:00
Rémi Verschelde 84b3d14c9a
Merge pull request #82852 from timothyqiu/property-context
Add context support for editor property name i18n
2024-04-04 14:30:29 +02:00
Rémi Verschelde f47f4a02c8
Merge pull request #89992 from ajreckof/fix-my-mistake-with-replace-in-update-scene
Fix node duplication in update after external changes.
2024-04-04 02:53:57 +02:00
smix8 924a5c6573 Add HeightMapShape3D update with Image data
Adds HeightMapShape3D update with Image data.
2024-04-04 02:10:00 +02:00
ajreckof ae472865d0 fix node duplication in update after external changes. 2024-04-03 12:19:38 +02:00
Gilles Roudière 3cd4b2859c Expose TileMapLayer 2024-04-03 11:02:34 +02:00
smix8 07bbaf267d Make physics debug respect outline setting inside editor
Make physics debug respect outline setting inside editor instead of always returning true no matter the actual setting.
2024-04-01 19:52:57 +02:00
QbieShay 1d81068be7 Fixed INSTANCE_CUSTOM.w not being assigned correctly in CPUParticles 2D and 3D 2024-04-01 14:00:40 +02:00
Haoyu Qiu 479b7afa8e Add context support for editor property name i18n 2024-03-31 18:40:14 +08:00
A Thousand Ships 334449df70
[Animation] Expose `SkeletonProfile.set/is_required` 2024-03-30 20:57:55 +01:00
Markus Sauermann 94e1943f02 Make `TextEdit.clip_contents` more transparent to users
Instead of ignoring `TextEdit.clip_contents`, use it with a default
value `true`. in the same way as `RichTextLabel`.
2024-03-28 21:07:27 +01:00
Markus Sauermann 48ea019322 Fix a special case for button masks
In certain situations it is possible that in a `Viewport` the same
mouse button is pressed twice in series without releasing it in
between.
In this case, focus stealing should happen to ensure, that the
mouse button is not sent unintentionally to the previously focused
Control node.
2024-03-28 20:22:49 +01:00
Andre Franco 5c19fcbd57 Fix #88892: TreeItem shows cell edit in the wrong column when SelectMode=Row and TreeItem has multiple columns
Editor would not be brought up when clicking on all but the last column on a TreeItem with SelectMode=Row with
multiple columns and when the editor was being brought up when clicking on the last column, it was editing the first column

Fixed draw_item, gui_input and edit_selected functions by setting set_meta parameter for each column
Fixed select_single_item function by changing selected_col depending on input
2024-03-28 15:31:42 +00:00
bruvzg 61f7145f43
[Native File Dialog] Add support for using native dialogs in the editor. 2024-03-28 11:53:03 +02:00
Rémi Verschelde af08342fd8
Merge pull request #89957 from warriormaster12/regress-dup
Fix regression when duplicating a node with a resource attached
2024-03-28 10:47:39 +01:00
Rémi Verschelde 4e4bc3b39a
Merge pull request #89911 from AThousandShips/peering_bit
[TileSet] Expose `TileData.is_valid_terrain_peering_bit`
2024-03-28 10:47:18 +01:00
Markus Sauermann 945babc619 Prohibit execution of delayed input events by different means
In some cases it can happen, that the order of input events and
window events is not followed, when input buffering or input accumulation
is active.

The display server order `InputEvent` => window-event gets changed to
window-event => `InputEvent` which becomes problematic in certain
situations.

This PR makes sure, that the order is adhered to by flushing input events
before a window event is sent.
Previously this problem was mitigated by discarding these delayed events.
But this solution was problematic in the setting of android input events.
2024-03-27 20:58:15 +01:00
warriormaster12 9533543aa5 Fix duplicating resources regression 2024-03-27 11:51:29 +02:00
jsjtxietian 34eff85014 Support “clear points” function in Path3D editor 2024-03-27 12:40:30 +08:00
kobewi 25f9f923a1 Rename some arguments called "position" 2024-03-27 01:28:24 +01:00
A Thousand Ships d4fcca4545
[TileSet] Expose `TileData.is_valid_terrain_peering_bit` 2024-03-26 16:07:50 +01:00
bruvzg dc01658ee9
[DisplayServer] Add separate feature flags for different native dialog types. 2024-03-26 15:18:06 +02:00
Rémi Verschelde a0d464ae19
Merge pull request #89820 from rburing/concave_collision_polygon_2d
Fix concave `CollisionPolygon2D` debug drawing and docs
2024-03-26 13:45:31 +01:00
Rémi Verschelde 37766c4ef8
Merge pull request #89625 from kitbdev/not-the-end-of-the-line
Fix TextEdit selection end of line drawing for wrapped lines and gaps
2024-03-26 13:45:22 +01:00
Rémi Verschelde 19a50127e5
Merge pull request #88690 from MajorMcDoom/color-picker-fix
Fix undo/redo behavior of ColorPicker and add ability to cancel/confirm color selection
2024-03-26 13:45:06 +01:00
Rémi Verschelde d66539e485 Merge pull request #89673 from bruvzg/f_na_ed
Do not apply `force_native` to the edited scene windows.
2024-03-25 13:16:03 +01:00
Rémi Verschelde f371b7fb70 Merge pull request #87883 from TontonSancho/text-skip-occurence
Add 'Skip to next (text) occurrence' feature to text editor
2024-03-25 13:15:56 +01:00
Rémi Verschelde 0acfb38376
Merge pull request #89875 from bruvzg/menu_use_rids
[MenuBar] Use NativeMenu RIDs instead of indices to track items.
2024-03-25 11:19:01 +01:00
Rémi Verschelde c41da69ed7
Merge pull request #89863 from ppphp/resource_format_override
Add `override` mark to ResourceFormat class
2024-03-25 11:18:57 +01:00
Rémi Verschelde 17c66c0bea
Merge pull request #89805 from AThousandShips/viewport_report
Add missing `RenderInfoType` enum to `Viewport`
2024-03-25 11:18:43 +01:00
Christophe Andral c988bec4b3 Add 'Skip to next (text) occurrence' feature to text editor
Adds `ui_text_skip_selection_for_next_occurrence` action and related implementation to text editor.
This action is bound `Ctrl+Alt+D` shorcut.

Used in conjonction with `ui_add_skip_selection_for_next_occurrence`, it gives the user the ability to select many occurrences of a selection
and avoid some of them.
Used without a previous selection, the action jumps to the next occurrence of the current word under the caret.
2024-03-25 11:12:28 +01:00
bruvzg 5851f1e2dd
[MenuBar] Use NativeMenu RIDs instead of indices to track items. 2024-03-25 10:58:05 +02:00
Zi Ye d827b34ea8 Fixed undo/redo behaviour of color picker and added ability to cancel/confirm color selection. 2024-03-24 15:12:11 -05:00
ppphp d4e1a74efb Add 'override' mark to ResourceFormat class 2024-03-25 04:06:34 +08:00
Alistair Leslie-Hughes 13d83dd4d7 Correct FileDialog Theme overrides
Introduced in 15fd025f90

Fixes #89818
2024-03-24 19:33:05 +11:00
Rémi Verschelde f79896fd06
Merge pull request #89794 from TokageItLab/animationplayback-seek
Fix AnimationPlaybackTrack seeking behavior overall
2024-03-24 01:23:31 +01:00
Rémi Verschelde 21dc88bf74
Merge pull request #89727 from Malcolmnixon/fix-avatars-without-root-bone
Fix XRBodyModifier3D hip driving for avatars no Root bone
2024-03-24 01:22:50 +01:00
Rémi Verschelde 9d8697ab01
Merge pull request #89686 from kleonc/unique-node-names-check-owned-then-in-owner
Always look for unique node names in owner if not found in owned nodes
2024-03-24 01:21:28 +01:00
Rémi Verschelde 6ccf425a68
Merge pull request #89664 from voylin/tree-empty-clicked-fix
Fix `empty_clicked` signal in Tree when using `hide_root`
2024-03-24 01:20:59 +01:00
Rémi Verschelde 1d4907243e
Merge pull request #89628 from twobitadder/whoops_no_internals_pls
Fix crash on `reparent()` with Node containing internal children
2024-03-24 01:19:34 +01:00
Rémi Verschelde cd4e4c0fcc
Merge pull request #89111 from AThousandShips/vec_use
Use `Vector*` component-wise `min/max/clamp` functions where applicable
2024-03-24 01:14:51 +01:00
Rémi Verschelde e92806c7e7
Merge pull request #88424 from rburing/fti_2d
Physics interpolation (2D)
2024-03-24 01:13:53 +01:00
Rémi Verschelde f0544ebba6
Merge pull request #87874 from AThousandShips/sort_fix
Fix sorting of files/dirs in dialogs
2024-03-24 01:13:12 +01:00
Rémi Verschelde 8c470749f1
Merge pull request #87387 from warriormaster12/dup_prop_refactor
Fix property of type Node duplication when script is attached to a child node
2024-03-24 01:12:57 +01:00
Rémi Verschelde f8bae10be6
Merge pull request #87171 from TokageItLab/retrieve-time-info-from-anim-tree
Rework AnimationNode process for retrieving the semantic time info
2024-03-24 01:12:42 +01:00
Rémi Verschelde 20d423258c
Merge pull request #86888 from Mickeon/autocompletion-AnimationNode
Add autocompletion to AnimationNode
2024-03-24 01:12:16 +01:00
Rémi Verschelde ccccdff0d1
Merge pull request #83956 from Chaosus/vs_expression_parsing
Refactor the parsing of port names in visual shader's expressions
2024-03-24 01:12:00 +01:00
Ricardo Buring b6f07a007a Fix concave CollisionPolygon2D debug drawing and docs 2024-03-23 18:51:39 +01:00
A Thousand Ships 8a88e5ea07
Add missing `RenderInfoType` enum to `Viewport` 2024-03-23 14:03:08 +01:00
Ricardo Buring 2ed2ccc2d8 Fixed Timestep Interpolation (2D)
Adds fixed timestep interpolation to the rendering server (2D only).
Switchable on and off with a project setting (default is off).

Co-authored-by: lawnjelly <lawnjelly@gmail.com>
2024-03-23 12:28:36 +01:00
Silc Lizard (Tokage) Renew c1741fe98e Fix AnimationPlaybackTrack seeking behavior overall
Co-authored-by: jsjtxietian <jsjtxietian@outlook.com>
Co-authored-by: Miguel0312 <miguel.vpereira14@gmail.com>
Co-authored-by: BruceLiCong <citb_li@163.com>
2024-03-23 18:48:29 +09:00
voylin d339c71edc Fix empty_clicked signal when hide_root
fix
2024-03-22 09:19:56 +09:00
Yuri Rubinsky aa12241414 Refactor the parsing of port names in visual shader's expressions 2024-03-21 16:34:37 +03:00
Malcolm Nixon 435eb06e4b Fix for avatars without a root bone. 2024-03-20 23:56:10 -04:00
Silc Lizard (Tokage) Renew 6dd410854c Rework AnimationNode process for retrieving the semantic time info 2024-03-20 22:52:26 +09:00
A Thousand Ships 79ba22a73f
Use `Vector*` component-wise `min/max/clamp` functions where applicable 2024-03-20 13:47:42 +01:00
A Thousand Ships 2cbf469912
Fix sorting of files/dirs in dialogs
Sorts leading `_` before other characters except `.`.
2024-03-20 13:45:47 +01:00
kleonc 95ced4bbdc Always look for unique node names in owner if not found in owned nodes 2024-03-19 22:13:10 +01:00
VolTer de8b6f7a3c Add editor settings for autocompletion with NodePath and StringName 2024-03-19 17:23:54 +02:00
bruvzg 92d69da7a6
Do not apply "force_native" to the edited scene windows. 2024-03-19 12:39:50 +02:00
kit 63ac8c1106 Fix TextEdit selection end of line drawing 2024-03-18 10:13:21 -04:00
twobit b9bade8db1 fixes crash on nodes with internal children 2024-03-17 22:44:05 -04:00
warriormaster12 9851c1bdd8 Fix property duplication when duplicating a parent node 2024-03-17 09:57:38 +02:00
Silc Lizard (Tokage) Renew b8d555c74b Move the line of infinity loop checking in AnimationStateMachine 2024-03-17 00:51:36 +09:00
Rémi Verschelde 5f3b284cd9
Merge pull request #89510 from bruvzg/lbl_shadow_step
[Label] Move shadow drawing into a separate draw step.
2024-03-15 11:07:33 +01:00
Rémi Verschelde 70bcf2175c
Merge pull request #89506 from bruvzg/menu_fix1
Fix NativeMenu layout direction on macOS, add extra check for Windows menu.
2024-03-15 10:40:17 +01:00
Rémi Verschelde c7061d5e96
Merge pull request #89502 from kleonc/control-set-global-position-fix
Fix `Control::set_global_position` for rotated/scaled transforms
2024-03-15 10:40:14 +01:00
bruvzg af9e8128f9
[Label] Move shadow drawing into a separate draw step. 2024-03-15 11:24:08 +02:00