Rémi Verschelde
35c37ce4ce
Merge pull request #67847 from rburing/warn_non-uniformists
...
Warn against using non-uniform scale for 3D physics (in the editor and class reference)
2023-01-23 10:32:06 +01:00
Rémi Verschelde
19b030263d
Merge pull request #71778 from vortexofdoom/fix-dof-blur-transition
...
allowed negative DoF blur transition in the editor
2023-01-23 10:24:24 +01:00
Rémi Verschelde
69a981fc62
Merge pull request #71214 from SekoiaTree/remove_mesh_surface_compat
...
Remove compatibility code for Mesh surfaces
2023-01-23 10:24:19 +01:00
Bastiaan Olij
52d4a56b3b
Rename getters and signals on XR nodes to be consistant with input types
2023-01-23 11:26:12 +11:00
bitsawer
81f9529a7e
Fix shader include dependency handling
2023-01-22 22:19:52 +02:00
Rémi Verschelde
5068d82374
Merge pull request #71686 from YuriSizov/stylebox-min-size-but-better
...
Clean-up, harmonize, and improve StyleBox API
2023-01-22 17:53:04 +01:00
Rémi Verschelde
5432bad36f
Merge pull request #69619 from m4gr3d/address_android_editor_crashes_main
...
Address Android editor crashes
2023-01-22 17:52:31 +01:00
Rémi Verschelde
78d45fc51c
Merge pull request #71855 from reduz/audio-stream-polyphonic
...
Add AudioStreamPolyphonic to simplify sound playback from code
2023-01-22 17:51:05 +01:00
Juan Linietsky
f18d408c08
Add AudioStreamPolyphonic to make it easier to play polyphonic sound from code
...
* This new audio stream allows to play multiple sounds and control them over time from code.
* It greatly simplifies tasks such as generative music (music generated from code) or audio.
This new type of stream was added with the goal of fixing audio blending in AnimationPlayer and AnimationTree, but can be used by others for their regular audio needs.
Does not fix anything currently, but should help implement #69758 properly.
Some demo code of how to use this:
```GDScript
var player = $SomeNode as AudioStreamPlayer
player.stream = AudioStreamPolyphonic.new()
var playback = player.get_stream_playback() as AudioStreamPlaybackPolyphonic
var id = playback.play_stream(preload("res://Clip1.ogg"))
await get_tree().create_timer(1).timeout
playback.set_stream_volume(id,-12) # Set volume to half after one second
await get_tree().create_timer(2).timeout
var id2 = playback.play_stream(preload("res://Clip2.ogg")) # 2 seconds later, start another clip
await get_tree().create_timer(1).timeout
playback.stop_stream(id) # 1 second later, kill the first clip
playback.set_stream_pitch_scale(id2,1.5) # Make the second clip go 50% faster
```
2023-01-22 16:22:45 +01:00
Rémi Verschelde
d4d01ca20a
Merge pull request #71609 from lufog/menubar-auto-translation
...
MenuBar add auto-translation of Menu names
2023-01-22 16:07:40 +01:00
Rémi Verschelde
cd031fd31a
Merge pull request #71663 from bruvzg/init_pos_x
...
Reorganize main and sub-window initial position properties.
2023-01-22 11:25:58 +01:00
Rémi Verschelde
285e6ed9a5
Merge pull request #71840 from TokageItLab/fix-travel-reset
...
Fix weird behavior of teleporting to self-state when `reset_on_teleport` is `false` in StateMachine
2023-01-22 11:08:57 +01:00
Rémi Verschelde
c0f35a8db1
Merge pull request #71839 from TokageItLab/expose-fading-from-statemachine
...
Expose `fading_from` from StateMachine
2023-01-22 11:08:34 +01:00
Rémi Verschelde
813d7c417b
Merge pull request #71823 from TokageItLab/fix-bezier-init
...
Fix wrong BezierTrack init value
2023-01-22 11:08:09 +01:00
Silc Renew
a6d8afc90c
Fix weird behavior of teleporting to self-state when reset is false
2023-01-22 16:16:48 +09:00
Silc Renew
8b04f58604
Expose fading_from_node from StateMachine
2023-01-22 15:50:53 +09:00
Silc Renew
451cb5577d
Fix wrong BezierTrack init value
2023-01-22 06:52:40 +09:00
Rémi Verschelde
c3539b4561
Merge pull request #70773 from KoBeWi/lector
...
Add range iterator to LocalVector
2023-01-21 20:53:29 +01:00
Rémi Verschelde
906ee0b219
Merge pull request #67253 from KoBeWi/PICKER_USAGE_NO_EDITOR
...
Remove editor dependencies from ColorPicker
2023-01-21 20:52:16 +01:00
Rémi Verschelde
229c82690d
Merge pull request #70294 from KoBeWi/treedulate
...
Add a method to get global modulate
2023-01-21 20:51:42 +01:00
kobewi
615c517034
Use range iterators in LocalVector loops
2023-01-21 18:44:42 +01:00
Rémi Verschelde
3e9a831194
Merge pull request #65726 from KoBeWi/cellless
...
Don't print error in `get_cell_tile_data()`
2023-01-21 16:54:53 +01:00
Rémi Verschelde
ebd0b40f6e
Merge pull request #71687 from reduz/support-script-class-name-in-efs
...
Support script global resource name in EditorFileSystem
2023-01-21 16:54:23 +01:00
Rémi Verschelde
145ab2e1fd
Merge pull request #71797 from reduz/cleanup-shader-parameter-remap
...
Clean up shader parameter remap
2023-01-21 16:53:29 +01:00
Juan Linietsky
dddd8d43f6
Support script global resource name in EditorFileSystem
...
* Works for binary and text files.
* Makes EditorQuickOpen work with custom resources again.
* Information is cached and easily accessible.
Properly fixes #66179 . Supersedes #66215 and supersedes #62417
**WARNING**: This required breaking backwards binary compatibility (.res and .scn files). Files saved after this PR is merged will no longer open in any earlier versions of Godot.
2023-01-21 14:19:27 +01:00
Juan Linietsky
7dbc458bb4
Clean up shader parameter remap
...
This PR is a follow up to #64092 , which fixed important issues but it was implemented in an overly complex and inefficient way (because it forced the default code path to always go through string operations).
This cleans up all the shader parameter code.
This fixes #54336 . Also fixes #56219 because, as the new code never queries the RenderingServer on load, potential deadlocks are avoided.
**NOTE**: materials saved between #62972 and #64092 will no longer work and will need to be resaved in an earlier version.
2023-01-21 12:56:28 +01:00
Rémi Verschelde
2ec0da1a75
Merge pull request #63667 from AntonioDell/bugfix/63549
...
fix(editor): Remove some MeshLibrary editor updates
2023-01-21 11:32:28 +01:00
Rémi Verschelde
7b622ce6e8
Merge pull request #71021 from reduz/prevent-physics-callback-removal
...
Error when removing a physics node during a physics callback
2023-01-21 11:28:02 +01:00
Juan Linietsky
51777a2914
Fix constant editor redraw after shortcut
...
Introduced by me by mistake on #71328 . Fixes #71652 .
2023-01-21 10:54:45 +01:00
Silc Renew
3bb298b78a
Fix max limit of AnimationNodeTransition input count in the inspector
2023-01-21 14:57:36 +09:00
Daniel Larson
d7b61158fa
allowed negative DoF blur transition in the editor
2023-01-20 20:39:49 -06:00
Rémi Verschelde
d5838a06fa
Merge pull request #71709 from clayjohn/decals-lights-sorting
...
Sort decals and lights based on camera origin
2023-01-20 23:57:55 +01:00
Yuri Rubinsky
f9b5e9da37
Fix code generation for ProximityRange node in visual shader
2023-01-20 22:31:37 +03:00
clayjohn
49bebf2bfb
Sort decals and lights based on camera origin
...
Also implement sort_offset for decals
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2023-01-20 09:58:17 -08:00
Yuri Rubinsky
6f2c0140f0
Merge pull request #71717 from Chaosus/vs_refactor_texture_get_code
2023-01-20 13:51:35 +03:00
Yuri Rubinsky
7cbe2b939e
Some refactoring for visual shader texture functions
2023-01-20 12:54:20 +03:00
Алексей Смирнов
a118bc2723
MenuBar add auto-translation of Menu names
2023-01-20 11:34:20 +03:00
Rémi Verschelde
a83093fa80
Merge pull request #71692 from HalcyonGarside/viewport-debug-draw-fix
...
Fix incorrect Viewport Debug Draw effects
2023-01-20 08:49:21 +01:00
Rémi Verschelde
9fc40123ab
Merge pull request #71679 from kleonc/draw_polyline_line_strip
...
`CanvasItem::draw_polyline` Support thin polylines drawn using line strip
2023-01-20 08:48:56 +01:00
Rémi Verschelde
360b61084a
Merge pull request #41239 from dalexeev/fix_draw_rect
...
Fix `CanvasItem.draw_rect` function with `filled = false`
2023-01-19 22:49:23 +01:00
Rémi Verschelde
fc5fafbb32
Merge pull request #70602 from Calinou/environment-no-sky-hide-ambient-light-properties
...
Hide Ambient Light properties in Environment inspector depending on mode
2023-01-19 21:53:02 +01:00
Rémi Verschelde
d919d77367
Merge pull request #71418 from TokageItLab/restart-anim-tree
...
Allow AnimationStateMachine / AnimationNode to restart when transitioning to the same state
2023-01-19 21:52:35 +01:00
Rémi Verschelde
a202f5104f
Merge pull request #71264 from TokageItLab/improve-statemachine
...
Add next/reset function to `AnimationStateMachine`
2023-01-19 21:52:05 +01:00
HalcyonGarside
ef35c4002c
Add 'Lighting' to list of Debug Draw viewport options
2023-01-19 15:23:59 -05:00
kleonc
728c51e362
CanvasItem::draw_polyline Support thin polylines drawn using line strip
2023-01-19 21:08:25 +01:00
Rémi Verschelde
65883cc73b
Merge pull request #71598 from bruvzg/gdscript_bidi_override
...
Implement BiDi override mode for GDScript source.
2023-01-19 19:33:18 +01:00
Rémi Verschelde
4ca6a9809d
Merge pull request #44596 from KoBeWi/ 🧹 🧹 🧹
...
Cleanup unused engine code v2
2023-01-19 19:32:51 +01:00
Rémi Verschelde
8b92316368
Merge pull request #71565 from RedworkDE/doc-arraymesh-add-surface
...
Fix LOD sort order; checks in add_surface; and document all parameters of `ArrayMesh::add_surface_from_arrays`
2023-01-19 19:32:37 +01:00
Yuri Sizov
752402cf35
Clean-up, harmonize, and improve StyleBox API
...
- Make all margin properties follow the same naming convention (their getter and setter too).
- Remove a virtual counterpart of `get_style_margin` from API.
- Allow to override `get_minimum_size` from scripting and remove `get_center_size`.
2023-01-19 20:02:21 +03:00
kobewi
c0083e431b
Cleanup unused engine code v2
2023-01-19 13:02:18 +01:00
bruvzg
aade5abd4f
Reorganize main and sub-window initial position properties.
2023-01-19 13:44:06 +02:00
Life4gal
d3612e039a
Fix using Resource objects as keys in the `tres` format
...
Fixes #57506 .
2023-01-19 12:19:06 +01:00
RedworkDE
be4eb3bbdd
Fix LOD sort order; checks in add_surface; and document all parameters of `ArrayMesh::add_surface_from_arrays`
...
Also clarify some related documentation and expose the misssing `ArrayFormat::ARRAY_FLAG_USES_EMPTY_VERTEX_ARRAY`
2023-01-19 10:30:25 +01:00
clayjohn
faea9f5c10
Remove SCREEN_TEXTURE, DEPTH_TEXTURE, and NORMAL_ROUGHNESS_TEXTURE
...
in favour of texture hints
2023-01-18 19:52:47 -08:00
Rémi Verschelde
acd62443b6
Merge pull request #71619 from TokageItLab/add-keep-state-to-anim-stop
...
Add `p_keep_state` to `AnimationPlayer::stop()`
2023-01-18 22:41:43 +01:00
Rémi Verschelde
2050f59e3a
Merge pull request #71623 from kleonc/draw_arc_clamp_to_single_circle
...
`CanvasItem::draw_arc` Clamp angle difference so arc won't overlap itself
2023-01-18 22:28:24 +01:00
Rémi Verschelde
f40f1e0c90
Merge pull request #60904 from KoBeWi/ 👻 👻 👻
...
Allow unindent without selection
2023-01-18 22:27:36 +01:00
Rémi Verschelde
4abbc0c3fb
Merge pull request #71630 from groud/fix_tilemap_layer_delete_undo
...
Fixes TileMap undo not restoring tiles
2023-01-18 22:20:12 +01:00
Silc Renew
e480262c53
Allow AnimationNodes to restart when transitioning to the same state
2023-01-19 03:10:59 +09:00
Silc Renew
8bfaf098c7
Add next/reset function to AnimationStateMachine
2023-01-19 03:10:45 +09:00
bruvzg
5361ec9f43
Implement BiDi override mode for GDScript source.
2023-01-18 19:22:20 +02:00
Gilles Roudière
13e7f1a143
Fixes TileMap undo not restoring tiles
2023-01-18 17:43:41 +01:00
Rémi Verschelde
bcaf048f33
Merge pull request #71379 from KoBeWi/destruction_of_compatibility_function
...
Remove set_drag_forwarding_compat()
2023-01-18 17:40:13 +01:00
Rémi Verschelde
da1b78222c
Merge pull request #71615 from groud/bring_back_get_cells_by_id
...
Bring back TileMap::get_cells_by_id
2023-01-18 17:33:14 +01:00
Rémi Verschelde
b143e03597
Merge pull request #71604 from groud/snappier_tilemap_edit
...
Avoid recreating TileMap internals when selecting it
2023-01-18 17:32:16 +01:00
Rémi Verschelde
b7d8224210
Merge pull request #71587 from maiself/fix-touch-release
...
Fix crash on touch release
2023-01-18 17:32:10 +01:00
Silc Renew
d16004f297
Add p_keep_state to AnimationPlayer::stop()
2023-01-19 01:05:46 +09:00
kobewi
b427d3585c
Allow unindent without selection
2023-01-18 17:05:15 +01:00
Gilles Roudière
68afc0afa5
Bring back TileMap::get_cells_by_id
2023-01-18 15:56:31 +01:00
kleonc
43fc483e6c
CanvasItem::draw_arc Clamp angle difference so arc won't overlap itself
2023-01-18 15:16:22 +01:00
Gilles Roudière
10849a6d93
Avoid recreating TileMap internals when selecting it
2023-01-18 11:28:31 +01:00
Mai Lavelle
a058cedb53
Fix crash on touch release
2023-01-17 19:12:55 -05:00
Rémi Verschelde
9ebb3e3107
Merge pull request #71553 from RandomShaper/no_catastrophic_relayout
...
Prevent infinite cascade of re-layout after label text reshaping
2023-01-17 15:00:11 +01:00
Pedro J. Estébanez
ed8c5cd52f
Prevent infinite cascade of re-layout after label text reshaping
2023-01-17 13:49:54 +01:00
Rémi Verschelde
63dfdf4f89
Merge pull request #71529 from clayjohn/IM-oct
...
Update ImmediateMesh to use octohedral encoded normals
2023-01-17 10:56:07 +01:00
Danil Alexeev
c046bb8389
Fix `CanvasItem.draw_rect` function with `filled = false`
2023-01-17 09:15:47 +03:00
Nong Van Tinh
d6b923ae05
Fixes incorrect caption for TextureParameterTriplanar
2023-01-17 12:10:01 +07:00
clayjohn
267db8a504
Update ImmediateMesh to use octohedral encoded normals
2023-01-16 14:14:37 -08:00
SaracenOne
4628736894
Update instances of scenes which have been reimported.
2023-01-16 13:46:33 -08:00
Rémi Verschelde
ecfd57026e
Merge pull request #71375 from clayjohn/LightmapGI-crash
...
Enforce a default minimum lightmap size hint size
2023-01-16 22:28:36 +01:00
Rémi Verschelde
ae3ca04aba
Merge pull request #69598 from Sauermann/fix-focus-inverse
...
Calculate the mouse focus inverse transform only when needed
2023-01-16 22:11:23 +01:00
Rémi Verschelde
7c00fdcf5d
Merge pull request #71507 from groud/fix_add_source_source_id
...
Fix TileDate::add_source accepting invalid ID values
2023-01-16 12:49:32 +01:00
Rémi Verschelde
47689c7d51
Merge pull request #71502 from bruvzg/tooltip_clickthrough
...
Add `WINDOW_FLAG_MOUSE_PASSTHROUGH` flag and enabled it for tooltips.
2023-01-16 12:48:45 +01:00
Rémi Verschelde
673d9c58fd
Merge pull request #69851 from dalexeev/fix-scaling-issue
...
Fix scaling issue in `draw_line` and similar methods
2023-01-16 12:48:22 +01:00
Gilles Roudière
0dbcf8f735
Fixes TileDate::add_source accepting invalid ID values
2023-01-16 12:14:40 +01:00
Danil Alexeev
a8cbb6245b
Fix scaling issue in `draw_line` and similar methods
2023-01-16 12:49:58 +03:00
bruvzg
34b34b104c
Add `WINDOW_FLAG_MOUSE_PASSTHROUGH` flag and enabled it for tooltips. Expose `window_set_mouse_passthrough` to `Window`.
2023-01-16 11:42:49 +02:00
kobewi
1260cb0bfb
Improve empty Tween error message
2023-01-16 10:30:21 +01:00
Rémi Verschelde
2d214c8881
Merge pull request #70685 from stmSi/fix-nan-graphedit-infinite-loop
...
Fix: NaN value making infinite loop inside GraphEdit's `NOTIFICATION_DRAW`
2023-01-16 09:41:08 +01:00
Rémi Verschelde
da57e0059e
Merge pull request #70504 from KoBeWi/the_choosen_antipattern
...
Add EditorUndoRedoManager singleton
2023-01-16 09:24:50 +01:00
Rémi Verschelde
5663c78bd2
Merge pull request #43399 from KoBeWi/path_stalking
...
Update PathFollow2D when curve is changed
2023-01-16 09:24:03 +01:00
Rémi Verschelde
ce278b1b7a
Merge pull request #70433 from Sauermann/fix-treeitem-id
...
Fix confusion about TreeItem.add_button ambiguity between id and index
2023-01-16 09:15:15 +01:00
kobewi
b58111588a
Add EditorUndoRedoManager singleton
2023-01-16 01:11:52 +01:00
Tomasz Chabora
5d75edb3b5
Update PathFollow2D when curve is changed
2023-01-15 18:11:21 +01:00
Rémi Verschelde
55bf948fe7
Fix change_scene memory leak due to duplicate instantiation
...
Regression from #71105 .
Fixes #71363 .
2023-01-15 14:05:15 +01:00
Paulb23
1aac10d73d
Fixed adding extra quote when completing strings
2023-01-14 15:28:22 +00:00
kobewi
59ea36b87c
Remove set_drag_forwarding_compat()
2023-01-14 15:16:51 +01:00
clayjohn
e0e073138d
Enforce a default minimum lightmap size hint size
2023-01-13 17:46:55 -08:00
Rémi Verschelde
030a95dd61
Merge pull request #71137 from lyuma/remove_modification_stack_3d
...
Remove SkeletonModificationStack3D, and Skeleton3D api cleanup
2023-01-13 22:34:09 +01:00
Yuri Sizov
682ef35787
Merge pull request #71328 from reduz/button-shortcuts-no-longer-press
...
Button shortcuts no longer "press" the Button.
2023-01-14 00:14:51 +03:00