Rémi Verschelde
c00303ff55
Merge pull request #47378 from aaronfranke/use-input-enums
...
Use key enum instead of plain integers for input code
2021-08-11 11:20:45 +02:00
Rémi Verschelde
80dec1948a
Merge pull request #41956 from Calinou/rename-engine-iterations-per-second
...
Rename `iterations_per_second` to `physics_ticks_per_second`
2021-08-11 08:05:33 +02:00
Rémi Verschelde
7d43da928f
Merge pull request #51490 from nekomatata/clean-character-body
...
Remove infinite inertia and ray shapes from CharacterBody
2021-08-11 08:04:09 +02:00
Rémi Verschelde
2c88e1c15d
Merge pull request #51178 from Geometror/layout-options-textline-textparagraph
...
Various text layout improvements (TextLine, TextParagraph, Label, TextServer)
2021-08-11 07:51:57 +02:00
Rémi Verschelde
588883eb4a
Merge pull request #51442 from Geometror/styleboxflat-fake-aa-float
...
StyleBox fake AA improvements (make anti aliasing size a float property)
2021-08-11 07:35:53 +02:00
Hugo Locurcio
937c1a716c
Rename iterations_per_second
to physics_ticks_per_second
...
This makes it clearer that this property is only about physics FPS,
not rendering FPS.
The `physics_fps` project setting was also renamed to
`physics_ticks_per_second` for consistency.
2021-08-11 02:37:02 +02:00
Hendrik Brucker
403f4902d0
Various text layout improvements (TextLine, TextParagraph, Label, TextServer)
2021-08-11 00:09:48 +02:00
Hendrik Brucker
db2460f43c
StyleBox fake AA improvements (aa_size float property)
2021-08-10 23:37:06 +02:00
Aaron Franke
fa3a32a2d6
Use Key enum instead of plain integers
2021-08-10 16:26:55 -05:00
K. S. Ernest (iFire) Lee
18bd0fee5a
Merge pull request #49343 from theoway/node_auto_arrangement_graph_edit
...
Node Auto Arrangement in GraphEdit/VisualScript/VisualShader
2021-08-10 15:42:04 -04:00
Umang Kalra
12fc3f1eef
Automatic arrangement of nodes in VisualScript/VisualShaders editors
...
This PR and commit adds the functionality to arrange nodes in VisualScript/VisualShader editor. The layout generated by this
feature is compact, with minimum crossings between connections
& uniform horizontal & vertical gaps between the nodes.
This work has been sponsored by GSoC '21.
Full list of additions/changes:
• Added arrange_nodes() method in GraphEdit module.
• This method computes new positions for all the selected
nodes by forming blocks and compressing them.
The nodes are moved to these new positions.
• Adding this method to GraphEdit makes it available for
use in VisualScript/VisualShaders editors and its other
subclasses.
• Button with an icon has been added to call arrange_nodes() in GraphEdit.
• This button is inherited by VisualScript/VisualShaders editors
to invoke the method.
• Undo/redo is functional with this method.
• By using signals in arrange_nodes(), position changes are registered
in undo/redo stack of the subclass that is using the method.
• Metadata of the method has been updated in ClassDB
• Method description has been added to class reference of GraphEdit
2021-08-11 00:44:28 +05:30
PouleyKetchoupp
4da3a87f7d
Remove infinite inertia and ray shapes from CharacterBody
...
Infinite inertia:
Not needed anymore, since it's now possible to set one-directional
collision layers in order for characters to ignore rigid bodies, while
rigid bodies still collide with characters.
Ray shapes:
They were introduced as a work around to allow constant speed on slopes,
which is now possible with the new property in CharacterBody instead.
2021-08-10 12:10:26 -07:00
Rémi Verschelde
ac1dab5062
Merge pull request #51027 from fabriceci/improve-move-and-slide
...
Add properties to CharacterBody for more move_and_slide options
2021-08-10 18:55:58 +02:00
Rémi Verschelde
dce488d8f7
Merge pull request #49417 from Bhu1-V/gsoc-cmd-plt
...
Command Palette For Godot
2021-08-10 18:55:22 +02:00
Aaron Franke
339687e04f
Organize methods in Viewport and explicitly name 3D methods with 3D
2021-08-10 09:10:34 -05:00
fabriceci
c6666cc051
Add properties to CharacterBody for more move_and_slide options
2021-08-10 15:57:33 +02:00
Rémi Verschelde
50d5569ad4
Merge pull request #51457 from nekomatata/moving-platforms-3d
...
Fix 3D moving platform logic
2021-08-10 14:12:01 +02:00
Rémi Verschelde
16d73fefdb
Merge pull request #50682 from aaronfranke/basis-looking-at
...
Move code for looking_at to Basis
2021-08-10 11:28:12 +02:00
Rémi Verschelde
483bbd6ecc
Merge pull request #51464 from hpnrep6/mesh-disable-deprecated
...
Enclose deprecated components with `DISABLE_DEPRECATED` in Mesh
2021-08-10 09:56:27 +02:00
Rémi Verschelde
d56da233c4
Merge pull request #51463 from SaracenOne/assign_path_fix
...
Assign embedded text resource path earlier to prevent error on embedded scripts
2021-08-10 08:13:14 +02:00
Rémi Verschelde
536950f9f3
Merge pull request #21922 from aaronfranke/double
...
Some work on double-precision support
2021-08-10 07:41:46 +02:00
hpnrep6
0eca908e86
Enclose unused components in DISABLE_DEPRECATED
2021-08-10 00:54:24 -04:00
SaracenOne
d00c151db1
Assign embedded text resource path earlier to prevent error on embedded scripts.
2021-08-10 05:42:35 +01:00
PouleyKetchoupp
ec9fed69f4
Fix 3D moving platform logic
...
Same thing that was already done in 2D, applies moving platform motion
by using a call to move_and_collide that excludes the platform itself,
instead of making it part of the body motion.
Helps with handling walls and slopes correctly when the character walks
on the moving platform.
Also made some minor adjustments to the 2D version and documentation.
Co-authored-by: fabriceci <fabricecipolla@gmail.com>
2021-08-09 20:21:04 -07:00
Nathan Franke
b57b8453b1
Follow-Up Add SNames to get theme icon
2021-08-09 17:50:26 -05:00
Aaron Franke
430ad75963
Some work on double support
2021-08-09 17:43:48 -05:00
Rémi Verschelde
2de5d2361a
Merge pull request #51446 from nekomatata/fix-moving-platform-rotation
...
Fix applied rotation from moving platforms in move_and_slide
2021-08-09 23:20:44 +02:00
PouleyKetchoupp
5650c83e4b
Fix applied rotation from moving platforms in move_and_slide
...
When synchronizing CharacterBody motion with moving the platform using
direct body state, only the linear velocity was taken into account.
This change exposes velocity at local point in direct body state and
uses it in move_and_slide to get the proper velocity that includes
rotations.
2021-08-09 12:30:17 -07:00
Aaron Franke
84f720966c
Use doubles for time in many other places
2021-08-09 14:05:42 -05:00
Aaron Franke
78d33a6e24
Use doubles for time in animation code
2021-08-09 14:04:25 -05:00
Rémi Verschelde
dc20830348
Merge pull request #45568 from aaronfranke/node3d-real_t
...
Use real_t in 3D nodes
2021-08-09 21:01:29 +02:00
Fabio Alessandrelli
511f961973
Merge pull request #51097 from Faless/mp/4.x_spawnable
...
[Net] MultiplayerAPI remote scene spawning/despawning.
2021-08-09 19:45:31 +02:00
Rémi Verschelde
0a38d5c8f7
Merge pull request #43158 from nathanfranke/fix-gradient-and-draw-tile
...
Fix Gradient and Color Picker checkerboard, Fix tile parameter for CanvasItem.draw_texture_rect
2021-08-09 16:47:58 +02:00
Fabio Alessandrelli
9fcf3b5a9c
[Net] Basic extensible MultiplayerAPI spawn/despawn.
...
`PackedScene`s can be configured to be spawnable via a new
`MultiplayerAPI.spawnable_config` method.
They can be configured either to be spawned automatically when coming
from the server or to always require verification.
Another method, `MultiplayerAPI.send_spawn` lets you request a spawn on
the remote peers.
When a peer receive a spawn request:
- If it comes from the server and the scene is configured as
`SPAWN_MODE_SERVER`:
- Spawn the scene (instantiate it, add it to tree).
- Emit signal `network_spawn`.
- Else:
- Emit signal `network_spawn_request`.
In a similar way, `despawn`s are handled automatically in
`SPAWN_MODE_SERVER`.
In `SPAWN_MODE_SERVER`, when a new client connects it will also receive,
from the server all the spawned (and not yet despawned) instances.
2021-08-09 16:34:40 +02:00
Bhuvan Vemula
a0a019a998
Added EditorCommandPalette
2021-08-09 17:41:50 +05:30
Rémi Verschelde
85399a9170
Merge pull request #51155 from Chaosus/shader_fix_specular_mode
...
Fix a default shader specular render mode to `SCHLICK_GGX`
2021-08-09 08:13:47 +02:00
bruvzg
7c3c5603d0
[Text Server] Improve object (image/table) inline alignment.
2021-08-08 22:35:47 +03:00
Nathan Franke
051234e84e
Fix Gradient, Color Picker BG, Fix CanvasItem::draw_texture_rect p_tile
2021-08-07 16:40:50 -05:00
Michael Alexsander
4bef900399
Invert how global_rate_scale
value works, and rename it to playback_speed_scale
2021-08-07 12:32:42 -03:00
Rémi Verschelde
3177da1d05
Merge pull request #51360 from Paulb23/item-list-bg-colour-update
2021-08-07 14:14:08 +02:00
Paulb23
738b0fdae5
Redraw on item list custom bg/fg colour change
2021-08-07 12:08:46 +01:00
Raul Santos
18f7acf611
Fix Path3D initial forward calculation
2021-08-07 12:39:34 +02:00
Yuri Roubinsky
47a6bb2f28
Fix a default shader specular render mode to (SCHLICK_GGX
/BLINN
)
2021-08-06 16:01:58 +03:00
Aaron Franke
136dd887ad
Preserve original name in shader params cache
2021-08-05 18:31:08 -05:00
kobewi
665dc7805b
Fix get_used_rect() calculation
2021-08-05 20:40:21 +02:00
Rémi Verschelde
de2c2be19b
Shortcut: Rename shortcut
property to event
...
Having a property which has the same name as its class leads to confusing
situations (e.g. `BaseButton` has a `shortcut` property of type `Shortcut`
which has a `shortcut` property of type `InputEvent`).
Also renames `is_event` to `matches_event`, and `is_valid` to `has_valid_event`
to better reflect what the methods check.
2021-08-05 13:48:43 +02:00
PouleyKetchoupp
7d0a28f875
Fix inverted condition in CharacterBody2D/3D set_max_slides
2021-08-03 19:24:46 -07:00
Aaron Franke
7cec3c2b95
Use real_t in 3D nodes
2021-08-03 11:16:51 -05:00
Rémi Verschelde
57a5186b08
Merge pull request #51006 from foxydevloper/drag-drop-naming
...
Name nodes added when drag & dropping an image by `name_casing`
2021-08-03 09:38:03 +02:00
Rémi Verschelde
e0b560fb6f
Merge pull request #51177 from kleonc/tab_container-drop-tab-index-fix
...
TabContainer Fix moving dropped tab to incorrect child index
2021-08-03 09:34:51 +02:00
Rémi Verschelde
0f8cba285b
Merge pull request #50986 from raulsntos/fix-path-3d-end
2021-08-03 09:31:22 +02:00
Yuri Roubinsky
a34a91a30b
Added more input/output built-ins to visual shaders
2021-08-03 09:32:40 +03:00
Rémi Verschelde
26481cff95
Merge pull request #51198 from Calinou/codeedit-improve-callhint-highlight
...
Improve CodeEdit's callhint highlight visibility
2021-08-03 08:02:20 +02:00
K. S. Ernest (iFire) Lee
04703c6f66
Merge pull request #51042 from nikitalita/fix_binary_res_load_save
...
Fix binary resource loading and saving
2021-08-02 18:41:05 -07:00
Hugo Locurcio
3ea3addc79
Improve CodeEdit's callhint highlight visibility
...
This makes the currently edited parameter more visible in the
script editor's code completion hint.
2021-08-02 23:16:16 +02:00
Rémi Verschelde
c17a541650
Merge pull request #51039 from nekomatata/layer-grid-32
...
Refactor layer property editor grid
2021-08-02 21:14:16 +02:00
Yuri Roubinsky
bd6b7c4b0f
Merge pull request #51144 from Chaosus/vs_version
...
Makes dictionary instead of string for visual shader version
2021-08-02 21:55:50 +03:00
Rémi Verschelde
c620ede327
Merge pull request #50122 from Paulb23/code_edit_auto_brace_completion
2021-08-02 20:44:39 +02:00
Yuri Roubinsky
94c6817b51
Makes dictionary instead of string for visual shader version
...
Update doc/classes/VisualShader.xml
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2021-08-02 21:34:19 +03:00
Rémi Verschelde
737d3d31a6
Merge pull request #51192 from timothyqiu/sdfgi-enum-range
...
Validates set_sdfgi_cascades argument range
2021-08-02 18:20:58 +02:00
Rémi Verschelde
51fac9e3c7
Merge pull request #51187 from timothyqiu/vertex-index-3
...
Fix crash when number of indices to optimize is not a multiple of 3
2021-08-02 18:19:06 +02:00
Haoyu Qiu
b6638cb80d
Validates set_sdfgi_cascades argument range
2021-08-02 23:50:59 +08:00
Rémi Verschelde
2db45b62c0
Merge pull request #51185 from timothyqiu/tile-data-enum-range
...
Validate TileData enum range before using it as index
2021-08-02 17:20:44 +02:00
Rémi Verschelde
5360c2012c
Merge pull request #51004 from groud/tilemap_layers
...
Implements TileMap layers and move TileSetPlugins's functions to the TileMap node instead
2021-08-02 17:20:32 +02:00
Haoyu Qiu
0c879ab288
Fix crash when number of indices to optimize is not a multiple of 3
2021-08-02 23:07:18 +08:00
Haoyu Qiu
091d802692
Validate TileData enum range before using it as index
2021-08-02 22:49:23 +08:00
kleonc
a5a4532378
TabContainer Fix moving dropped tab at incorrect child index
2021-08-02 14:15:51 +02:00
kobewi
053f20be76
Add null check to Tween.bind_node()
2021-08-02 14:15:40 +02:00
Gilles Roudière
ad8b5cd5a4
Implements TileMap layers and move TileSetPlugins's functions to the TileMap node instead
2021-08-02 13:54:39 +02:00
Aaron Franke
9f3ae0adcd
Move code for looking_at to Basis
2021-08-01 12:49:02 -05:00
Paulb23
809a32c045
Clean up and complete CodeEdit inspector and docs
2021-08-01 12:24:19 +01:00
Paulb23
dd5a37f556
Move symbol lookup into CodeEdit
2021-08-01 12:06:33 +01:00
Paulb23
8f900ac178
Move line length guidelines into CodeEdit
2021-08-01 12:06:33 +01:00
Paulb23
d1a1ad127e
Move brace matching into CodeEdit
2021-08-01 12:06:33 +01:00
Paulb23
12f0053555
Move auto brace completion to CodeEdit
2021-08-01 12:06:33 +01:00
Yuri Sizov
7137ebdaf6
Make theme item overrides more obvious in the Inspector
2021-07-31 23:46:24 +03:00
Rémi Verschelde
f2efa6f4f3
Merge pull request #51083 from akien-mga/variantparser-fix-crash-42115
...
VariantParser: Fix uninitialized ResourceParser funcs
2021-07-31 00:02:23 +02:00
Rémi Verschelde
63be3c1f00
Merge pull request #50935 from Vitika9/50807
2021-07-30 23:37:07 +02:00
Rémi Verschelde
f3aaa713d9
VariantParser: Fix uninitialized ResourceParser funcs
...
They could cause a segfault when parsing values with ID "Resource"
as apparently we never set a valid `func` for it.
Fixes crash part of #42115 .
2021-07-30 23:23:31 +02:00
PouleyKetchoupp
7a0c210f9b
Refactor layer property editor grid
...
- Now able to display up to 32 layers in physics (still 20 for render)
- Adjustable grid size to fit available space in dock
- Expansion icon to display more layers vertically
- Layer numbers in cells to help with selection
2021-07-30 11:19:50 -07:00
Michael Alexsander
b70b9c4ede
Fix "Custom *" theme sections being inside "Auto Translate"
2021-07-30 13:55:07 -03:00
Rémi Verschelde
6d5c1086c3
Merge pull request #50982 from Calinou/editor-use-bullet-points
...
Use bullet points in the editor instead of dashes where relevant
2021-07-30 13:42:20 +02:00
nikitalita
bc58bf5477
Use constant for reserved field count
2021-07-29 22:24:29 -07:00
nikitalita
160601cc78
Fix binary resource loading and saving
2021-07-29 18:17:49 -07:00
Michael Alexsander
94a64d557e
Add auto_translate
toggle for automatic translation
2021-07-29 18:30:34 -03:00
Yuri Sizov
0ab661de63
Fix a crash when trying to load a WebP StreamTexture2D
2021-07-29 16:05:03 +03:00
foxydevloper
07a8f0fe38
Name nodes added from drag & drop by name_casing
2021-07-29 00:29:24 -04:00
Raul Santos
e23f6a5bba
Fix forward calculation in PathFollow3D for the position at the end of the curve
2021-07-28 22:10:36 +02:00
Hugo Locurcio
07dbe2045a
Use bullet points in the editor instead of dashes where relevant
2021-07-28 19:40:45 +02:00
Hugo Locurcio
48fc5b2480
Add node configuration warning for GeometryInstance3D distance
2021-07-28 19:33:14 +02:00
Rémi Verschelde
60eb508fbb
Merge pull request #50961 from YeldhamDev/embed_windows_fixes
...
Multiple cosmetic fixes for embedded windows
2021-07-28 18:24:07 +02:00
Michael Alexsander
79fc188fc4
Multiple cosmetic fixes for embedded windows
2021-07-27 23:55:06 -03:00
Rémi Verschelde
78f0d2d1d6
Merge pull request #50905 from fabriceci/fix-multiple-direction-collision
...
Allow multiple collision direction at the same time
2021-07-27 19:10:47 +02:00
vitika9
22eaec6895
Fixed Camera2D's reset_smoothing() does not work as described
2021-07-27 16:29:30 +05:30
K. S. Ernest (iFire) Lee
2fa4b59f99
Merge pull request #50355 from Calinou/immediategeometry3d-remove-remains
...
Remove the remains of ImmediateGeometry3D
2021-07-27 00:54:23 -07:00
Haoyu Qiu
448295cd51
Add check to internal methods to prevent crash
2021-07-27 12:26:13 +08:00
Rémi Verschelde
caf7cbd871
Merge pull request #50904 from YeldhamDev/switch_hover_embedded
...
Make `switch_on_hover` work on embedded windows
2021-07-26 21:00:13 +02:00
Michael Alexsander
478b6d6a13
Make switch_on_hover
work on embedded windows
2021-07-26 14:45:26 -03:00
Rémi Verschelde
fab3412139
Merge pull request #50899 from akien-mga/refref
...
Use Ref<T> references as iterators where relevant
2021-07-26 19:45:04 +02:00
Rémi Verschelde
92299989bd
Use Ref<T> references as iterators where relevant
...
And const when possible.
2021-07-26 19:27:11 +02:00