PouleyKetchoupp
2084bb5eb9
Fix 3D character snap on moving platforms
...
Applying the platform velocity when leaving the platform floor should be
done after snapping to keep things consistent, like it's done in 2D.
2021-08-17 07:18:22 -07:00
Haoyu Qiu
16c2d4ef22
Improve Undo/Redo menu items
...
* Make Undo/Redo menu items disabled when clicking it does nothing.
* Context menu of `TextEdit`
* Context menu of `LineEdit`
* Editor's Scene menu
* Script editor's Edit menu and context menu (for Script and Text)
* Make editor undo/redo log messages translatable.
* Mark `UndoRedo`'s `has_{un,re}do()` methods as `const`.
* Expose `TextEdit`'s `has_{un,re}do()` to scripts since `{un,re}do()` are already available.
2021-08-17 21:11:10 +08:00
Rémi Verschelde
45344c6a02
Merge pull request #51651 from pycbouh/editor-merge-custom-theme
...
Add support for partial custom editor themes
2021-08-17 13:13:08 +02:00
Rémi Verschelde
e60a1559c9
Merge pull request #51742 from fabriceci/jitter-fix-and-cleaning
...
Correct jitter in move and slide 2D
2021-08-17 11:36:31 +02:00
Rémi Verschelde
c4e03672e8
Merge pull request #51760 from requizm/fix/deleteallselection
...
Deletion occurs when all text is selected
2021-08-17 09:58:57 +02:00
Jihyun Yu
d40b7e2cfb
fix bug on window notification propagation
2021-08-17 14:07:53 +09:00
requizm
37ad82a7f7
We can delete all text on TextEdit
...
While all text of TextEdit was selected, deletion with backspace did not occur. It can now be deleted.
2021-08-17 02:30:14 +03:00
Kevin Fischer
75866c81e7
Added icons and API for indeterminate checkmarks for the Tree class.
2021-08-16 10:13:06 -07:00
Rémi Verschelde
cfdac0973c
Merge pull request #51698 from Paulb23/text-editor-settings
...
Reorganise text editor settings
2021-08-16 18:48:58 +02:00
Paulb23
bcfc591f86
Reorganise text editor settings
2021-08-16 17:18:49 +01:00
fabriceci
0cfb7de052
Correct jitter and clean code
2021-08-16 17:17:24 +02:00
Rémi Verschelde
43440228db
Merge pull request #51645 from fabriceci/improve-physics-api
...
API improvement on the physics (CharacterBody and related classes)
2021-08-16 17:05:08 +02:00
Rémi Verschelde
5d5e7418f9
Merge pull request #51731 from timothyqiu/menu-button-signal
...
Fix `MenuButton` not emitting `about_to_popup` signal
2021-08-16 15:38:27 +02:00
Rémi Verschelde
fff9a451a1
Merge pull request #51368 from TwistedTwigleg/GSOC_2020_Working_Branch_IK_SQUASHED
...
New and improved IK system for Skeleton3D - Squashed!
2021-08-16 15:37:17 +02:00
Haoyu Qiu
6ca476b406
Fix MenuButton not emitting about_to_popup signal
2021-08-16 20:53:10 +08:00
Rémi Verschelde
1ee61a501f
Merge pull request #51673 from Vignesh1-art/master
...
Fixed crash executing TextEdit.new().set_draw_control_chars(true)
2021-08-16 14:27:47 +02:00
Yuri Roubinsky
1e60fcc53c
Fix incorrect inheritance of VisualShaderNodeParticleAccelerator
2021-08-16 14:17:31 +03:00
Rémi Verschelde
3ce53e458e
Merge pull request #50159 from Calinou/standardmaterial3d-add-shader-comment
...
Add a comment at the top of generated shaders
2021-08-16 13:00:55 +02:00
Rémi Verschelde
55d26af588
Merge pull request #51608 from clayjohn/Vulkan-Panorama-sky-hint
...
Use hint_albedo in SkyMaterials
2021-08-16 12:41:12 +02:00
Vignesh1-art
eb5b0d013f
Fixed crash executing TextEdit.new().set_draw_control_chars(true)
...
Fixes #51613 .
2021-08-16 12:36:14 +02:00
Rémi Verschelde
832b045296
Merge pull request #51701 from theoway/updates_node_arranger_icon
...
Changes the icon of node arranger in GraphEdit & editor
2021-08-16 12:31:16 +02:00
Rémi Verschelde
2edc47caea
Merge pull request #51249 from kleonc/tab_container-fix-disconnecting-errors
...
TabContainer: Fix error on removing top-level Control child, Remove _get_tab method
2021-08-16 10:35:20 +02:00
Umang Kalra
c2f8c94b15
Changes the icon of node arranger in GraphEdit/VisualScript/VisualShader
2021-08-16 12:30:15 +05:30
Hugo Locurcio
c9a491b671
Add a comment at the top of generated shaders
...
This comment is useful to determine the origin of ShaderMaterials
converted from built-in material types (such as CanvasItemMaterial
or StandardMaterial3D).
The Godot version is also included in case the shader needs to be
regenerated with a newer engine version.
2021-08-16 05:19:39 +02:00
Yuri Roubinsky
e537a1f10e
Added missed limiters for Visual Shader node enums
2021-08-15 19:10:51 +03:00
Rémi Verschelde
966559c3bd
Merge pull request #51512 from Bhu1-V/PR/cmd-fix
...
command palette improvements
2021-08-15 16:01:49 +02:00
fabriceci
d776b6c154
API improvement on physics, mainly CharacterBody
...
Changes:
- Rename few methods/property and group them in the editor when it's possible
- Make MotionResult API consistency with KinematicCollision
- Return a boolean in move_and_slide if there was a collision
- New methods:
- get_floor_angle on CharacterBody to get the floor angle.
- get_angle on KinematicCollision to get the collision angle.
- get_last_slide_collision to quickly get the latest collision of move_and_slide.
2021-08-15 12:53:29 +02:00
Bhuvan Vemula
a0205e4f34
command palette improvements
2021-08-15 11:40:44 +05:30
TwistedTwigleg
5ffed49907
New and improved IK system for Skeleton3D
...
This PR and commit adds a new IK system for 3D with the Skeleton3D node
that adds several new IK solvers, as well as additional changes and functionality
for making bone manipulation in Godot easier.
This work was sponsored by GSoC 2020 and TwistedTwigleg
Full list of changes:
* Adds a SkeletonModification3D resource
* This resource is the base where all IK code is written and executed
* Adds a SkeletonModificationStack3D resource
* This node oversees the execution of the modifications and acts as a bridge of sorts for the modifications to the Skeleton3D node
* Adds SkeletonModification3D resources for LookAt, CCDIK, FABRIK, Jiggle, and TwoBoneIK
* Each modification is in it's own file
* Several changes to Skeletons, listed below:
* Added local_pose_override, which acts just like global_pose_override but keeps bone-child relationships intract
* So if you move a bone using local_pose_override, all of the bones that are children will also be moved. This is different than global_pose_override, which only affects the individual bone
* Internally bones keep track of their children. This removes the need of a processing list, makes it possible to update just a few select bones at a time, and makes it easier to traverse down the bone chain
* Additional functions added for converting from world transform to global poses, global poses to local poses, and all the same changes but backwards (local to global, global to world). This makes it much easier to work with bone transforms without needing to think too much about how to convert them.
* New signal added, bone_pose_changed, that can be used to tell if a specific bone changed its transform. Needed for BoneAttachment3D
* Added functions for getting the forward position of a bone
* BoneAttachment3D node refactored heavily
* BoneAttachment3D node is now completely standalone in its functionality.
* This makes the code easier and less interconnected, as well as allowing them to function properly without being direct children of Skeleton3D nodes
* BoneAttachment3D now can be set either using the index or the bone name.
* BoneAttachment3D nodes can now set the bone transform instead of just following it. This is disabled by default for compatibility
* BoneAttachment3D now shows a warning when not configured correctly
* Added rotate_to_align function in Basis
* Added class reference documentation for all changes
2021-08-14 15:57:00 -04:00
Rémi Verschelde
b9b6102b91
Merge pull request #51660 from AnilBK/use-short-functions
...
Use get_global_* functions instead of using transforms.
2021-08-14 12:17:53 +02:00
Rémi Verschelde
a96c96ca72
Merge pull request #50147 from aaronfranke/disable-node3d
...
Disable Node3D when compiling without 3D and fix disable_3d option
2021-08-14 11:59:06 +02:00
Anilforextra
c390f0515d
Use get_global_* functions instead of using transforms.
2021-08-14 14:01:57 +05:45
Rémi Verschelde
59879447a3
Merge pull request #51636 from Calinou/rename-lineshape2d
...
Rename LineShape2D to WorldMarginShape2D
2021-08-14 09:36:16 +02:00
Hugo Locurcio
8e3f71d750
Rename LineShape2D to WorldMarginShape2D
...
The new name makes it more obvious that it acts as an infinite plane,
and is consistent with its 3D counterpart (WorldMarginShape3D).
2021-08-14 03:12:13 +02:00
Yuri Sizov
855cfe1559
Add support for partial custom editor themes
2021-08-14 02:03:07 +03:00
Rémi Verschelde
14a2e59875
Merge pull request #51642 from akien-mga/cleanup-use_single_quotes
2021-08-13 21:49:06 +02:00
Rémi Verschelde
761eb7e06a
Merge pull request #51585 from Paulb23/theme-update-optimisation
2021-08-13 21:33:36 +02:00
Rémi Verschelde
84461a5c91
Merge pull request #50609 from bruvzg/te_block_caret
...
[TextEdit] Improve block/insert caret drawing.
2021-08-13 21:33:02 +02:00
Rémi Verschelde
81512a3732
Style: Cleanup code using text_editor/completion/use_single_quotes
2021-08-13 21:27:57 +02:00
Yuri Roubinsky
7ab604b677
Merge pull request #51630 from Chaosus/fix_completion_popup_size
2021-08-13 20:38:16 +03:00
Paulb23
273374957b
Only update TextEdit text cache when dirty
2021-08-13 17:47:53 +01:00
Paulb23
b6f5912174
Move CodeEdit theme overrides into EditorTheme
2021-08-13 17:47:53 +01:00
Yuri Roubinsky
6e87ff28ed
Fix incorrect completion popup size of CodeEdit
2021-08-13 19:34:18 +03:00
bruvzg
00381db2e7
[TextEdit] Improve block/insert caret drawing.
2021-08-13 19:28:47 +03:00
Paulb23
b73983340d
Add bulk theme overrides to Control
2021-08-13 16:41:36 +01:00
Rémi Verschelde
e499758a77
Merge pull request #51025 from reduz/fix-directional-shadow-bias
...
Fix directional shadow bias
2021-08-13 16:45:49 +02:00
Aaron Franke
7094ccfbe9
Disable Node3D when compiling without 3D and fix disable_3d option
2021-08-13 08:59:48 -05:00
Rémi Verschelde
24ec20414a
Merge pull request #50114 from Chaosus/vs_constants
...
Few improvements for constants in visual shader
2021-08-13 14:45:13 +02:00
Rémi Verschelde
f0e420e981
Merge pull request #51519 from Chaosus/vs_transform_operator
...
Changed `TransformMult` node to `TransformOp` in visual shaders
2021-08-13 14:44:14 +02:00
Rémi Verschelde
85e315d6e8
Merge pull request #51607 from aaronfranke/includes
...
Fix some unnecessary includes
2021-08-13 14:38:56 +02:00
Rémi Verschelde
1833c8b233
Merge pull request #51587 from Calinou/use-unicode-multiplication-symbol
...
Use the Unicode multiplication symbol where relevant
2021-08-13 14:27:48 +02:00
bruvzg
8f70232a15
Add placeholder textures to ensure CameraTexture / CameraFeed always have valid RIDs.
2021-08-13 12:32:01 +03:00
clayjohn
5fce0b3cb5
Use hint_albedo in SkyMaterials
2021-08-12 23:00:50 -07:00
Aaron Franke
eb4902a455
Fix some unnecessary includes
2021-08-13 00:27:38 -05:00
Hugo Locurcio
7612cff432
Use the Unicode multiplication symbol where relevant
2021-08-12 21:45:33 +02:00
Rémi Verschelde
56ac302dc4
Merge pull request #51580 from aaronfranke/particles-real-double
...
Use real_t and double where appropriate in Particles
2021-08-12 20:51:21 +02:00
Rémi Verschelde
1a9c8aaba9
Merge pull request #51558 from fabriceci/fix-move-and-slide-regression-multiple-collision-4
...
Fix move and slide regression by allowing multiple collision direction
2021-08-12 20:37:30 +02:00
Rémi Verschelde
5e0838c58e
Merge pull request #50372 from Paulb23/code_edit_breakpoint_fixes
...
Fix breakpoint toggle signal not firing when expected
2021-08-12 20:33:56 +02:00
Yuri Roubinsky
b2b33ce4f6
Merge pull request #51572 from Chaosus/vs_fix_transform_instance
...
Fix printing error about unsupported modifier on `TransformUniform`
2021-08-12 21:23:18 +03:00
Yuri Roubinsky
c43b7c113f
Fix printing error about unsupported modifier on TransformUniform
2021-08-12 19:40:45 +03:00
Aaron Franke
03e2544d50
Use real_t and double where appropriate in Particles
2021-08-12 11:35:31 -05:00
Rémi Verschelde
c89ad92c96
Merge pull request #51532 from nekomatata/layer-mask-accessors
...
Uniformize layer names, script methods and documentation
2021-08-12 17:55:11 +02:00
PouleyKetchoupp
989acbbe81
Uniformize layer names, script methods and documentation
...
- Back to 1-based layer names to make it clearer in editor UI
- Layer bit accessors are renamed to layer value and 1-based too
- Uniform errors and documentation in render and physics
- Fix a few remaining collision_layer used in place of collision_mask
2021-08-12 08:06:42 -07:00
Rémi Verschelde
78c8b7ffec
Merge pull request #51568 from AnilBK/remove-swap
...
Remove unused swap template.
2021-08-12 15:52:05 +02:00
Paulb23
a736fb8ce9
Fix breakpoint toggle signal not firing when expected
2021-08-12 14:47:10 +01:00
Rémi Verschelde
fdddfa02fd
Merge pull request #51567 from mortarroad/master-fix-cpu-particles-spread
...
Fix CPU Particles spread
2021-08-12 15:44:55 +02:00
Rémi Verschelde
f54c5707b5
Merge pull request #50363 from JestemStefan/node2D_zero_scale_det_error
...
Limit scale of `Node2D` to EPSILON (0.00001) to prevent `det==0` error
2021-08-12 15:40:11 +02:00
Rémi Verschelde
a695a6764e
Merge pull request #50371 from Paulb23/text_edit_cleanup
2021-08-12 15:30:12 +02:00
Morris Tabor
d7e059ff84
Fix CPU Particles spread
...
Same as https://github.com/godotengine/godot/pull/51565 but ported to master.
2021-08-12 14:36:30 +02:00
Anilforextra
e3872a244d
Remove unused swap template.
2021-08-12 16:58:03 +05:45
Paulb23
a4606c2806
Cleanup and complete TextEdit inspector and docs
2021-08-12 11:43:35 +01:00
Paulb23
ae4dcb8918
Cleanup and bind remaing methods in TextEdit
2021-08-12 11:43:35 +01:00
fabriceci
ce52d3e7b5
Fix move and slide regression by allowing multiple collision direction
2021-08-12 12:42:17 +02:00
Morris Tabor
0e4468cbec
Fix regressions caused by recent particle spread refactor
...
Caused by https://github.com/godotengine/godot/pull/47228
Same as https://github.com/godotengine/godot/pull/51553 but for master.
2021-08-12 12:08:37 +02:00
Yuri Roubinsky
810c30dc09
Merge pull request #51517 from Chaosus/precise_graphedit_port_handling
...
Better port handling connection for `GraphEdit`
2021-08-12 11:40:52 +03:00
Paulb23
0a32a6907b
Cleanup and expose viewport / scrolling methods
2021-08-12 09:29:58 +01:00
Paulb23
7dbb0f3233
Rename readonly to editable
2021-08-12 09:29:58 +01:00
Paulb23
b799e5583a
Rename insert mode to overtype mode
2021-08-12 09:29:58 +01:00
Paulb23
b700011314
Protect internal CodeEdit --> TextEdit API
2021-08-12 09:29:58 +01:00
Paulb23
9ec3e7f3d7
Cleanup TextEdit selection methods
2021-08-12 09:29:56 +01:00
Paulb23
7e70f9e0b9
Expose and cleanup TextEdit line wrap API
2021-08-12 09:29:16 +01:00
Paulb23
d5dcaee4c5
Cleanup and rename caret operations
2021-08-12 09:29:13 +01:00
Paulb23
e60900a353
Make TextEdit cut, copy and paste overridable
2021-08-12 09:27:10 +01:00
Paulb23
abbf14e7f5
Remove dead code from TextEdit
2021-08-12 09:27:10 +01:00
Rémi Verschelde
fba0c8e2e2
Merge pull request #51502 from codecat/fix-caret-selection
...
Move cursor to edge of selection when moving caret left/right
2021-08-12 10:07:12 +02:00
Yuri Roubinsky
61904d56ea
Better port handling connection for GraphEdit
2021-08-12 09:09:24 +03:00
PouleyKetchoupp
f9176a39ce
Make radius & height in CapsuleShape3D independent
...
Also changed CapsuleMesh to make settings consistent between render and
physics.
2021-08-11 14:54:53 -07:00
Rémi Verschelde
7188cb6012
Merge pull request #51498 from codecat/fix-triple-click
...
Triple click in text editor now uses last mouse position for validity
2021-08-11 23:44:55 +02:00
Melissa Geels
408401a642
Triple click in text editor now uses last mouse position for validity
...
Previously, you would be able to double click a word, followed by
single-clicking another word on the same line, which would select the
entire line. Now, it will only select the whole line if the mouse
position has remained the same after the double click. This mimicks the
behavior in most third party text editors.
Fixes #51312 .
2021-08-11 21:49:26 +02:00
kobewi
b35a2516a0
Improve CapsuleShape2D size clamping
2021-08-11 21:39:18 +02:00
Yuri Roubinsky
9cf158019d
Changed TransformMult
node to TransformOp
in visual shaders
2021-08-11 22:05:04 +03:00
Rémi Verschelde
e30be92ce8
Merge pull request #41634 from KoBeWi/the_independence
2021-08-11 18:16:24 +02:00
Tomasz Chabora
f12f5b36b5
Make radius & height in CapsuleShape2D independent
2021-08-11 17:34:27 +02:00
Rémi Verschelde
a57d420224
Merge pull request #51500 from timothyqiu/navmesh-doc
2021-08-11 14:12:56 +02:00
Melissa Geels
ed4c3eb7b3
Move cursor to edge of selection when moving caret left/right
...
This is to mimic the behavior of many third party text editors. The
reason it's not doing it when moving by word is due to that behavior
being mostly the same on other editors.
2021-08-11 13:27:12 +02:00
Haoyu Qiu
60298328ca
Improve NavigationMesh typing, parameter validation and documentation
2021-08-11 18:18:10 +08:00
Yuri Roubinsky
0eb97c11cf
Few improvements for constants in visual shader
2021-08-11 13:14:16 +03:00
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