Commit graph

8580 commits

Author SHA1 Message Date
Camille Mohr-Daurat
43c7448741
Merge pull request #53149 from fabriceci/port-move-and-slide-3D-new-changes
Add latest API changes added in the 3D version of move_and_slide to the 2D version
2021-09-30 09:43:07 -07:00
Rémi Verschelde
a201f30c7f
Merge pull request #53259 from boruok/fix-atlas-texture-get_data-crash 2021-09-30 18:31:15 +02:00
Rémi Verschelde
5b7ec95de7
Merge pull request #53254 from Calinou/node-rename-filename
Rename Node's `filename` property to `scene_file_path` for clarity
2021-09-30 17:59:56 +02:00
Hugo Locurcio
570cdc128f
Rename Node's filename property to scene_file_path for clarity 2021-09-30 16:50:25 +02:00
fabriceci
bd411ae187 Add latest changes added in the 3D version 2021-09-30 16:50:07 +02:00
PouleyKetchoupp
eec3f3ec12 Fix motion direction in slope for CharacterBody3D
- More accurate sliding in slopes to keep input direction correct
- More accurate constant speed calculation
- Renamed linear_velocity to motion_velocity for clarity
- General code cleaning and simplifications
2021-09-30 07:47:07 -07:00
boruok
213612b44a Fix AtlasTexture get_data() crash 2021-09-30 22:30:05 +09:00
Rémi Verschelde
5d6a98f04e
Merge pull request #53239 from nekomatata/fix-animatable-body-initial-state 2021-09-30 15:15:00 +02:00
Rémi Verschelde
a662ca66aa
Merge pull request #53112 from EricEzaM/better-breakpoint-gutter 2021-09-30 14:57:23 +02:00
Eric M
e0f8410d16 Improved breakpoint gutter for CodeEdit.
Added preview of breakpoint placement on hover. Added override of icon for the Editor to use an SVG so it is no longer blurry.
2021-09-30 22:15:47 +10:00
PouleyKetchoupp
6e6f292f15 Fix AnimatableBody moving and colliding during the first frame
_update_kinematic_motion() shouldn't be called in the constructor
It's too early and causes a first call to set the body position to 0.
Then the second call to set the actual position triggers kinematic
motion, colliding with objects on the path to the initial position.

Side effect of sync to physics now enabled by default.
2021-09-29 18:30:57 -07:00
Rémi Verschelde
92d88fde2c
Merge pull request #53223 from Paulb23/fix-autocomplete-trigger 2021-09-29 23:15:06 +02:00
Rémi Verschelde
1ab8f3f559
Merge pull request #52724 from groud/improve_tilemap_physics 2021-09-29 23:01:16 +02:00
Paulb23
7926d75d02 Fix TextOp setting to none when typing 2021-09-29 17:34:44 +01:00
Gilles Roudière
f2caab4691 Improve TileMap physics for moving platforms and conveyor belts like movements 2021-09-29 17:56:30 +02:00
Haoyu Qiu
9dd0d3f550 Don't memcpy to nullptr even if length is zero 2021-09-29 20:58:14 +08:00
Haoyu Qiu
82f7f2c46c Fix crash in headless mode 2021-09-29 17:24:53 +08:00
Rémi Verschelde
6c0f44ca7e
Merge pull request #53000 from Chaosus/lineedit_expose_selection_methods 2021-09-29 10:31:37 +02:00
Rémi Verschelde
ad635567b1
Merge pull request #53189 from AnilBK/use-class-specific-funcs 2021-09-29 07:40:52 +02:00
Rémi Verschelde
50c0cee44e
Merge pull request #53186 from groud/tiles_fixes 2021-09-29 07:05:19 +02:00
Anilforextra
fc9767abb1 Use functions defined in the their classes. 2021-09-29 09:36:34 +05:45
Camille Mohr-Daurat
341b532d5e
Merge pull request #52754 from nekomatata/dynamic-body-modes
Clarify RigidDynamicBody modes
2021-09-28 17:11:17 -07:00
fabriceci
dd5f01e83e Set stop on slope on by default on CharacterBody. 2021-09-28 22:31:46 +02:00
Camille Mohr-Daurat
c38ef94951
Merge pull request #53174 from fabriceci/apply-delta-move-and-collide
Physic API change: apply the delta in move and collide like move and slide
2021-09-28 11:32:09 -07:00
Gilles Roudière
27b9b3ef3c Various tiles-related fixes 2021-09-28 19:25:49 +02:00
Rémi Verschelde
9556c3a30a
Merge pull request #53180 from boruok/4.0-fix-atlas-texture-return-null 2021-09-28 18:52:53 +02:00
Rémi Verschelde
0a3aa85a7b
Merge pull request #53177 from fabriceci/sync-to-physics-true-animatable-body 2021-09-28 18:15:56 +02:00
boruok
2cc2adedaa 4.0 fix atlas texture return null 2021-09-28 23:54:47 +09:00
Rémi Verschelde
483b8a598e
Merge pull request #53173 from jmb462/fix-tree-column-title-min-size 2021-09-28 16:21:45 +02:00
fabriceci
32bf7c419c Sync to physics true by default for AnimatableBody 2021-09-28 16:11:17 +02:00
jmb462
7fabbe2760 Fix tree title column size minimum width 2021-09-28 14:54:48 +02:00
fabriceci
60fee25c44 Apply delta in move and collide 2021-09-28 14:53:24 +02:00
Rémi Verschelde
5aa099aaed
Merge pull request #53154 from drcd1/fix-sphere-normals 2021-09-28 14:51:25 +02:00
Rémi Verschelde
60988a06c2
Merge pull request #52953 from nekomatata/fix-collision-recovery-depth 2021-09-28 12:11:38 +02:00
Rémi Verschelde
c89c2878ef
Merge pull request #53001 from floppyhammer/fix-tree-item-width 2021-09-28 10:53:56 +02:00
Rémi Verschelde
4735a0359c
Merge pull request #53153 from Duroxxigar/fix-bone-attachment-typo 2021-09-28 07:41:36 +02:00
Duarte David
7d53755ca7 Fixes the normals of SphereMesh when the radius is different from 1 2021-09-28 00:09:39 +01:00
Duroxxigar
3bcf03c40f Fixed typo in bone attachment warning 2021-09-27 18:53:56 -04:00
PouleyKetchoupp
bf523a2b2a Improved logic for CharacterBody collision recovery depth
Allows 2D character controller to work without applying gravity when
touching the ground (also more safely in 3D), and collision detection
is more flexible with different safe margin values.

Character body motion changes in 2D and 3D:
-Recovery only for depth > min contact depth to help with collision
detection consistency (rest info could be lost if recovery was too much)
-Adaptive min contact depth (based on margin) instead of space parameter

Extra CharacterBody changes:
-2D: apply changes made in 3D for stop on slope and floor snap that help
fixing some jittering cases
-3D: fix minor inconsistencies in stop on slope and floor snap logic
2021-09-27 15:31:41 -07:00
Brian Semrau
62f8b0eb91 QuadMesh remove format ARRAY_FORMAT_INDEX 2021-09-27 13:10:34 -04:00
Haoyu Qiu
ab280de765 Validate before passing indices to meshoptimizer 2021-09-27 20:35:56 +08:00
Gilles Roudière
a98453670c
Merge pull request #53100 from KoBeWi/fix_them_tiles_2-layer_count_of_oblivion
Fix TileMap layer loading
2021-09-27 14:05:39 +02:00
kobewi
140b54fd35 Fix TileMap layer loading 2021-09-27 13:13:48 +02:00
Rémi Verschelde
8138280d20
Merge pull request #53091 from AnilBK/merge-duplicates 2021-09-27 00:09:32 +02:00
jmb462
3f0fe0b8a3 Fix LineEdit and TextEdit double-click and triple-click selection 2021-09-26 19:56:48 +02:00
Rémi Verschelde
73668c59aa
Merge pull request #52824 from e8newallm/52680
Updated Tabs to not update excessively
2021-09-26 19:35:58 +02:00
Matthew Newall
082f924566 Updated Tabs to not update excessively 2021-09-26 17:05:44 +00:00
Anilforextra
41e43e0959 Merge duplicate branch conditions to one.
Use SWAP template for swapping values.
2021-09-26 21:18:15 +05:45
floppyhammer
53efc55409 Fix minimum size of TreeItem 2021-09-26 17:02:54 +08:00
LATRio
1b55d72c68 fix out of bounds crash in GPUParticle3D::_skinning_changed() 2021-09-25 23:06:32 +09:00
Rémi Verschelde
9293c76636
Merge pull request #53049 from AnilBK/dont-construct-2 2021-09-25 12:26:08 +02:00
Anilforextra
cdd912c48e Construct values only when necessary. 2021-09-25 14:46:45 +05:45
Yuri Sizov
873443756d Correctly calculate position of the folding arrow in Tree 2021-09-25 02:01:14 +03:00
Rémi Verschelde
994c1201c1
Merge pull request #52996 from YeldhamDev/im_the_invisible_tab 2021-09-25 00:11:51 +02:00
Rémi Verschelde
46cc0af5c5
Merge pull request #53009 from Chaosus/fix_completion_results 2021-09-24 21:42:38 +02:00
Rémi Verschelde
01d505e507
Merge pull request #52993 from YeldhamDev/tabs_rename_fix 2021-09-24 21:40:23 +02:00
Michael Alexsander
edf3d225ce Fix tab renaming not updating its size in Tabs 2021-09-24 10:44:04 -03:00
Yuri Roubinsky
e70a0d950a Fix incorrect offsets of tooltip content in CodeEdit
Fix incorrect offsets of tooltip content in `CodeEdit`
2021-09-24 16:33:39 +03:00
kobewi
11e7963a14 Refactor and move easing equations 2021-09-24 13:47:13 +02:00
Rémi Verschelde
32ab77ef8f
Merge pull request #52430 from AnilBK/vector2-replacements 2021-09-24 13:04:42 +02:00
Rémi Verschelde
b8a6eb6d9b
Merge pull request #38414 from theoway/Fix-GraphNode_offset_update 2021-09-24 13:01:20 +02:00
Yuri Roubinsky
4e0552a4ff Add selection getter methods to LineEdit 2021-09-24 11:30:58 +03:00
Michael Alexsander
7ce02b642e Expose TabContainer's tab hidding for scripts 2021-09-24 01:26:59 -03:00
Anilforextra
cc51b045da Construct values only when necessary. 2021-09-23 22:26:07 +05:45
Gilles Roudière
f9e6329496 Implement animated tiles 2021-09-23 17:24:37 +02:00
Rémi Verschelde
88b347dc27
Merge pull request #51920 from jmb462/missing-sname-macro-optimization-in-some-functions 2021-09-23 13:14:20 +02:00
Rémi Verschelde
011866edcd
Merge pull request #52956 from laws65/skeleton3d-bone-fix 2021-09-23 12:10:09 +02:00
Rémi Verschelde
2815594ba0
Merge pull request #52954 from nekomatata/fix-kinematic-collision-reference 2021-09-23 10:26:08 +02:00
Umang Kalra
9aa0b3c46e Fixes sync issue between position_offset and rect_position in GraphNode
Bleh
2021-09-23 10:53:45 +05:30
laws65
59ff3fda7f Prevent being able to set bone's parent as itself 2021-09-23 11:30:45 +09:30
PouleyKetchoupp
9269952053 Don't override KinematicCollision reference when still in use in script
In case the reference is stored in script, create a new instance to
avoid overriding the previous values.
Otherwise, re-use the reference as before to avoid extra allocations.
2021-09-22 18:08:04 -07:00
bruvzg
9a36d8f26f Fill variation coordinates dictionary with default values when FontData is set/added. 2021-09-22 11:10:40 +03:00
fabriceci
fd9e573ba6 Port 2D improvement to move and slide 3D
Co-authored-by: Camille Mohr-Daurat <pouleyketchoup@gmail.com>
2021-09-22 00:14:04 +02:00
Rémi Verschelde
bfcc29635f
Merge pull request #52913 from Paulb23/text-edit-search-theme 2021-09-21 21:55:41 +02:00
Rémi Verschelde
ba57252bd8
Merge pull request #52878 from AnilBK/add-get-center 2021-09-21 21:30:30 +02:00
Paulb23
6c2fd03959 Added search colors to TextEdit and CodeEdit theme 2021-09-21 20:24:39 +01:00
Anilforextra
90908cd67d Add Get Center Method for Rect2/Rect2i and AABB. 2021-09-21 21:14:17 +05:45
Eric M
baba971c81 Added option for spinbox to update it's value on line edit 'text_changed' rather than 'text_entered' 2021-09-21 23:24:33 +10:00
Rémi Verschelde
dc2b062609
Merge pull request #52775 from gyroninja/fix-instantiated-root-node-crash
Fail at instantiating a packed scene if the root node is instantiated
2021-09-21 14:23:54 +02:00
Rémi Verschelde
91960b7b81
Merge pull request #52466 from tcoxon/fix_43733_4.0
Prevent shaders from generating code before the constructor finishes.
2021-09-21 13:52:57 +02:00
Tom Coxon
dbe757102c Prevent shaders from generating code before the constructor finishes.
Fixes #43733: "creating SpatialMaterial in a separate thread creates invalid
shaders (temporarily)."

The bug occurred because various setters called in materials' constructors add
materials to queues that are processed on the main thread. This means that
when the materials are created in another thread, they can be processed on the
main thread before the constructor has finished.

The fix adds a flag to affected materials that prevents them from being added
to the queue until their constructors have finished initialising all the
members.
2021-09-21 11:51:39 +01:00
bruvzg
c931906af7 Add flag to connected grapheme. Apply RTL displacement FX only to the whole connected grapheme. Pass more glyph info to the custom RTL FX. 2021-09-21 13:51:38 +03:00
Rémi Verschelde
be63fdff80
Merge pull request #52605 from TokageItLab/fixed-vtype-in-node-oneshot
Fixed value type and applied small change in `AnimationNodeOneShot`
2021-09-21 10:49:10 +02:00
Rémi Verschelde
e3ebe8b976
Merge pull request #52886 from bruvzg/rtl_fixes
Fix RTL layout Label text, VBox child, 3D node editor controls, and popup menu alignment.
2021-09-21 10:16:56 +02:00
bruvzg
99dc2ec9e1 Fix RTL layout Label text, VBox child, 3D node editor controls, and popup menu alignment. 2021-09-21 10:35:23 +03:00
Eric M
caac2e1a87 Fix focus shortcuts triggering incorrectly 2021-09-21 12:24:07 +10:00
Rémi Verschelde
132ad85670
Merge pull request #52555 from TokageItLab/fixed-discrete-animation-seek
Fixed seeking behavior of property track with discrete interpolation
2021-09-20 14:42:34 +02:00
Rémi Verschelde
d54635d9b0
Merge pull request #52543 from TokageItLab/fixed-transition-when-xfade-time-is-zero
Fixed `AnimationNodeTransition`'s behavior when xfade time is zero
2021-09-20 13:19:29 +02:00
Rémi Verschelde
91294b4a21
Merge pull request #52519 from e8newallm/52497-Remove_Unused_Variable
Removed unused Ref<Font> font variables
2021-09-20 12:35:25 +02:00
Rémi Verschelde
9d43d49bfd
Merge pull request #52151 from CaptainProton42/fix-y-billboard-shear
Fix y billboard shear when rotating camera
2021-09-20 12:19:42 +02:00
Rémi Verschelde
1e93e3fc49
Merge pull request #52848 from Paulb23/code-edit-tests 2021-09-20 11:43:21 +02:00
Rémi Verschelde
56b02a0776
Merge pull request #52862 from bruvzg/cache_index_chk
Add FontData cache index check, remove excessive loop.
2021-09-20 11:22:49 +02:00
Paulb23
35264d5782 Change completion prefixes to single char and unnecessary ui_cancel accept_event 2021-09-20 09:42:39 +01:00
bruvzg
1383b37f1a Add FontData cache index check, remove excessive loop. 2021-09-20 11:03:59 +03:00
bruvzg
9d0e3cff09 Fix Label and RichTextLabel visible_characters and percent_visible methods. 2021-09-20 09:35:24 +03:00
gyroninja
f400c9239e Fail at instantiating if the root node is instantiated 2021-09-18 17:38:36 -07:00
Rémi Verschelde
43cc6dd479
Merge pull request #52774 from Calinou/audiostreamplayer3d-remove-out-of-range 2021-09-17 21:56:59 +02:00
Hugo Locurcio
973f52b784
Remove unused out_of_range_mode property from AudioStreamPlayer3D
The `out_of_range_mode` property is no longer used since audio mixing
was moved out of the various AudioStreamPlayer nodes.
2021-09-17 20:18:38 +02:00
Rémi Verschelde
583eaa9869
Merge pull request #49819 from nekomatata/fix-process-mode-inherit 2021-09-17 19:16:19 +02:00
Rémi Verschelde
b334560f05
Merge pull request #49376 from menip/OptionButtonFix 2021-09-17 16:00:42 +02:00