lupoDharkael
3b0cf34299
Control: Expose pass_on_modal_close_click
2021-03-25 18:29:41 +01:00
Morris Tabor
e06b096994
Fix ParticlesMaterial spread
2021-03-25 17:27:00 +01:00
PouleyKetchoupp
14d3a8dd83
Draw triangles for HeightMapShape debug collision
...
Helps with ambiguous cases where it's not possible to tell which diagonal is used for collision in quads.
2021-03-24 17:51:27 -07:00
Nathan Franke
5e434841ec
Add Root Null Check
...
(cherry picked from commit 3c921ba801
)
2021-03-21 01:20:59 +01:00
jmb462
6c950977a5
Prevent resizing minimap bigger than GraphEdit ( Fix #47189 )
...
Minimap size couldn't be resized back after been resized bigger than GraphEdit cause the grabber was out of GraphEdit.
This commit prevents resizing minimap bigger than GraphEdit and fix this issue.
(cherry picked from commit 045f55ec00
)
2021-03-20 23:08:46 +01:00
Lightning_A
72c54c10eb
Enable zooming graph_edit with scrollwheel, cherry-picked for 3.x
2021-03-19 14:18:46 -06:00
Yuri Roubinsky
70cd4c5958
Fix GraphEdit connects when graph is zoomed/unzoomed, cherry-picked for 3.x
2021-03-19 14:12:23 -06:00
Yuri Roubinsky
3ad676cbbe
Fix GraphEdit reconnecting to disconnected port, cherry-picked for 3.x
2021-03-19 14:12:11 -06:00
Yuri Roubinsky
0b7384621e
Prevents incorrect connection attempt on port clicking in GraphEdit, cherry-picked for 3.x
2021-03-19 14:11:54 -06:00
TwistedTwigleg
f50c8062dd
Fix for regression in SkeletonIK code
...
(cherry picked from commit c15e23396d
)
2021-03-19 10:53:58 +01:00
Justin Ho
672fdb7af2
Check for null pointer in get_column_width(0)
...
(cherry picked from commit fa6fd3a2d0
)
2021-03-19 10:51:09 +01:00
jmb462
843eb80039
Fix BBCode tables overlap with bottom text
...
New row height was added only if all the column was full.
(cherry picked from commit 25af026d9e
)
2021-03-19 10:49:36 +01:00
PouleyKetchoupp
0b51cb7a11
Fix spamming errors when SoftBody pinned nodes have no attachment
...
There was a specific case where the node path wasn't checked for
validity before trying to access the attachment node.
It could cause lots of error log noise in both editor and game.
2021-03-18 16:22:53 -07:00
jmb462
c695ef29b8
3.2 - Fix Tween.is_active() always true after stop() and then start()
...
Fix #39760 & #39801
These issues were resolved in master branch (and closed) but are still active in the 3.2 branch.
2021-03-18 22:01:59 +01:00
Crystal Melting Dot
0eb0e6128c
Fix TabContainer _get_tab_width
...
Now it translates node name before calculating tab width
(cherry picked from commit 89baf02fb6
)
2021-03-17 21:06:09 +01:00
jmb462
ae8019a7f6
Fix crash on calling play() in a uninitialized AnimatedSprite2D
...
When AnimatedSprite2D::play() was called before SpriteFrames has been initialized, a crach occurred (issue #46013 ).
Modification : An error message on null check test has been added to prevent crash.
Fix #46013 .
(cherry picked from commit 324ab63844
)
2021-03-17 15:33:38 +01:00
Kongfa Waroros
e8d0089901
Check AnimationNode to update properties
...
(cherry picked from commit 981ca8045f
)
2021-03-17 15:17:02 +01:00
Rémi Verschelde
0d0841e08e
Merge pull request #47082 from nekomatata/collision-debug-shape-game-only-3.3
...
[3.3] Disable debug collision shapes in the editor
2021-03-17 10:38:12 +01:00
PouleyKetchoupp
baf24b4503
Disable debug collision shapes in the editor
...
If the editor was started with --debug-collisions, 3d shapes were
displayed twice, both with the gizmo and debug shapes. Some shapes could
also persist after being removed due to the usage of queue_free() to
destroy the debug shapes.
2021-03-16 17:58:51 -07:00
Kongfa Waroros
7646cbbca6
Check if _edit_set_position and _edit_set_rect was used outside an editor
...
(cherry picked from commit b80406770f
)
2021-03-16 11:11:31 +01:00
Pop0p
d2a577f7f1
trims_whitespaces_when_creating_folder_windows
...
When creating a Windows folder via a Godot's dialog, the extra spaces are not removed which causes problems with Windows. We now remove leading and trailing whitespace when creating a dir.
(cherry picked from commit c8538153b0
)
2021-03-13 22:25:34 +01:00
Rémi Verschelde
eb1698dd2a
Fix Control::_edit_set_state bogus error check
...
My mistake when cherry-picking #46699 with f8ee8b1b73
,
I forgot to amend the cherry-pick to change 'offsets' back to 'margins' for the 3.2
branch.
Fixes #46979 .
2021-03-13 21:10:12 +01:00
Rémi Verschelde
ba174332af
Merge pull request #46939 from abaire/relaxes_gltf_name_sanitization_3.2
...
Relaxes Node naming constraints in glTF documents to match the Editor.
2021-03-13 14:57:09 +01:00
abaire
b032067e42
Relaxes Node naming constraints in glTF documents to match the Editor.
2021-03-12 08:35:50 -08:00
Rémi Verschelde
3f246ebeed
Merge pull request #46932 from JFonS/fix_lm_capture_env
...
[3.2] Batch of lightmapper fixes and minor improvements
2021-03-12 12:30:36 +01:00
JFonS
e2c28675ef
Batch of lightmapper fixes and minor improvements
...
- Fix objects with no material being considered as fully transparent by the lightmapper.
- Added "environment_min_light" property: gives artistic control over the shadow color.
- Fixed "Custom Color" environment mode, it was ignored before.
- Added "interior" property to BakedLightmapData: controls whether dynamic capture objects receive environment light or not.
- Automatically update dynamic capture objects when the capture data changes (also works for "energy" which used to require object movement to trigger the update).
- Added "use_in_baked_light" property to GridMap: controls whether the GridMap will be included in BakedLightmap bakes.
- Set "flush zero" and "denormal zero" mode for SSE2 instructions in the Embree raycaster. According to Embree docs it should give a performance improvement.
2021-03-12 12:00:53 +01:00
TwistedTwigleg
71c6c85565
Changes to SkeletonIK:
...
* Removed the pointers to PhysicalBone in the code, as they were unused.
* Forward ported the SkeletonIK bone scaling fix I made from Godot 3.2 to Godot 4.0.
* Fixed issue where the root bone in the IK chain would not rotate correctly.
* The issue turned out to be the update_chain function being called in solve. This would override the root bone transform incorrectly and that would cause it not to rotate after just a single solve. Removing the update_chain function fixes the issue and based on my testing there are no adverse effects.
* While the old fix on this PR (prior to a force push) required a hack fix, this new fix does not!
* Removed the update_chain function. This change doesn't appear to have any adverse effects in any of the projects I tested (including with animations, Skeleton3D or otherwise, from AnimationPlayer nodes!)
* Fixed issue where the scale of the Skeleton node would change the position of the target, causing it not to work with skeletons that have a global scale of anything but 1.
(cherry picked from commit a622649876
)
2021-03-12 11:29:03 +01:00
sps1112
f8ee8b1b73
Fix Control._edit_set_state crash
...
(cherry picked from commit 05f5a43cad
)
2021-03-12 10:11:54 +01:00
Rémi Verschelde
b7e06930aa
Revert "Fix flicker in control nodes due to pivot offset"
2021-03-11 11:01:48 +01:00
Rémi Verschelde
6e9b1d99e2
Camera2D: Update scrolls when the Viewport is resized
...
Factored the `viewport`/`custom_viewport` setup code which was used in two
locations to ensure consistency.
Fixes #46826 .
2021-03-09 17:17:51 +01:00
Angad Kambli
144749c31b
use collision mask in vehicle raycast
...
(cherry picked from commit bfc533fc4c
)
2021-03-08 17:40:22 +01:00
Rémi Verschelde
118567ca28
Merge pull request #46657 from lawnjelly/revert_snapping
...
Revert backport of 2D transform and camera snapping options
2021-03-08 14:49:41 +01:00
Rémi Verschelde
3fafaf2cf2
Merge pull request #46717 from lawnjelly/camera_process
...
Improve process logic in Camera2D
2021-03-08 14:42:08 +01:00
lawnjelly
8763d891fe
Improve process logic in Camera2D
...
The logic for internal process and internal physics process in Camera2D was very buggy and convoluted for historical reasons.
This is a cleanup to make the logic simpler and easier to follow.
2021-03-08 13:29:19 +00:00
kobewi
749892c9fc
Release mouse when SpinBox leaves scene tree
...
(cherry picked from commit 83f6c6b360
)
2021-03-07 22:51:06 +01:00
Hugo Locurcio
ac6251d8b2
Remove deprecation warning messages from InterpolatedCamera
...
Since Godot 4.0's relea se is still a while away, warning users
every time the project starts might be a bit too dramatic.
2021-03-07 15:56:41 +01:00
PouleyKetchoupp
17bb7c6735
Fix errors with invalid CollisionPolygon2D
...
Fixed internal errors when the shape is invalid and made warnings more
descriptive.
(cherry picked from commit 2217e477b9
)
2021-03-05 22:45:29 +01:00
PouleyKetchoupp
6c0002afb5
Fix errors and crash with empty ConvexPolygonShape2D
...
(cherry picked from commit 6fb6090748
)
2021-03-05 22:45:29 +01:00
lawnjelly
136f94fa24
Fix Camera2D frame delay
...
Fixes camera frame delay by always doing a scroll update except when smoothing is active.
2021-03-05 15:46:26 +00:00
lawnjelly
bf1de6bbfa
Revert backport of 2D transform and camera snapping options
...
More work is needed to make sure that those options actually solve users' issues, so we prefer to remove the options for 3.2.4 and revisit for a future release.
2021-03-05 14:20:31 +00:00
QbieShay
ffbb81e769
fixed particle rotate y flag
2021-03-05 11:31:03 +01:00
Rémi Verschelde
cad3771ce7
Merge pull request #46623 from Janglee123/tilemap-collision-show
...
Added `show_collision` property for tilemap node.
2021-03-04 23:40:17 +01:00
janglee
7b6cc3e687
Added `show_collision` property.
...
If true, collision shapes are shown in the editor and at run-time.
Requires Visible Collision Shapes to be enabled in the Debug menu,
for collision shapes to be visible at run-time.
2021-03-05 01:21:40 +05:30
Pedro Rodrigues
138d5121eb
Fix crash trying to destroy an ImageTexture object containing a null texture
...
The problem happened when `ImageTexture::create_from_image` was called
with an empty image. In this situation an RID was allocated despite the
texture being null. The destructor would then crash trying to acess this
null texture.
Fixes #46274
(cherry picked from commit 46218d8c37
)
2021-03-04 12:21:17 +01:00
kobewi
b82d5688b9
Deselect column only if belongs to deselected item
...
(cherry picked from commit 5cd5722f6a
)
2021-03-04 12:20:35 +01:00
sps1112
6ea1e97e06
Add null check for NavigationMesh.create_from_mesh()
...
(cherry picked from commit cf6bfea93f
)
2021-03-04 11:41:46 +01:00
sps1112
216aba8228
Add size<=0 check in BakedLighmapData._get_user_data()
...
(cherry picked from commit 18bb6e74be
)
2021-03-04 11:41:10 +01:00
Michael Alexsander
292c9e380a
Make Camera2D's editor helper code only be compiled on editor builds
...
(cherry picked from commit f70ccbca52
)
2021-03-04 11:35:39 +01:00
Zak
3f36ca7323
HTTPRequest: Improve response when disconnecting while downloading
...
Previously if a disconnect occured while downloading a non recoverable error was displayed. This PR attempts to fix this by making sure `request_completed` signal is emitted with an `STATUS_CONNECTION_ERROR` response code.
(cherry picked from commit 70c39737db
)
2021-03-04 11:31:57 +01:00
Rémi Verschelde
c003423674
Merge pull request #46579 from nekomatata/fix-joint-remove-body-regression-3.2
...
[3.2] Fix Joint2D/Joint node path reset on scene switch
2021-03-03 16:41:59 +01:00
PouleyKetchoupp
cdf0ebfac7
Fix Joint2D/Joint node path reset on scene switch
...
When one of the bodies exited the tree, the corresponding node path was
reset instead of just resetting the joint from the physics server. That
was causing the node path to be reset on scene switch when one of the
bodies is under the joint in the scene tree.
2021-03-02 08:32:00 -07:00
Rémi Verschelde
9ee835ac93
Merge pull request #46409 from asheraryam/fix-scale-pivot-jitter
...
Fix flicker in control nodes due to pivot offset
2021-03-02 16:15:21 +01:00
Pedro Rodrigues
279b9f43f3
Fix crash in GIProbe::bake
...
The problem happened when the passed from_node was null and the GIProbe
node had no parent node.
Fixes #45978
(cherry picked from commit 82fed7b6da
)
2021-03-02 10:26:14 +01:00
Fabio Alessandrelli
05367c755c
[Net] Better EOF handling in HTTPRequest.
...
This fix request_completed being emitted two times, the first with the
result, the second as a failure when retrieving responses served with
read-until-EOF.
(cherry picked from commit d61cd469f1
)
2021-03-02 10:26:14 +01:00
Eryk Dwornicki
127f3c0566
Fixed bug that caused collision not to be properly reenabled when joint between two bodies is destroyed
...
(cherry picked from commit 519e314bea
)
2021-03-02 10:26:14 +01:00
Yuri Sizov
59dfd084ab
Properly hide GraphEdit's minimap
2021-03-01 18:18:05 +03:00
lawnjelly
b1e24597e7
Renaming rendering/2d project settings.
...
The rendering/quality/2d section of project settings is becoming considerably expanded in 3.2.4, and arguably was not the correct place for settings that were not really to do with quality.
3.2.4 is the last sensible opportunity we will have to move these settings, as the only existing one likely to break compatibility in a small way is `pixel_snap`, and given that the whole snapping area is being overhauled we can draw attention to the fact it has changed in the release notes.
Class reference is also updated and slightly improved.
`pixel_snap` is renamed to `gpu_pixel_snap` in the project settings and code to help differentiate from CPU side transform snapping.
2021-03-01 11:38:46 +00:00
Mateo Kuruk Miccino
74b3021691
LineEdit: Now double click to select a word, and triple click to select all the content
2021-02-28 17:41:11 -03:00
lawnjelly
847a37b196
Change 2d transform snapping from floor to round
...
Two common problems have emerged as a result of transform snapping:
1) Camera jitter with a camera following a snapped object
2) Pixel gaps between e.g. a platform and a player, where a platform rounds down and a player rounds up
Using round seems to greatly reduce problems due to camera jitter. It also may prove better for pixel gaps because pixel art is often designed on a grid, so whole numbers are too expected, which are unstable with floor().
2021-02-28 14:34:39 +00:00
asheraryam
25f35b2c9f
Fix jitter in control nodes when using pivot-offset and animating scale
...
This is based on suggested fix from this comment
https://github.com/godotengine/godot/issues/36087#issuecomment-771593146 -- basically the old rounding workaround is removed, and rounding is now done locally in the scroll_container instead.
Fixes #28804
Co-authored-by: Georg Wacker <contact@georgwacker.com>
2021-02-28 15:30:48 +03:00
Delf Neumärker
7df977c3ed
Fix crash during drag if user freed the drag preview
2021-02-27 15:16:06 +01:00
Rémi Verschelde
9047e760d1
Merge pull request #46451 from hilfazer/click_mesh_instance_crash
...
Prevent crash when clicking Mesh in MeshInstance when is scene root
2021-02-26 20:59:19 +01:00
hilfazer
84a9efcebc
Prevent crash when clicking Mesh in MeshInstance when is scene root
2021-02-26 18:58:05 +01:00
Eric M
3b2c43312c
Fixed issues with slider focus and scroll input
...
(cherry picked from commit 707cf278a5
)
2021-02-26 15:27:42 +01:00
Meriipu
6f77f1bb3e
If the mouse is held on notification_wm_mouse_exit, do not drop focus
...
This fixes a bug where users of the scrollbar had to be very careful
not to move the mouse outside the viewport, otherwise the scrollbar
would drop its drag-action and stop scrolling until clicked again.
The existing behaviour had the side-effect of also dropping the
cosmetic highlighting of the scrollbar (in addition to the dragging),
for the specific case where the mouse was move outside the window.
The previous behaviour did nothing to remove the highlight if the
mouse was released (but not moved) inside the viewport.
This separate issue with the lingering highlight of the scrollbar
(until a mouse-movement action is performed inside the viewport) is
fixed in an immediate followup to this commit.
Closes bug #39634
(cherry picked from commit 44657db3e2
)
2021-02-26 15:22:08 +01:00
Delf Neumärker
28e36dc7b9
Fix crash when loading a scene containing an uncreatable type
...
(cherry picked from commit 04a4828c5e
)
2021-02-26 11:30:38 +01:00
Emmanuel Leblond
94fe2dd31e
Fix Godot returned status code on unexpected error
2021-02-25 18:39:29 +01:00
Rémi Verschelde
6fc9c409dd
Merge pull request #46420 from nekomatata/draw-collision-outline-option-3.2
...
[3.2] Added option in project settings to draw Shape2D outlines
2021-02-25 17:15:52 +01:00
Rémi Verschelde
e919a413fb
Merge pull request #46397 from trollodel/collisionobject3d-debug-shapes-3.2
...
Allow CollisionObject to show collision shape meshes
2021-02-25 16:54:47 +01:00
PouleyKetchoupp
d94cd42ccd
Added option in project settings to draw Shape2D outlines
...
Disabling collision outlines can be useful for performance when the game
is running and many collision shapes are displayed.
2021-02-25 07:48:33 -07:00
Rémi Verschelde
96d38d9751
Revert "Warn when setting Control size inside ready()"
...
This reverts commit a8105d73c7
.
We need to improve the logic somewhat to make the warning more specific to
actual problematic scenarios. Will likely be cherry-picked again + fixes
for the next release.
Fixes #46376 .
2021-02-25 15:14:32 +01:00
kleonc
80e4b2d02e
MeshDataTool::create_from_surface Fail on invalid index data
...
(cherry picked from commit 8e82cf8174
)
2021-02-25 15:14:32 +01:00
Jummit
0a9190134d
expose edit_selected in Tree
...
(cherry picked from commit 13fb24cb6f
)
2021-02-25 15:14:32 +01:00
Christoffer Sundbom
3b63467783
Tween: Add null check for target object
...
Fixes #45399 .
(cherry picked from commit 5b2100d85c
)
2021-02-25 15:14:31 +01:00
trollodel
2da6d82f3b
Allow CollisionObject to show collision shape meshes
...
Add an editor gizmo to CollisionObject.
CollisionShape no longer shows collision shapes directly.
2021-02-24 21:33:40 +01:00
Hugo Locurcio
2735a5498e
Improve the `get_node()` error message to be more descriptive
...
- Mention the origin of the `get_node()` call.
- Mention whether the attempted path is absolute or relative.
See #46214 .
(cherry picked from commit e6abdc943d
)
2021-02-22 14:16:42 +01:00
kleonc
566ad4fd22
Label::set_lines_skipped Fail if passed a negative value
...
(cherry picked from commit d7bb7cad47
)
2021-02-22 10:16:54 +01:00
kleonc
bd7c24371d
Line2D::set_point_position Fail if passed index is out of bounds
...
(cherry picked from commit df49fdd189
)
2021-02-22 10:16:22 +01:00
Kongfa Waroros
af5fe70623
Keep Hue value when Saturation or Value is zero
...
(cherry picked from commit 27749711b2
)
2021-02-22 10:15:29 +01:00
nc
bc86f3e27e
improve error message when travel() is called on an AnimationNodeStateMachine when the state machine is not playing
...
(cherry picked from commit 0c968d603a
)
2021-02-22 10:15:00 +01:00
Tomasz Chabora
a8105d73c7
Warn when setting Control size inside ready()
...
(cherry picked from commit 84da090a69
)
2021-02-22 10:15:00 +01:00
PouleyKetchoupp
cefaa6fb06
Fixed export var default value in PackedScene when script is not loaded in editor
...
(cherry picked from commit 4e14eefd94
)
2021-02-22 10:15:00 +01:00
hilfazer
c76e832b1c
Support for duplication of nested instanced scenes
2021-02-21 18:34:52 +01:00
Hugo Locurcio
aacaad5066
Draw an outline for 2D debug collision shapes
...
This makes them easier to distinguish, especially when used
in a TileMap.
The default color's opacity has been slightly decreased to account
for the new outline.
2021-02-21 17:55:54 +01:00
hilfazer
28fa0f5d13
Prevent selecting hidden nodes in Canvas Item Editor
2021-02-20 20:30:16 +01:00
Ellen Poe
8ac22bdae4
Don't fade out after pausing unless stream is running
...
(cherry picked from commit eb5566f5c5
)
2021-02-19 15:55:41 +01:00
Ellen Poe
d55501505c
Initialize fadeout to false in AudioStreamPlayer
...
(cherry picked from commit b8a13a4968
)
2021-02-19 15:55:34 +01:00
Delf Neumärker
4065fa0bcf
Fix crash when calling connect_nodes_forced with invalid params
...
(cherry picked from commit 4a468171e5
)
2021-02-19 15:54:00 +01:00
Eoin O'Neill
2fb221e79a
Collision Shape 2D 'Disabled' Visualization Correction
...
Having white or strongly desaturated debug collision shape color
setting would make it harder to visualize enabled / disabled state.
This change makes it easier to visualize enabled / disabled state
by reducing the alpha color by half when disabled.
(cherry picked from commit 0c4594f6c9
)
2021-02-19 15:51:43 +01:00
Delf Neumärker
fd90fc2c9b
Fix handling of negative indices in SurfaceTool
...
(cherry picked from commit 735f75a16b
)
2021-02-18 23:47:35 +01:00
Hein-Pieter van Braam
220f24c191
Merge pull request #45618 from RandomShaper/modernize_mt_3.2
...
Backport of all the multi-threading modernization (3.2)
2021-02-18 20:47:24 +01:00
Rémi Verschelde
7af8da32b1
Merge pull request #45933 from nekomatata/cylinder-support-3.2
...
[3.2] Cylinder support in Godot Physics 3D
2021-02-18 19:36:42 +01:00
PouleyKetchoupp
c6fbd55ca9
Cylinder support in Godot Physics 3D
...
Backport of cylinder support from Master.
2021-02-18 08:44:23 -07:00
Rémi Verschelde
0176cc4fca
Merge pull request #46162 from gongpha/jr-_-avoid-get_tree-when-flying-colorpicker
...
[3.2] Avoid signal methods in ColorPicker to access the tree when it isn't in the tree
2021-02-18 13:15:12 +01:00
Rémi Verschelde
3374f84a2f
Merge pull request #46165 from angad-k/fix-mesh-instance-crash
...
add null check in MeshInstance::_mesh_changed()
2021-02-18 13:00:17 +01:00
Pedro J. Estébanez
4485b43a57
Modernize atomics
...
- Based on C++11's `atomic`
- Reworked `SafeRefCount` (based on the rewrite by @hpvb)
- Replaced free atomic functions by the new `SafeNumeric<T>`
- Replaced wrong cases of `volatile` by the new `SafeFlag`
- Platform-specific implementations no longer needed
Co-authored-by: Hein-Pieter van Braam-Stewart <hp@tmm.cx>
2021-02-18 12:23:25 +01:00
Angad Kambli
013fc360d7
add null check in MeshInstance::_mesh_changed()
2021-02-18 16:36:27 +05:30
Rémi Verschelde
f30d827448
Merge pull request #45951 from KoBeWi/copy_of_3.2
...
[3.2] Add node copy-paste
2021-02-18 12:06:17 +01:00
Pedro J. Estébanez
6d89f675b1
Modernize Thread
...
- Based on C++11's `thread` and `thread_local`
- No more need to allocate-deallocate or check for null
- No pointer anymore, just a member variable
- Platform-specific implementations no longer needed (except for the few cases of non-portable functions)
- Simpler for `NO_THREADS`
- Thread ids are now the same across platforms (main is 1; others follow)
2021-02-18 11:58:08 +01:00
Pedro J. Estébanez
4ddcdc031b
Modernize Mutex
...
- Based on C++11's `mutex`
- No more need to allocate-deallocate or check for null
- No pointer anymore, just a member variable
- Platform-specific implementations no longer needed
- Simpler for `NO_THREADS`
- `BinaryMutex` added for special cases as the non-recursive version
- `MutexLock` now takes a reference. At this point the cases of null `Mutex`es are rare. If you ever need that, just don't use `MutexLock`.
- `ScopedMutexLock` is dropped and replaced by `MutexLock`, because they were pretty much the same.
2021-02-18 11:58:08 +01:00
Pedro J. Estébanez
b450036120
Modernize RWLock
...
- Based on C++14's `shared_time_mutex`
- No more need to allocate-deallocate or check for null
- No pointer anymore, just a member variable
- Platform-specific implementations no longer needed
- Simpler for `NO_THREADS`
2021-02-18 11:41:07 +01:00
Kongfa Waroros
5ec1eee6b1
Avoid function signals in ColorPicker to access the tree when it isn't in the tree
2021-02-18 16:57:47 +07:00
Ellen Poe
8a426923c2
Fix pops in play() of both spatial audio players
...
(cherry picked from commit 5e1442ad55
)
2021-02-18 10:33:46 +01:00
Angad Kambli
bba67729ca
add null check in _update_particle_data_buffer()
...
add check to see if p_order is in range for CPUParticles3D::set_draw_order'
(cherry picked from commit c97fffdc59
)
2021-02-18 00:36:20 +01:00
Jitesh
d968a03cbc
Add animation_finished signal and fix frame_changed signal for AnimatedSprite3D
...
Fixes #40301 .
Fixes #45947 .
(cherry picked from commit c3be0c2c04
)
2021-02-18 00:36:20 +01:00
andybarcia
61c00938a2
Fixes crash when calling VisualShader::set_mode
...
(cherry picked from commit f455f873c7
)
2021-02-18 00:35:57 +01:00
Angad Kambli
1ca1b78a09
add checks for node type range in add_node function
2021-02-17 14:22:50 +05:30
Michael Alexsander
c67c3e0a46
Fix StyleBoxLine's incorrect style margin values
...
(cherry picked from commit ddf05a7c3c
)
2021-02-16 14:27:40 +01:00
kobewi
6440b7fcae
Select TreeItem if none is selected
...
(cherry picked from commit 282639d653
)
2021-02-16 14:27:40 +01:00
Ellen Poe
3d34803edc
Return setseek position if one exists in get_playback_position.
...
(cherry picked from commit 15b8480b2c
)
2021-02-16 14:27:40 +01:00
kleonc
e40682c32d
RichTextLabel::add_image Fail if passed image has no area
...
(cherry picked from commit a4afdd4a77
)
2021-02-16 14:27:39 +01:00
kleonc
31744577b3
VisualShader::_input_type_changed Fix index out of bounds crash.
...
(cherry picked from commit 7d451c0040
)
2021-02-16 14:27:39 +01:00
hoontee
d91a5e7883
Implement CollisionPolygon3D margin
...
(cherry picked from commit fbb1ef759c
)
2021-02-16 14:27:39 +01:00
PouleyKetchoupp
ac9e5d9c60
Fix TextEdit autoscroll with wrapped lines
...
Index to find the last line wrap index was off by one, which prevented the first wrapped line to trigger autoscroll.
(cherry picked from commit 121030940c
)
2021-02-16 14:27:38 +01:00
Rémi Verschelde
77438f7a45
Merge pull request #46054 from JFonS/cpu_lightmapper_disk
...
[3.2] Reduce lightmaps file size.
2021-02-16 13:37:09 +01:00
JFonS
56bf256d76
Add options to reduce lightmaps disk usage.
...
Added BakedLightmap.use_hdr and BakedLightmap.use_color properties
that can reduce the flie size of lightmap texture at the expense of quality.
Changed the denoiser to work in a single buffer, reducing RAM
usage. Also added the `-mstackrealign` flag in the denoiser compilation
for MinGW builds. This flag helped fix a bug in Embree, so I want to see
if it will help fix GH #45296 .
2021-02-16 13:20:27 +01:00
Rémi Verschelde
1611d3dc17
Merge pull request #46008 from akien-mga/3.2-fix-camera-align-crash-45976
...
Camera2D: Fix crash calling align when not in tree
2021-02-16 12:18:38 +01:00
PouleyKetchoupp
018008ce81
TextEdit respects content margin from StyleBox
...
Backport from PR #45858 on master.
2021-02-15 10:47:38 -07:00
bruvzg
56fccb1ec1
[3.2] Fix SPACING_SPACE not used for drawing characters.
2021-02-15 18:03:26 +02:00
Rémi Verschelde
5a22bd2b3e
Camera2D: Fix crash calling align when not in tree
...
Fixes #45976 .
2021-02-15 10:54:16 +01:00
kobewi
637117c8d1
[3.2] Add node copy-paste
2021-02-13 14:27:36 +01:00
Rémi Verschelde
e71510097d
Merge pull request #45837 from Kayomn/3.2
...
Accomodate blend shape ranges of -1 to +1 for GLES
2021-02-12 09:28:19 +01:00
Kongfa Waroros
adb93d7120
Update GraphEdit when GraphNode's slot is updated
...
(cherry picked from commit fe6c8d48e6
)
2021-02-11 13:14:33 +01:00
PouleyKetchoupp
5e978d1df5
Fix contact points debug for 3D Physics
...
Setting each point's position was missing for 3D. Now enabling collision
render debug will display contact points for 3D physics, the same way it
does for 2D physics.
Note: Multimesh rendering seems not to work in this scenario on master,
but it's working fine on 3.2.
(cherry picked from commit e5e9be8355
)
2021-02-11 13:12:06 +01:00
Filip
9c4f16f4c1
Fixed completion box not showing properly [3.2]
2021-02-10 20:40:00 +01:00
Rémi Verschelde
398a625a9f
Merge pull request #39421 from RandomShaper/pause_aware_picking_3.2
...
Implement pause-aware picking (3.2)
2021-02-09 10:43:48 +01:00
Rémi Verschelde
daa0fe101e
Merge pull request #45813 from RandomShaper/keep_selected_visible_3.2
...
Keep selected node visible after filter change (3.2)
2021-02-09 10:43:37 +01:00
kobewi
2863c6117e
Set selected Tree item to null when deselected
...
Co-authored-by: Brody Eller <wviper3@gmail.com>
(cherry picked from commit ef8ec59f2f
)
2021-02-08 22:36:37 +01:00
Kanabenki
dad0d4a8ee
Update ColorPicker controls when entering tree
...
(cherry picked from commit 03d4ebf129
)
2021-02-08 22:36:37 +01:00
Rafał Mikrut
24d03afc9b
Fix nan errors when using VehicleBody
...
(cherry picked from commit 1b8cbcf946
)
2021-02-08 22:36:36 +01:00
Oliver Dick
db57f32194
TextEdit: When left mouse is pressed to place the cursor, do not immediately adjust the viewport when cursor_set_line is called, but afterwards on cursor_set_column (effectively when the cursor reached its final position)
...
Fixes #45770
(cherry picked from commit 8d598693fc
)
2021-02-08 22:36:36 +01:00
Rémi Verschelde
b060b2e68f
Merge pull request #45750 from revilo/3.2
...
[3.2] Bugfix: Update transform of collision shape on NOTIFICATION_PARENTED
2021-02-08 21:33:21 +01:00
Pedro J. Estébanez
745c711289
Implement pause-aware picking
...
This adds a new project setting (`physics/common/enable_pause_aware_picking`). It's disabled by default.
When enabled, it changes the way 2D & 3D physics picking behaves in relation to pause:
- When pause is set, every collision object that is hovered or captured (3D only) is released from that condition, getting the relevant mouse-exit callback., unless its pause mode makes it immune from pause.
- During the pause. picking only considers collision objects immune from pause, sending input events and enter/exit callbacks to them as expected.
- When pause is left, nothing happens. This is a big difference with the classic behavior, which at this point would process all the input events that have been queued against the current state of the 2D/3D world (in other words, checking them against the current position of the objects instead of those at the time of the events).
2021-02-08 20:48:13 +01:00
Yuri Roubinsky
34d3235c84
[3.2] Visual Shader Parenthesis fix
2021-02-08 19:37:50 +03:00
Pedro J. Estébanez
e1054a17b5
Expose Tree::scroll_to_item()
2021-02-08 02:19:23 +01:00
Kayomn
d923df52c5
Accomodate blend shape ranges of -1 to +1
2021-02-07 21:42:02 +00:00
Rémi Verschelde
f05e068d6c
Merge pull request #45583 from lawnjelly/optimize_transform_propagate
...
Optimize transform propagation for hidden 3d objects
2021-02-06 12:23:52 +01:00
Rémi Verschelde
f36c529ad0
Merge pull request #45752 from JFonS/cpu_lightmapper_fixes
...
Assorted CPU lightmapper fixes
2021-02-06 11:44:52 +01:00
Oliver Dick
09924d6d73
Bugfix: Update transform of collision shape on NOTIFICATION_PARENTED (fixes invalid transform of collision shape in cases where the node is not supposed to enter the scene tree)
2021-02-06 02:41:16 +01:00
JFonS
27c1e65969
Assorted CPU lightmapper fixes
...
- Fix crash when a ray hits a texel with a UV2 coordinate exactly
equal to 1.0.
- Take BakedLightmap extents into account.
- Clear capture data between bakes.
- Fix minor issues with seam correction.
2021-02-05 19:18:19 +01:00
muiroc
11fc3b8758
Use the blend parameter passed to blend_animation during graph processing
...
(cherry picked from commit 01bd1b33c7
)
2021-02-05 09:26:50 +01:00
lawnjelly
cb8134f371
Optimize transform propagation for hidden objects
...
When visual instances are hidden, there is no need to update their global transforms and send these to the visual server. This only needs to be done when the objects are reshown.
2021-02-03 15:16:47 +00:00
Rémi Verschelde
30fd2f171d
Merge pull request #45497 from Chaosus/fix_particles_3.2
...
[3.2] Fix particles not properly updated by their lifetime
2021-02-03 15:51:14 +01:00
jfons
16bbe8ddf4
3D editor grid improvements
...
This commit adds a view-dependant fade to the 3D viewport grid. It fades out
at steep view angles to hide the solid regions that appear far from the camera.
I also included a fade to hide the grid borders.
I added some improvements to the dynamic grid when the camera is in orthogonal mode.
It properly handles zoom now, and the grid center is now set to the intersection point
between the grid plane and the camera forward ray, keeping the grid
always visible.
(cherry picked from commit 73e62dffb9
)
2021-02-02 13:30:50 +01:00
Yuri Roubinsky
8689c1178d
Adds Metallic to spatial light input of visual shaders
...
(cherry picked from commit f4eef287f9
)
2021-02-02 13:02:46 +01:00
kobewi
7a6ab8c558
Cache world in VisibilityNotifier3D to avoid crash
...
(cherry picked from commit 4d172f1fca
)
2021-02-02 13:02:45 +01:00
Volka
c6824ec09d
Fix unintended SpinBox mouse capture
...
(cherry picked from commit ae2cf8eb38
)
2021-02-02 13:02:42 +01:00
Rémi Verschelde
0b6dd929c6
Merge pull request #45169 from fmazan/3.2-completion-panel-positioning
...
[3.2] Fixed completion and hint panel positioning in TextExit
2021-02-01 20:50:38 +01:00
Rémi Verschelde
cea561e461
Merge pull request #45510 from TamplierS1/3.2
...
Fix disconnection between Gizmo and inspector values on BakedLightmap
2021-01-28 08:32:12 +01:00
Azamat Nabiullin
5611a17219
Fix disconnection between Gizmo and inspector values on BakedLightmap
...
After adding `_change_notify("extents");` to `set_extents()` method in `BakedLightmap` class
the issue was fixed
Fix disconnection between Gizmo and inspector values on BakedLightmap
Remove unnecessary `_change_notify("bake_extents")` call from `set_extents()`
2021-01-28 07:03:06 +03:00
HaSa1002
4ff0df702d
Expose bookmark, breakpoint, and mark safe functions in TextEdit
2021-01-27 22:41:07 +01:00
kobewi
a7a490e650
Fix popup_centered() for scaled popups
2021-01-27 18:12:09 +01:00
Yuri Roubinsky
4ae5aa0153
[3.2] Fix particles not properly modified by their lifetime
2021-01-27 16:32:21 +03:00
hoontee
32d1efdb21
Do not clear materials when setting mesh
...
(cherry picked from commit 6e2a55c464
)
2021-01-26 22:10:30 +01:00
kobewi
7ede2f36fe
Allow to override drop data in LineEdit
...
(cherry picked from commit a3a31591b5
)
2021-01-26 17:24:55 +01:00
Hugo Locurcio
76bd7d796b
Make Range return 1.0 ratio if minimum and maximum values are equal
...
An error message is also no longer printed.
This matches the behavior found in most UI frameworks where having
equal minimum and maximum values is considered acceptable.
This closes #43179 .
(cherry picked from commit 44204ec32d
)
2021-01-26 17:00:17 +01:00
Nils Reid
349f25429b
Exposed find_next_valid_focus and find_prev_valid_focus.
...
(cherry picked from commit 3e94c23fa5
)
2021-01-26 17:00:16 +01:00
Rémi Verschelde
9f2c24e8ce
Cleanup: Remove executable bit from files which don't need it
...
Drop unused xpmfix.sh script.
(cherry picked from commit 76c6007aa6
)
2021-01-26 17:00:15 +01:00
Hugo Locurcio
7133603238
Fix typo in theming methods ("botton" -> "bottom")
...
(cherry picked from commit 1f9cac1717
)
2021-01-26 17:00:15 +01:00
HipsterPenguin
158314c0b9
Fixed 6DOF set/get check for the path starting with joint_constraints
...
New code checks whether or not property has joint_constraints as the first part of its path.
(cherry picked from commit 6bf46cf70f
)
2021-01-26 17:00:15 +01:00
Rémi Verschelde
07be68e904
Merge pull request #45370 from naithar/fix/line_edit_clear
...
[3.2] [GUI] Fix LineEdit clearing
2021-01-26 12:30:58 +01:00
Sergey Minakov
7b8d6d2413
[GUI] Enforce virtual keyboard redisplay on clear
2021-01-26 13:18:14 +03:00
Yuri Sizov
a9552cefa2
Fix minimap capturing events and improve its theme
...
Add an editor setting for minimap opacity in visual editors
2021-01-25 21:49:34 +03:00
Lyuma
2c2f70c444
embree: cross compile fixes.
...
Fix typos in #if; add missing _MSC_VER; avoid warning in random generator.
2021-01-18 06:20:24 -08:00
Rémi Verschelde
bc47a8ae00
Merge pull request #39533 from hilfazer/editable-children-bugfixes
...
Fix Editable Children issues with node renaming, moving, duplicating and instancing.
2021-01-18 12:31:12 +01:00
Rafał Mikrut
f92ad30dfd
Fix memory leak dynamic font
2021-01-17 17:53:13 +01:00
Rafał Mikrut
b213c441e4
Fix usage of deleted element in Area::_area_inout
2021-01-16 09:54:55 +01:00
Rémi Verschelde
029d2568c3
Merge pull request #45211 from akien-mga/3.2-cherrypicks
...
Cherry-picks for the 3.2 branch (future 3.2.4) - 17th batch
2021-01-15 17:09:32 +01:00
Rémi Verschelde
57e0ef7b95
Merge pull request #45198 from nekomatata/improved-raycast-node-render-debug-3.2
...
[3.2] Improve Raycast render debug
2021-01-15 16:51:04 +01:00
Alexander Pech
d73281a350
Keep RichTextLabel visible character properties in sync
...
The RichTextLabel class is inconsistent in how it updates the
visible_characters and percent_visible properties when either is changed.
To keep both properties consistent, update percent_visible when setting the
visible_characters property.
For both properties, when setting one, notify change for the other.
Docs updated for member set_visible_characters on RichTextLabel class.
(cherry picked from commit 463e2002ab
)
2021-01-15 16:49:46 +01:00
Rémi Verschelde
497653ab53
Merge pull request #44628 from JFonS/new_cpu_lightmapper_3.2
...
[3.2] New CPU lightmapper
2021-01-15 13:25:46 +01:00
Rémi Verschelde
066716a46d
Merge pull request #42715 from madmiraal/fix-42614-3.2
...
[3.2] Update area-body_shape_entered-exited signal documentation.
2021-01-15 13:00:52 +01:00
Rémi Verschelde
258f41c024
Merge pull request #45150 from pycbouh/ge-disconnect-crash-3.2
...
[3.2] Prevent signal disconnection attempts on invalid references
2021-01-15 12:49:17 +01:00
JFonS
b1ca82c43a
CPU lightmapper fixes.
...
- Fix Embree runtime when using MinGW (patch by @RandomShaper).
- Fix baking of lightmaps on GridMaps.
- Fix some GLSL errors.
- Fix overflow in the number of shader variants (GLES2).
2021-01-15 12:32:54 +01:00
Marcel Admiraal
253b1c22da
Rename the final parameter of area_shape_entered-exited local_shape.
2021-01-15 09:46:19 +00:00
PouleyKetchoupp
37ef04c986
Improve Raycast render debug
...
Fix Raycast node render debug not showing in editor camera preview.
Use dynamic mesh update to change the ray on-the-fly without too much
extra cost when collision debug is enabled.
Fixes #43571
2021-01-14 15:51:22 -07:00
JFonS
7d7d7ef16d
CPU lightmapper formatting and minor fixes.
2021-01-14 18:08:33 +01:00
JFonS
089da5a71b
Gracefully handle atlassed lightmaps in GLES2.
2021-01-14 18:06:16 +01:00
JFonS
112b416056
Implement new CPU lightmapper
...
Completely re-write the lightmap generation code:
- Follow the general lightmapper code structure from 4.0.
- Use proper path tracing to compute the global illumination.
- Use atlassing to merge all lightmaps into a single texture (done by @RandomShaper)
- Use OpenImageDenoiser to improve the generated lightmaps.
- Take into account alpha transparency in material textures.
- Allow baking environment lighting.
- Add bicubic lightmap filtering.
There is some minor compatibility breakage in some properties and methods
in BakedLightmap, but lightmaps generated in previous engine versions
should work fine out of the box.
The scene importer has been changed to generate `.unwrap_cache` files
next to the imported scene files. These files *SHOULD* be added to any
version control system as they guarantee there won't be differences when
re-importing the scene from other OSes or engine versions.
This work started as a Google Summer of Code project; Was later funded by IMVU for a good amount of progress;
Was then finished and polished by me on my free time.
Co-authored-by: Pedro J. Estébanez <pedrojrulez@gmail.com>
2021-01-14 18:05:56 +01:00
Yuri Sizov
6b13c8482a
Prevent signal disconnection attempts on invalid references
2021-01-14 15:21:12 +03:00
Filip
f1d00522f5
Fixed completion and hint panel positioning in TextExit [3.2]
2021-01-13 21:44:05 +01:00
Marcel Admiraal
b651db999c
Fix not clearing a Joint3D with only a B node when removing the B node
2021-01-13 18:29:44 +00:00
Rémi Verschelde
f93c2ddc92
Merge pull request #45163 from akien-mga/3.2-cherrypicks
...
Cherry-picks for the 3.2 branch (future 3.2.4) - 16th batch
2021-01-13 17:38:05 +01:00
Rémi Verschelde
652105dcdd
Merge pull request #44704 from madmiraal/fix-44510-3.2
...
[3.2] Add signal to inform joint that body has exited tree
2021-01-13 17:16:19 +01:00
Rémi Verschelde
b9c5e2f9eb
doc: Sync classref with current source
...
And fix copyright headers in new code.
2021-01-13 16:55:27 +01:00
PouleyKetchoupp
a994bb4ad3
Fix collision shape update when changing shape properties
...
This change does two things:
1. Properly update the internal shape data using _update_in_shape_owner
when updating a shape (in 2D it was resetting one way collision)
2. Avoid unnecessary updates when calling set_shape with the same shape,
which happens each time a shape property is modified
(e.g shape.extents.x = ...)
Fixes #45090
(cherry picked from commit 4b43cd17c5
)
2021-01-13 16:54:22 +01:00
Rafał Mikrut
8f19d50e27
Fix errors when removing non Control node from TabContainer
...
(cherry picked from commit 56734f44e5
)
2021-01-13 16:17:10 +01:00
Rémi Verschelde
49646383f1
Update copyright statements to 2021
...
Happy new year to the wonderful Godot community!
2020 has been a tough year for most of us personally, but a good year for
Godot development nonetheless with a huge amount of work done towards Godot
4.0 and great improvements backported to the long-lived 3.2 branch.
We've had close to 400 contributors to engine code this year, authoring near
7,000 commit! (And that's only for the `master` branch and for the engine code,
there's a lot more when counting docs, demos and other first-party repos.)
Here's to a great year 2021 for all Godot users 🎆
(cherry picked from commit b5334d14f7
)
2021-01-13 16:17:06 +01:00
Rémi Verschelde
188609e5ab
CI: Update to clang-format 11 and apply ternary operator changes
...
(cherry picked from commit af878716f2
)
2021-01-13 16:14:35 +01:00
lawnjelly
b5edbe0301
Fix BVH physics project setting
...
Move the GLOBAL_DEF for the `godot_physics/use_bvh` to occur before GLOBAL_GET.
This prevents a warning occurring and the selection not being used.
2021-01-13 09:22:17 +00:00
Andrii Doroshenko (Xrayez)
acd9abe507
Add `AspectRatioContainer` class
...
Backported from ba68383706
.
Co-authored-by: Ugis Brekis <ugis.brekis@productmadness.com>
2021-01-12 16:25:26 +02:00
lawnjelly
690e07b509
Dynamic BVH for rendering and godot physics
...
Complete rewrite of spatial partitioning using a bounding volume hierarchy rather than octree.
Switchable in project settings between using octree or BVH for rendering and physics.
2021-01-12 12:12:10 +00:00
Rémi Verschelde
08ecc9e5c4
Tooltips: Fix unassigned strip_edges() call on text
...
Fixes #43940 , was a regression from #43280 .
(cherry picked from commit a4af94068a
)
2021-01-05 21:33:33 +01:00
Rémi Verschelde
5c80c94449
Revert "solved ctrl + alt + special character Issue #6851"
...
(cherry picked from commit 8b7f582f22
)
2021-01-05 21:33:33 +01:00
Rafał Mikrut
927010e90f
Do not iterate over map when removing its values
...
(cherry picked from commit 29b2882381
)
2021-01-05 20:49:00 +01:00
Eoin O'Neill
650f7c6f35
StateMachinePlayback: Added missing bindings to `get_current_play_pos` and `get_current_length`.
...
This allows the user to query the AnimationNodeStateMachinePlayback's current
play position and total length of current animation state. These methods are currently
used in the editor plugin, but can also be useful for querying general playback state
information.
Added documentation for AnimationNodeStateMachinePlayback's `get_current_play_position`
(cherry picked from commit 674fb52f52
)
2021-01-05 20:48:57 +01:00
Rémi Verschelde
3032b38b52
Merge pull request #44690 from lawnjelly/transform_snap2
...
[3.2] Improve 2d snapping
2021-01-05 17:19:44 +01:00
Rémi Verschelde
6a708d6847
Merge pull request #43893 from Chaosus/vs_warnings_3.2
...
[3.2] Added extra warning to texture nodes in visual shader
2021-01-05 12:38:50 +01:00
Marcel Admiraal
6b3bab6e54
Add signal to inform joint that body has exited tree
2020-12-31 14:51:07 +00:00
Yuri Roubinsky
adfc646f8c
Added optional id parameter to `PopupMenu::add_separator`
...
(cherry picked from commit ca8c794d04
)
2020-12-30 09:57:01 +01:00
kobewi
a227eefd2d
Rename offset to point in remove_point()
...
(cherry picked from commit 4f72a07eaa
)
2020-12-29 16:02:03 +01:00
PouleyKetchoupp
1fccf78dd2
Update body transforms on joint2D setup
...
Body transforms from physics are used to setup the joint and they are
only updated before the physics step by default.
Without forcing the transform update, joints could use a previous
position if the body's position was set after it was added to the scene.
3D physics is not affected by this issue.
(cherry picked from commit 11bee25de4
)
2020-12-29 16:02:02 +01:00
Rémi Verschelde
1a64f5d2ec
ProximityGroup: Fix access modifiers, rename private methods for clarity
...
See #36285 which mistakenly added documentation for the whole C++ API, while
some of it is meant to be and stay private as it's not exposed to scripts.
The access modifiers and method prefix were not used properly.
Cleanup code, and rename wrong `group_name` parameters to `method`, as it's a
method name which is being broadcast.
This is a very old class from pre-open source days, chances are that it was
just forgotten and not meant to be kept as is and undocumented.
(cherry picked from commit 79ba70f7ee
)
2020-12-29 16:01:58 +01:00
Tomasz Chabora
107bd09636
Fix PathFollow3D updating on unit_offset 0
...
(cherry picked from commit cd42e938fc
)
2020-12-29 15:12:10 +01:00
Dominik 'dreamsComeTrue' Jasiński
e0bdb19a62
Fix camera2d zoom when set to zero (causing ERROR: affine_invert: Condition ' det == 0 ' is true.)
...
Fixes : #41873
(cherry picked from commit aba477361d
)
2020-12-29 13:50:49 +01:00
lawnjelly
a237c671bb
Improve 2d snapping
...
Partially revert change allowing sprite get_rect snapping to be controlled by `pixel_snap` again rather than `transform_snap` (to prevent breaking compatibility). Adds a final `use_camera_snap` project setting to allow snapping viewports as in reduz original PR.
2020-12-25 18:53:00 +00:00
bruvzg
7ed2cf79ae
[3.2] Use base character advances for outline drawing.
2020-12-25 13:27:36 +02:00
Haoyu Qiu
e3b7b861b0
Fixes display of programmatically created value in remote inspector
2020-12-24 22:39:38 +08:00
Yuri Sizov
816fef21f9
Add a minimap to the GraphEdit
2020-12-18 01:31:17 +03:00
Sergey Minakov
f1fd0440f3
GUI: use cursor in TextEdit for non selected text.
2020-12-16 05:33:10 +03:00
Sergey Minakov
4c3b84b3d7
GUI: send cursor data from TextEdit
2020-12-16 05:05:38 +03:00
Marcel Admiraal
825ad65fc4
Remove Generic6DOFJoint precision property
2020-12-15 10:15:42 +00:00
Michael Alexsander
4fe554933c
Allow to circle back in 'PopupMenu' even if the first/last item is non-selectable
...
(cherry picked from commit bb39088201
)
2020-12-10 14:02:06 +01:00
volzhs
c904cf612a
Add option to draw all tabs in front
...
(cherry picked from commit 814f9015f8
)
2020-12-10 13:07:49 +01:00
Michael Alexsander
32da9dc1e9
Add "font_color_separator" theme property to 'PopupMenu'
...
(cherry picked from commit 383e8919e0
)
2020-12-10 13:06:15 +01:00
volzhs
1663a9e87c
Update page value properly of ScrollContainer
...
(cherry picked from commit d89677442b
)
2020-12-09 11:22:04 +01:00
Rémi Verschelde
84b62c0ba8
Merge pull request #44212 from bruvzg/color_font_fix_32
...
[3.2] Fix fallback emoji font color.
2020-12-09 11:20:39 +01:00
bruvzg
1b4fab3318
[3.2] Fix fallback emoji font color.
2020-12-09 11:20:55 +02:00
Rémi Verschelde
e30d4fc6ed
Merge pull request #44167 from madmiraal/remove-chain-tip-copy-constructor-3.2
...
[3.2] Remove ChainTip copy constructor
2020-12-08 09:40:20 +01:00
Marcel Admiraal
79952c5435
Remove ChainTip copy constructor
2020-12-07 12:32:49 +00:00
bruvzg
4d58321850
[3.2] Load dynamic fonts to memory on all platforms, to avoid locked files.
2020-12-07 10:24:30 +02:00
Rémi Verschelde
759e53f9c0
Merge pull request #44130 from Calinou/tweak-material-height-hints-3.2
...
Tweak SpatialMaterial height property hints (3.2)
2020-12-06 09:35:32 +01:00
Hugo Locurcio
9f6628f5ab
Tweak SpatialMaterial height property hints
...
- Allow finer adjustments of the heightmap scale.
- Allow increasing the heightmap level detail (at the cost of performance).
2020-12-05 21:44:39 +01:00
rileylyman
3c5fb3bbc7
skip extra newline in .tscn when renaming dependency
...
(cherry picked from commit 40ce9bfc2d
)
2020-12-01 09:00:53 +01:00
Rémi Verschelde
f7061fd559
Buttons: Don't use deprecated set_enabled_focus_mode
...
It's better to use the equivalent, non-deprecated API.
Follow-up to #43974 .
2020-11-30 11:16:15 +01:00
Rémi Verschelde
4f30cdfc33
Merge pull request #43972 from volzhs/fix-tab-container-3
...
Fix TabContainer crashes
2020-11-30 09:41:39 +01:00
FIF15
f07fb4e595
fix #43695 by revert part of #41577
...
Restore the default focus mode for MenuButton and LinkButton,
since it is different from the default of BaseButton.
2020-11-30 10:47:26 +08:00
volzhs
efade4034b
Fix no padding between icon and text in TabContainer
2020-11-30 11:36:57 +09:00
volzhs
8e10e33762
Fix TabContainer crashes
2020-11-30 11:02:18 +09:00
Yuri Roubinsky
3223747d0d
[3.2] Added extra warning to texture nodes in visual shader
2020-11-26 19:14:33 +03:00
Rémi Verschelde
b9b773c3f0
Merge pull request #43881 from akien-mga/3.2-cherrypicks
...
Cherry-picks for the 3.2 branch (future 3.2.4) - 10th batch
2020-11-26 10:39:20 +01:00
Rémi Verschelde
5b504eaa69
Merge pull request #43866 from madmiraal/fix-43852-3.2
...
[3.2] Check joint nodes and generate configuration warning messages.
2020-11-26 10:21:54 +01:00
Tomasz Chabora
0c50509326
Update clear button when clicked
...
(cherry picked from commit 836b78f329
)
2020-11-26 09:38:47 +01:00
volzhs
8aeeec034d
Fix to update scroll bar has correct max value in ScrollContainer
...
(cherry picked from commit 67c2f2445f
)
2020-11-26 09:38:47 +01:00
greenfox
b7a712d9f3
fixed Camera2D rotation with non-square zoom
...
(cherry picked from commit b9c0897713
)
2020-11-26 09:38:46 +01:00
Rémi Verschelde
ac8dedd532
doc: Warn about using Node internal processing
...
See #43689 .
Also 'fixed' some spelling for behavior in publicly visible strings.
(Sorry en_GB, en_CA, en_AU, and more... Silicon Valley won the tech spelling
war.)
(cherry picked from commit a655de89e3
)
2020-11-26 09:38:45 +01:00
Andrii Doroshenko (Xrayez)
e95e934d88
Do not start `Timer` upon manual switching of internal process
...
Prevents `Timer` to prematurely start and timeout immediately if internal
processing is enabled manually with `Timer.set_process_internal(true)` or
`Timer.set_physics_process_internal(true)`.
Even if the internal processing is enabled manually, the user still has to
actually start the timer with `start()` method explicitly.
(cherry picked from commit afcb6f38db
)
2020-11-26 09:38:45 +01:00
Rémi Verschelde
94c31175de
Merge pull request #43152 from Chaosus/color_autocompletion_3.2
...
[3.2] Shows ColorRect in Color constants autocompletion
2020-11-26 09:32:32 +01:00
Marcel Admiraal
e0e7332135
Check joint nodes and generate configuration warning messages.
2020-11-25 20:53:48 +00:00
Andrii Doroshenko (Xrayez)
2edd489f83
Describe `ImageTexture`, `Image` creation and usage
...
Ported from commit 0ee88d6705
.
2020-11-17 18:06:52 +02:00
Hugo Locurcio
3a46e01af3
Remove property groups for Pause Mode and Script
...
Each of those only grouped 1 property, making them useless.
This closes https://github.com/godotengine/godot-proposals/issues/1840 .
(cherry picked from commit 5770e08c2a
)
2020-11-17 12:07:02 +01:00
Michael Alexsander
fc1f5e149f
Fix WAV resources ignoring the AudioServer's 'global_rate_scale' value
...
(cherry picked from commit 04ebe4e7a4
)
2020-11-17 12:07:01 +01:00
lawnjelly
a79293e0fc
Add 2d snap transforms option
...
This is a cut back backport of reduz snapping PR #43194 .
It just offers a global project setting for transform snapping.
2020-11-15 09:40:07 +00:00
PouleyKetchoupp
9b64646bc3
Expose LineEdit scroll offset to scripts
...
(cherry picked from commit 4775db1600
)
2020-11-11 15:44:18 +01:00
Rémi Verschelde
05143ca39a
Tooltips: Improve code clarity and docs
...
The return type for `_make_custom_tooltip` is clarified as Control, and users
should make sure to return a visible node for proper size calculations.
Moreover in the current master branch, a PopupPanel will be added as parent
to the provided tooltip to make it a sub-window.
Clarifies documentation for `Control._make_custom_tooltip`, and shows how to
use the (until now undocumented) "TooltipPanel" and "TooltipLabel" theme types
to style tooltips.
Fixes #39677 .
(cherry picked from commit c5d8dafec4
)
2020-11-11 15:30:56 +01:00
volzhs
f4d181179c
Put unselected tabs back in TabContainer control
...
(cherry picked from commits 9eaa5ffab5
and 8a588343db
)
2020-11-11 15:30:54 +01:00
Pedro J. Estébanez
a45bf288e8
Fix premature end of animation playing backwards
...
(cherry picked from commit 826af5b28a
)
2020-11-11 15:12:01 +01:00
Meriipu
969e60f6b2
Make the currently hovered control get updated on mouse-release
...
Previously, when the mouse was released after dragging a scrollbar,
its highlight was not dropped (if the mouse cursor was still inside
the viewport). This seems to be because the currently hovered control
only gets updated when the mouse is moved.
This commit fixes the dropping of the cosmetic highlight by running
the check for whether the currently hovered control has changed on
mouse-clicks, in addition to to the existing mouse-movements.
(cherry picked from commit e8804b9978
)
2020-11-11 15:12:01 +01:00
lawnjelly
fed764b342
Fix editor constant redraw from fxaa and debanding.
...
Every NOTIFICATION_PROCESS the spatial_editor_plugin.cpp is calling set_use_fxaa which is causing a redraw_request(). Same with debanding.
These can be fixed be checking for noop state changes.
2020-11-02 10:13:18 +00:00
Rémi Verschelde
c43b2ab603
Merge pull request #42942 from Calinou/add-viewport-debanding-3.2
...
Add a debanding property to Viewport for GLES3
2020-10-30 11:47:57 +01:00
Hugo Locurcio
575dbd4bb2
Fix artifacts in DynamicFont when scaling with filtering enabled
2020-10-29 00:33:11 +01:00
Eric Tuvesson
9320266fe8
fix(sprite2d): Rect is not handling pixel snap
...
related https://github.com/godotengine/godot/issues/42985
(cherry picked from commit e892a92ad6
)
2020-10-28 15:09:16 +01:00
Gilles Roudière
638e24684f
Fixes setting top_level not updating the global position
...
(cherry picked from commit 131a7b58c8
)
2020-10-28 14:05:42 +01:00
Andrii Doroshenko (Xrayez)
921046c822
Add `border_width` to `ReferenceRect`
...
Exposes a hidden parameter behind `CanvasItem.draw_rect()`.
(cherry picked from commit aef00021a9
)
2020-10-28 14:05:40 +01:00
Gabriel Van Eyck
7735cdaf8f
Fix emit_signal timing for GraphEdit's begin/end node move
...
(cherry picked from commit fbc095dc78
)
2020-10-28 14:05:40 +01:00
Dominik 'dreamsComeTrue' Jasiński
ba00ced445
TextEdit - fix valid bounds in 'set_line'. Fixes #41967
...
(cherry picked from commit 99c8a07919
)
2020-10-28 14:05:39 +01:00
Yuri Roubinsky
374253242d
[3.2] Shows ColorRect in Color constants autocompletion
2020-10-28 12:39:41 +03:00
Hugo Locurcio
3499799cb3
Improve the font oversampling warning messages to be more descriptive
2020-10-27 12:27:41 +01:00
hilfazer
6dbc08668b
Move Editable Children information from scene's root to instanced nodes
2020-10-26 11:55:47 +01:00
Hugo Locurcio
2dbc329704
Add a debanding property to Viewport for GLES3
...
It can be enabled in the Project Settings
(`rendering/quality/filters/use_debanding`). It's disabled
by default as it has a small performance impact and can make
PNG screenshots much larger (due to how dithering works).
As a result, it should be enabled only when banding is noticeable enough.
Since debanding requires a HDR viewport to work, it's only supported
in the GLES3 backend.
2020-10-20 19:07:15 +02:00
Rémi Verschelde
150f9ce807
Merge pull request #42009 from Calinou/theme-node-type-3.2
...
Rename the `type` parameter to `node_type` in Theme and Control (3.2)
2020-10-20 15:58:41 +02:00
Hugo Locurcio
af45c97652
Add fast approximate antialiasing (FXAA) to Viewport
...
This backports FXAA from the `master` branch.
Co-authored-by: Clay John <claynjohn@gmail.com>
2020-10-20 14:54:52 +02:00
Rémi Verschelde
a239894827
Merge pull request #42902 from akien-mga/3.2-cherrypicks
...
Cherry-picks for the 3.2 branch (future 3.2.4) - 5th batch
2020-10-19 22:14:05 +02:00
Juan Linietsky
388ebfb498
Merge pull request #41629 from JFonS/disable_baked_lights
...
Disable lights for objects with baked lighting
2020-10-19 14:12:50 -03:00
Rémi Verschelde
4028414e0e
Revert "Made toplevel a property for Node3D and CanvasItem"
...
This reverts commit a726d011d5
.
2020-10-19 16:58:56 +02:00
volzhs
78143ee93e
Respect Tree.set_icon_max_width size for drawing selection box
...
(cherry picked from commit cac4fedb2a
)
2020-10-19 16:10:00 +02:00
Duroxxigar
11a07d071a
Added a more helpful error message when there is no current animation for the animation player
...
(cherry picked from commit 8bfeb9d6ae
)
2020-10-19 16:09:58 +02:00
Dashcell
c43e8d8fbd
Dropping file on parrent dirrectory fixed
...
(cherry picked from commit 1ac936f035
)
2020-10-19 15:14:13 +02:00
Hugo Locurcio
34ac0387d6
Deprecate the GIProbe Compress property due to known bugs
...
This property introduced green artifacts in GI and didn't improve
performance.
The new GIProbe in `master` no longer has a Compress property.
2020-10-19 14:51:23 +02:00
Rémi Verschelde
3495cb91d8
Merge pull request #41577 from FIF15/deprecate-redundant-property-enabled-focus-mode
...
Deprecate Redundant property enabled_focus_mode
2020-10-19 14:15:43 +02:00
PouleyKetchoupp
5c831bc8d6
Fix mesh instance materials not initialized correctly
...
This fixes a regression from PR #40313 (support for software skinning in MeshInstance).
Before, the base mesh was always updated on load even if not skinning
was used, which caused mesh instance materials to be reset on the
rendering side.
Now the base mesh is set only when it has been modified, or when
switching software skinning on or off. In this case the mesh instance
materials are always updated properly afterwards.
2020-10-16 09:33:24 +02:00
FIF15
8311a37ed9
Deprecate Redundant property enabled_focus_mode
...
of BaseButton
see #41529 for details
this closes #41529
2020-10-16 14:14:04 +08:00
lawnjelly
0abae185c8
Change per frame software skinning check to is_visible
...
My mistake I missed this before the PR got merged:
is_visible_in_tree() should be avoided being called per frame unless absolutely necessary, because it is a recursive function that traverses the scene tree. It should be used when deciding on rare occasions whether to switch on or off skeleton processing, but it is better to use the cheaper is_visible() check on the per frame update.
2020-10-12 19:03:43 +01:00
JFonS
fcb00ca048
Disable lights for objects with baked lighting
...
Don't apply lighting to objects when they have a lightmap texture and
the light is set to BAKE_ALL. This prevents applying the same direct
light twice on the same object and makes setting up scenes with mixed
lighting much easier.
2020-10-11 20:41:40 +02:00
Hugo Locurcio
ad4e80f2fa
Recommend restarting after changing the reflection atlas size or HDR
...
This closes #42687 .
2020-10-10 17:04:00 +02:00
PouleyKetchoupp
f9544716f4
Option for software skinning in MeshInstance
...
Option in MeshInstance to enable software skinning, in order to test
against the current USE_SKELETON_SOFTWARE path which causes problems
with bad performance.
Co-authored-by: lawnjelly <lawnjelly@gmail.com>
2020-10-08 16:14:55 +02:00
lolligerjoj
0586c856f6
Expose Animation::value_track_interpolate to GDscript
...
(cherry picked from commit ff4af94414
)
2020-10-04 20:50:34 +02:00
clayjohn
89677b5b7f
Use full float UVs in Sprite3D
2020-10-03 10:54:14 -07:00
Marcel Admiraal
be41b818c4
Remove area or body from map before emitting signals.
2020-10-02 17:01:47 +01:00
Rémi Verschelde
10fa15a047
Better validate CollisionShape config. warning after #37226
...
It could cause a crash when running the test for PlaneShape.
Fixes #42479 .
2020-10-02 09:51:45 +02:00
Yuri Roubinsky
ec7228a675
[3.2] Optimizations for Fresnel and Texture nodes in visual shaders
2020-10-02 08:42:06 +03:00
Duroxxigar
a726d011d5
Made toplevel a property for Node3D and CanvasItem
...
(cherry picked from commit 85a8dbb7b6
)
2020-10-01 16:00:47 +02:00
Rémi Verschelde
e40b4eeeea
Merge pull request #37226 from arrowinaknee/fix-node-config-warnings
...
[3.2] Update get_configuration_warning() overrides to retrieve warnings from parent class
2020-10-01 14:04:26 +02:00
Rémi Verschelde
9da889ff29
Merge pull request #40555 from RandomShaper/fix_debugger_autofocus_3.2
...
Fix debugger not getting focused on break on Windows (3.2)
2020-10-01 13:54:38 +02:00
Rémi Verschelde
ef223f3aa7
Merge pull request #41185 from Chaosus/vs_uniform_ref_3.2
...
[3.2] Added UniformRef visual shader node
2020-10-01 13:50:08 +02:00
Danil Alexeev
ebb5821bce
Improve appearance of [connection] and [editable] sections in .tscn files
...
(cherry picked from commit 02c0edac60
)
2020-09-29 13:57:58 +02:00
Haoyu Qiu
fa81e3621f
Fixes ParallaxLayer offset when ignore camera zoom
...
(cherry picked from commit 5e2167631b
)
2020-09-29 13:57:56 +02:00
D00T24
766b637ed0
changed max point limit to 1 instead of 2
...
(cherry picked from commit bcc0493a4a
)
2020-09-29 13:57:56 +02:00
Hugo Locurcio
a4651b59fb
Add a property hint to StyleBoxFlat `shadow_size` for editor usability
...
This adds a visible range to the slider so it can be dragged more easily.
This closes #42309 .
(cherry picked from commit feb4002017
)
2020-09-29 08:54:45 +02:00
Danil Alexeev
44bdd8f16c
Improvement for the Copy button in the Output Log
...
Now if no text is selected, pressing the Copy button copies the entire text.
(cherry picked from commit fb6eb21afc
)
2020-09-29 08:54:45 +02:00
clayjohn
b730c5596c
Restore default alpha_scissor_threshold to Sprite3D
2020-09-27 22:54:50 -07:00
Michael Alexsander
2d848227cf
Add 'get_previous_tab()' to 'Tabs'
...
(cherry picked from commit 2b319889cb
)
2020-09-24 14:43:10 +02:00
Jonathan Vice
96ca267209
Reorder sprite h_frames & v_frames
...
(cherry picked from commit 28326aec60
)
2020-09-24 14:43:10 +02:00
HellonLegs
9340385731
LineEdit/TextEdit: solved control + alt issue
...
(cherry picked from commit f412237f38
)
2020-09-24 14:43:08 +02:00
booer
bf9090c23f
Fixes updating CPUParticles emmision shape values
...
(cherry picked from commit 113921b56c
)
2020-09-24 14:43:08 +02:00
Ryan Roden-Corrent
c11edbdcb3
Fix hints on PhysicsMaterial bounce/friction.
...
These values are only meaningful in the range 0 to 1.
Make sure the editor enforces reasonable values.
Fixes #42202 .
(cherry picked from commit 6c18baee9c
)
2020-09-24 14:43:07 +02:00
Somnath Sarkar
1f7a3e0f8d
Sort points in a Gradient for color and offset updates.
...
(cherry picked from commit d5d832417e
)
2020-09-24 14:43:06 +02:00
mvl
be13df0a08
Fix bug where leading and trailing spaces werent taken into account with center and right allignment.
...
(cherry picked from commit 4318ad94ac
)
2020-09-24 14:43:05 +02:00
Eric M
e24b9f0520
Fixed bug where spinbox would not update to it's actual value after non-numeric input
...
(cherry picked from commit e76e39d5f5
)
2020-09-24 12:08:10 +02:00
Zak
d94323e37b
Adds automatic update for region_rect
...
When changing the texture region for a StyleBox, the regions was not updating automatically in the Texture editor.
(cherry picked from commit 7d7727bade
)
2020-09-24 12:05:34 +02:00
Rémi Verschelde
c8859f0463
Fix typos with codespell
...
Using codespell 1.17.1.
Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
fave
findn
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF
$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2020-09-18 14:09:51 +02:00
Hugo Locurcio
369e5a7f35
Mark InterpolatedCamera as deprecated
...
InterpolatedCamera has already been removed from the `master` branch.
This adds a deprecation notice to inform people about the upcoming removal
in Godot 4.0.
Its functionality could be replicated in a GDScript add-on with relative
ease.
2020-09-16 15:36:40 +02:00
clayjohn
a4f2fea2ae
Fix axis bug regression in Sprite3D
2020-09-15 08:02:19 -07:00
Hugo Locurcio
e36587751f
Rename the `type` parameter to `node_type` in Theme and Control
...
This makes it clearer that it expects a node type as a string (such as "Label")
instead of a type like "TYPE_ARRAY". This is backwards-compatible since only
the name of the parameter is changed, not its order.
See https://github.com/godotengine/godot-proposals/issues/1495#issuecomment-691507839
2020-09-12 18:42:45 +02:00
Wilson E. Alvarez
2b7c9d9070
Disconnect item_rect_changed when removing a child of GraphEdit
2020-09-11 17:36:55 -04:00
PouleyKetchoupp
819765130d
Fix RichTextLabel alignment for clickable regions
...
Fixes #41006 (regression from #39164 ).
The original alignment fix was limited to PROCESS_DRAW mode, which
caused some discrepancies with PROCESS_POINTER mode.
Now only PROCESS_CACHE is excluded with a condition a few lines above.
(cherry picked from commit b783fa1416
)
2020-09-11 11:15:40 +02:00
Rémi Verschelde
4a9264271d
doc: Sync classref with current source
2020-09-08 14:20:53 +02:00
Marcel Admiraal
f26131fca5
Check if old mouse column is still available.
...
(cherry picked from commit 79802b31a9
)
2020-09-08 13:39:32 +02:00
PouleyKetchoupp
c21d14fe69
Fix LineEdit not consuming enter events
...
LineEdit should not return early when processing KEY_ENTER, so it can
consume the event properly.
Regression introduced by mistake while fixing enter events for Android
(PR #40487 - c0b394572f
)
(cherry picked from commit 5c63dec36e
)
2020-09-08 13:38:58 +02:00
Rémi Verschelde
3f276033c1
Merge pull request #41536 from Chaosus/vs_fix_specular_3.2
...
[3.2] Fix specular render_mode for visual shaders
2020-09-08 09:46:12 +02:00
Fredia Huya-Kouadio
0af5cded1e
Fix the update logic for user-added custom defines.
...
The previous logic was causing the (unintentional) removal of custom defines automatically added by the engine.
2020-09-06 21:31:09 -07:00
Rémi Verschelde
8a66ea7cb0
Revert "Updated LineEdit to address #41278"
...
This reverts commit 1b6d116dfb
.
2020-09-01 14:01:50 +02:00
Tony-Goat
1b6d116dfb
Updated LineEdit to address #41278
...
Updated set_max_length() function to actually pull a substring of the current text so it's not all thrown away when the new max length is shorter than the current length.
(cherry picked from commit 71febfd6e2
)
2020-08-31 15:53:56 +02:00
Andrii Doroshenko (Xrayez)
7493bc5530
Make `AnimatedTexture.MAX_FRAMES` public
...
The constant is already exposed in GDScript, but not in C++.
This information is useful for implementing animated texture
resource importers via modules.
(cherry picked from commit 528056a3c5
)
2020-08-31 15:29:43 +02:00
Yuri Roubinsky
7facd00ace
[3.2] Fix specular render_mode for visual shaders
2020-08-28 13:06:55 +03:00
Rémi Verschelde
2d42625184
Revert "bug with Tween.is_active, fixes #39760"
...
This reverts commit 8ef40b9306
.
2020-08-25 12:58:40 +02:00
PouleyKetchoupp
d82cc621e1
Fix 2D Particle velocity with directed emission mask
...
Changed CPU velocity calculation for EMISSION_SHAPE_DIRECTED_POINTS
to follow the same logic as in the GPU version:
mat2 rotm;
rotm[0] = texelFetch(emission_texture_normal, emission_tex_ofs, 0).xy;
rotm[1] = rotm[0].yx * vec2(1.0, -1.0);
VELOCITY.xy = rotm * VELOCITY.xy;
Now both CPUParticles2D & CPUParticles3D (z disabled) show the same results
as their GPU counterparts and take the initial velocity settings into account.
(cherry picked from commit 1c231cacb3
)
2020-08-21 02:28:19 +02:00
Rémi Verschelde
a6ef6b10b2
Revert "Fixes the get_visible_line_count() of rich text label"
...
This reverts commit dc7e9d46e6
.
2020-08-17 11:21:36 +02:00
Cheeseness
e70b165c61
Skip indentation of empty lines when indenting a selection.
...
(cherry picked from commit 1f159306ed
)
2020-08-17 11:04:36 +02:00
Rémi Verschelde
5acc78ac81
Merge pull request #41314 from clayjohn/Sprite3D-uvs
...
Check for uncompressed uvs in Sprite3D
2020-08-17 08:44:51 +02:00
clayjohn
d33a9aaacb
Check for uncompressed uvs in Sprite3D
2020-08-16 19:19:14 -07:00
Tomasz Chabora
7ce476c425
Expose NOTIFICATION_POST_ENTER_TREE
...
(cherry picked from commit 677796a2c3
)
2020-08-14 00:32:05 +02:00
Umang Kalra
330afdd6cb
Fix RichTextLabel center alignment bug
...
Fixes #40207 .
(cherry picked from commit cec21ab82c
)
2020-08-14 00:32:05 +02:00
Yuri Roubinsky
d0c705781c
[3.2] Added UniformRef visual shader node
2020-08-11 15:04:06 +03:00
Martin Capitanio
71bad8dba6
Add option to disable virtual keyboard for TextEdit
...
Adding support for disabling virtual keyboard on mobile platforms, in
order to make it consistent with LineEdit.
It allows implementing a custom virtual keyboard.
See: https://github.com/godotengine/godot/pull/41139
2020-08-09 18:22:11 +02:00
ConorLPBoyle
ba3f0fa971
Fixed reload_goal not being called when SkeletonIK3D::start is invoked with p_one_time = true
...
(cherry picked from commit fa4d9c9446
)
2020-07-28 11:28:34 +02:00
Tomasz Chabora
cd01cda143
Fix ultra long node names
...
(cherry picked from commit d3f2062d86
)
2020-07-28 00:43:37 +02:00
Daniel Ting
6f71bc2a06
Evenly distribute stretched Nodes in BoxContainer
...
Add any leftover fractional pixels to an error accumulator. When the
accumulator is greater or equal to one, add one pixel to the current
Node's size and subtract one from the accumulator.
Closes #36522
(cherry picked from commit 04ea6ec88d
)
2020-07-28 00:39:21 +02:00
Rémi Verschelde
a2edf04fd2
Merge pull request #40469 from nekomatata/virtual-keyboard-enter-fixes-3.2
...
[3.2] Fix Return key events in LineEdit & TextEdit on Android
2020-07-26 20:26:02 +02:00
Tomasz Chabora
307bac0757
Keep transition value when replacing key
...
(cherry picked from commit e1a1bb0a6e
)
2020-07-24 10:31:57 +02:00
PouleyKetchoupp
930c880fa6
Add option to disable virtual keyboard for LineEdit
...
Co-authored-by: Alexander Holland <alexander.holland@live.de>
(cherry picked from commit 0aa56e3ab8
)
2020-07-24 10:31:57 +02:00
Tomasz Chabora
e511e0f16a
Prevent infinite loop in Tree incremental search
...
(cherry picked from commit c0479496fa
)
2020-07-24 10:31:57 +02:00
Umang Kalra
dc7e9d46e6
Fixes the get_visible_line_count() of rich text label
...
(cherry picked from commit bd32c273ff
)
2020-07-24 10:31:56 +02:00
Chistpohe LY
8ef40b9306
bug with Tween.is_active, fixes #39760
...
(cherry picked from commit d60617de10
)
2020-07-24 10:31:56 +02:00
Rémi Verschelde
7b4b83e9dc
Merge pull request #39817 from yrk06/ExposeInertiaTensor
...
Added Rigid Body Method "get_inverse_inertia_tensor"
2020-07-21 16:50:56 +02:00
clayjohn
fb4e55bb7a
Pass Sprite3D AABBs to VisualServer
2020-07-20 20:22:12 -07:00
Pedro J. Estébanez
633b75c9e1
Fix debugger not getting focused on break on Windows
...
This is a revert of 9d78274e06
, which was an attempt to fix #21431 , but in the end it seems a different problem was the root of the issue.
Renewing focus steal allowance every time is needed on Windows.
2020-07-21 01:09:17 +02:00
Pedro J. Estébanez
06904ac215
Add DynamicFont::get_available_chars()
2020-07-20 17:45:04 +02:00
Yerik
d09b16512b
Added Method get_inverse_inertia_tensor
2020-07-19 13:51:32 -03:00
PouleyKetchoupp
c0b394572f
Fix Return key events in LineEdit & TextEdit on Android
...
Depending on the device implementation, editor actions could be
received with different action ids or not at all for multi-line.
Added a parameter to virtual keyboards to properly handle single-line
and multi-line cases in all situations.
Single-line:
Input type set to text without multiline to make sure actions are sent.
IME options are set to DONE action to force action id consistency.
Multi-line:
Input type set to text and multiline to make sure enter triggers new lines.
Actions are disabled by the multiline flag, so '\n' characters are
handled in text changed callbacks.
2020-07-17 18:25:40 +02:00
Juan Linietsky
ceeb690476
Properly pass safe margin on initialization.
...
Fixes jitter.
(cherry picked from commit 13e0385702
)
2020-07-15 12:48:18 +02:00
Patrick Dawson
8218170b3c
Avoid overflow when calculating visible_cells
...
(cherry picked from commit 9e28df22a0
)
2020-07-15 12:11:31 +02:00
Rémi Verschelde
37100384c3
Merge pull request #40300 from 0xafbf/fix-parent-check
...
Fix parent check for add_child_below_node
2020-07-14 09:14:28 +02:00
Maganty Rushyendra
e76a9a51df
Emit signals for GraphEdit multi-node selection and unselection
...
Emit `node_selected` and `node_deselected` signals where appropriate
when selecting or unselecting multiple GraphEdit nodes at once.
(cherry picked from commit c1d5c7727c
)
2020-07-13 15:12:50 +02:00
ArrowInAKnee
e48430b1d4
Make all get_configuration_warning() overrides retrieve warnings from parent
2020-07-13 01:50:02 +03:00
Andrés Botero
6b05f8f602
Fix parent check for add_child_below_node
2020-07-11 15:57:17 -05:00
Maganty Rushyendra
76a43c93cd
Fix repeated updates of PathFollow3D Transform
...
Add optional parameter to specify whether applying rotation to the
PathFollow3D's Transform is necessary, preventing erroneous updates.
(cherry picked from commit be3a1769fe
)
2020-07-10 10:59:24 +02:00
Rémi Verschelde
1f886d1f31
Merge pull request #39867 from clayjohn/Sprite3D-mesh
...
Use mesh instead of immediate for drawing Sprite3D
2020-07-06 16:36:27 +02:00
Rémi Verschelde
3a916152d8
Merge pull request #39803 from TwistedTwigleg/3.2.skeleton_ik_scale_fix
...
[3.2] Fixed SkeletonIK not working with scaled skeletons
2020-07-06 16:16:57 +02:00
Andrii Doroshenko (Xrayez)
41f99c8f53
Provide warning when using polygon shapes in `CollisionShape2D` node
...
`ConvexPolygonShape2D` and `ConcavePolygonShape2D` are only meant to be
used directly in code and not in the editor for physics-based use cases
specifically.
Developers are advised to use `CollisionPolygon2D` instead, which does
generate those shapes under the hood, handling polygon convexivity,
proper orientation etc.
(cherry picked from commit dc446203be
)
2020-07-06 14:16:28 +02:00
Rémi Verschelde
037571d08e
Merge pull request #40087 from akien-mga/3.2-cherrypicks
...
Cherry-picks for the 3.2 branch (future 3.2.3) - 1st batch
2020-07-04 01:37:52 +02:00
clayjohn
6c0ff26f35
Use mesh instead of immediate for drawing Sprite3D
2020-07-03 12:19:26 -06:00
lrgilbert
c0db0749f7
Fixed separation of ports on GraphNode
...
Fixes #32474 .
(cherry picked from commit 47c929c972
)
2020-07-03 15:34:30 +02:00
PouleyKetchoupp
d6b23306c8
Fix RichTextLabel fill alignment regression
...
Fixes #40068 (regression from #39164 ) by not applying the line offset
change in the case of fill alignment mode.
(cherry picked from commit 44f88999c7
)
2020-07-03 15:34:30 +02:00
Pedro J. Estébanez
a235bab96c
Ignore blend times for inexistent animations
...
(cherry picked from commit fdf1977e8f
)
2020-07-03 15:34:30 +02:00
Rémi Verschelde
d004188348
Environment: Fix glow hdr bleed scale being unused
...
The glow hdr bleed threshold was passed in its stead.
Fixed in master too with #40016 .
2020-07-03 14:27:42 +02:00
Michael Alexsander
32c154d297
Fix Tree's 'scroll_to_item()' not working correctly on some cases
...
(cherry picked from commit 144a4cc39f
)
2020-07-03 13:17:57 +02:00
Hugo Locurcio
89421c58cd
Write "Aces" tonemapping in uppercase as it's an acronym
...
(cherry picked from commit a31fc59ff3
)
2020-07-03 13:17:57 +02:00
lordkettune
c68ef4d754
Fix issues with custom tracks on reimport
...
(cherry picked from commit 4313a7bdc8
)
2020-07-03 13:17:57 +02:00
Mark Kuo
46590fa3b0
VideoPlayer: fix possible race condition
...
In set_stream() we write to 'playback' while accessing the same object
in _mix_audio() in audio thread. Protect the 'write' part in
set_stream() to avoid possible crash in _mix_audio() function.
(cherry picked from commit e435d57758
)
2020-07-03 13:17:57 +02:00
Thakee Nathees
3a08658881
animation autocomplete bug fixed
...
(cherry picked from commit b07e788ad9
)
2020-07-03 13:17:57 +02:00
Haoyu Qiu
38509f1a89
Prevent dragging from SceneTree buttons
...
(cherry picked from commit 45d0799b5b
)
2020-07-03 13:17:57 +02:00
PouleyKetchoupp
83e376e731
Format remote printerr properly in script debugger output
...
Fixes #33324
2020-07-02 17:43:37 +02:00
TwistedTwigleg
3dc466b244
Fixed issue where the SkeletonIK node would incorrectly scale bones in the IK chain
2020-07-01 11:16:25 -04:00
Adam Reichold
f06fc1fdf4
Call Spatial::get_global_transform and Vector3::dot only once within Camera::is_position_behind to avoid redundant work.
...
(cherry picked from commit b2a204799a
)
2020-06-29 10:48:45 +02:00
Stijn Hinlopen
65155c2855
No longer scroll vertically when scrollbars are unavailable
...
(cherry picked from commit 5f7499beac
)
2020-06-29 10:47:43 +02:00
Pedro J. Estébanez
0f0360702b
Handle gone TabContainer popup nicely
2020-06-24 19:31:26 +02:00
Rémi Verschelde
571a0c60c0
Revert "Implement Skew in Node2D"
...
This reverts commit 7f61710183
.
See #38868 , in its current implementation a small skew value might end up
serialized to scene files due to floating point precision errors, which is
detrimental to VCS.
This can be cherry-picked anew once a fix for #38868 has been found.
2020-06-22 10:26:06 +02:00
Marcel Admiraal
b006f5402d
Check for motion in cast_motion() before doing Bullet convexSweepTest().
...
Also ensure that default closest_safe and closest_unsafe values are
defined in cast_motion() and before cast_motion() is called.
2020-06-21 16:28:01 +01:00
PouleyKetchoupp
b3af0b2a39
Option in RichTextLabel for height to fit content
...
(cherry picked from commit ad8081216c
)
2020-06-19 16:17:27 +02:00
Andy Maloney
5bbb15418f
[3.2][macOS] Command-backspace in line edit
...
Make command-backspace in line edit work like other macOS applications.
If there is a selection, command-backspace deletes the selection.
If there isn't a selection, command-backspace deletes from the cursor to the beginning of the line edit.
This addresses part of godotengine/godot#23548
2020-06-18 17:42:51 -04:00
Andrii Doroshenko (Xrayez)
5084043373
Bind Shape2D draw method
...
(cherry picked from commit 430d1fd795
)
2020-06-18 10:51:44 +02:00
Marcel Admiraal
ea4ee986b5
Normalise p_up_direction vector in move_and_slide() and
...
move_and_slide_with_snap() and fix tolerance in
move_and_slide_with_snap() max floor angle.
2020-06-16 10:11:54 +01:00
Rémi Verschelde
2e8480d56a
Merge pull request #39571 from Chaosus/fix_vs
...
[3.2] Use path instead classname to prevent errors for exported visual shaders
2020-06-16 09:33:15 +02:00
Yuri Roubinsky
87ebc29d8e
Use path instead classname to prevent errors for exported visual shaders
2020-06-15 21:33:32 +03:00
Ranoller
616fb219db
(3.2) Fix bad position in Camera2D offset and camera rotation if smothing enabled
...
Fix https://github.com/godotengine/godot/issues/16323 in 3.2 branch. Apply same solution of https://github.com/godotengine/godot/issues/2074 in rotation and offset.
2020-06-15 16:34:03 +02:00
Umang Kalra
1d0c39e395
Fixes the stopping of animation effects in bbcode after appending
...
(cherry picked from commit 88b30a29bf
)
2020-06-15 14:34:35 +02:00
Lisandro Lorea
cb119e349a
Fix TabContainer emitting spurious tab_selected signals when a theme is changed
...
- The repaint code was moved outside of set_current_tab() and to a "_repaint()" private function
- _on_theme_changed() will now only call _repaint() and update()
This means _on_theme_changed() will do only what it needs (repainting the TabContainer to account for the new theme)
fixes #39498
(cherry picked from commit 5123006f06
)
2020-06-15 14:34:35 +02:00
Tomasz Chabora
2f04896b0e
Re-enable scroll follow on RichTextLabel clear
...
(cherry picked from commit 46fd51056a
)
2020-06-15 14:34:35 +02:00
Thibault Truffert
24b3bf0637
Make text deletion methods public for LineEdit
...
(cherry picked from commit 2bb44ea5bd
)
2020-06-11 09:42:23 +02:00
Maganty Rushyendra
0df5d74e6e
Fix signal duplication bug when duplicating node with instanced children
...
Change error checking in `duplicate_signals()` to check for path to
`p_original`, thus adhering to the method used in `duplicate`, instead
of checking for ownership.
2020-06-11 09:37:47 +08:00
Rémi Verschelde
7bf9787921
SCons: Format buildsystem files with psf/black
...
Configured for a max line length of 120 characters.
psf/black is very opinionated and purposely doesn't leave much room for
configuration. The output is mostly OK so that should be fine for us,
but some things worth noting:
- Manually wrapped strings will be reflowed, so by using a line length
of 120 for the sake of preserving readability for our long command
calls, it also means that some manually wrapped strings are back on
the same line and should be manually merged again.
- Code generators using string concatenation extensively look awful,
since black puts each operand on a single line. We need to refactor
these generators to use more pythonic string formatting, for which
many options are available (`%`, `format` or f-strings).
- CI checks and a pre-commit hook will be added to ensure that future
buildsystem changes are well-formatted.
(cherry picked from commit cd4e46ee65
)
2020-06-10 15:30:52 +02:00
Michael Alexsander
2652a2d184
Add generic file icon and its modulation to the 'FileDialog'
...
(cherry picked from commit 637927f803
)
2020-06-10 15:30:52 +02:00
Rémi Verschelde
f3fcdfbdd0
PackedScene: Prevent crash when root node has `parent` attribute
...
The crash happens further down when setting an invalid owner in
`Node::_set_owner_nocheck` but I couldn't figure out how to fix it.
But here the proper fix is to catch the invalid scene file early on
and fail loading it.
Part of #17372 .
(cherry picked from commit c080ec5da2
)
2020-06-10 15:30:52 +02:00
Giuliano Barberi
221051d523
Tree: Calling update in _gui_input less frequently
...
(cherry picked from commit d443a13244
)
2020-06-10 15:30:51 +02:00
Tomasz Chabora
e94aab7936
Restore capture caches when missing
...
(cherry picked from commit 642d91381a
)
2020-06-10 15:30:51 +02:00
Marcus Brummer
ae67ec3ece
Set "shader_param/" prefix in Shader::has_param()
...
(cherry picked from commit ffbb211bbe
)
2020-06-05 12:47:01 +02:00
Hugo Locurcio
61da4882aa
Add performance hints to the DirectionalLight shadow mode property hint
...
This also clarifies some parts in the DirectionalLight documentation.
(cherry picked from commit b46756c723
)
2020-06-04 12:16:39 +02:00
Umang Kalra
c1f6854ada
Fixes the right and center alignment bug of rich text label
...
(cherry picked from commit b2a32d007d
)
2020-06-04 12:09:40 +02:00
Hugo Locurcio
d56b9d5ebf
Disable antialiasing on the DynamicFont outline as well when requested
...
This partially addresses
https://github.com/godotengine/godot-proposals/issues/943 .
(cherry picked from commit 2919fc7317
)
2020-06-04 12:09:40 +02:00
Maganty Rushyendra
25af738762
Expose `get_char_size()` from Font instead of BitmapFont
...
`get_char_size()` is a public virtual function defined in the `Font`
class. Implementations exist for both `BitmapFont` and `Dynamic Font`.
However, it was only exposed to the GDScript API through the Bitmap
Font, and not for Dynamic Font.
This commit exposes the function through `Font` instead.
Fixes #23967
(cherry picked from commit a4413710f9
)
2020-06-04 12:09:39 +02:00
Dominik 'dreamsComeTrue' Jasiński
d15e9c2126
Allow scroll_to_line when scroll_active is 'false'
...
Fix #36134
(cherry picked from commit 8f11a91917
)
2020-06-04 12:09:39 +02:00
Thakee Nathees
25ed0d4366
colorpicker margin bug fixed
...
(cherry picked from commit 9d224ac429
)
2020-06-04 11:14:16 +02:00
PouleyKetchoupp
719369c71b
Fix resource preview in remote inspector
...
The specific case for object reference seems unnecessary, as `RES res = var`
already does the work. The case where REF is invalid is never hit in the case
of already freed objects.
The assignment `res = *r` was causing the resource to be always invalidated
on the 3.2 branch.
(cherry picked from commit 12685df423
)
2020-05-25 11:46:51 +02:00
Marcel Admiraal
dac3504cc3
Fix C4724: potential mod by 0 warnings.
2020-05-21 11:28:01 +01:00
SkyJJ
2197ef0566
Fix Android LineEdit editing bugs
...
(cherry picked from commit cc473b948f
)
2020-05-20 12:07:08 +02:00
Rémi Verschelde
f390749439
Fix Visual Studio C4724 warning (potential mod by 0)
2020-05-19 11:09:28 +02:00
Marcus Brummer
4779d289d5
Fixed text editor drawing if smooth scrolling is disabled.
...
Fixes #38778
(cherry picked from commit b048eb05ad
)
2020-05-18 16:40:33 +02:00
smartin015
8cab02ec06
Remove get_local_mouse_position() hack in GraphEdit
...
(cherry picked from commit 00457c68bc
)
2020-05-18 16:40:33 +02:00
Fredia Huya-Kouadio
4db8ade565
Remove the `custom_defines` section from the editor
2020-05-18 01:07:38 -07:00
etienne.frank
46327d48a2
Fix minimap selection offset
...
The minimap selection was shifted of 1 line too late.
(cherry picked from commit 72ab355945
)
2020-05-13 16:10:12 +02:00
Eduardo Nunes Pereira
55ab98233a
Using the common behaviour when use command+shift on text line for osx
...
* On press left+command+shift or right+command+shift it should behave like shift+home or shift+end and select the text
* Using home and end events as reference
(cherry picked from commit d8f8a3c606
)
2020-05-11 11:13:22 +02:00
Thakee Nathees
7bc293b081
Fix: printing empty string does nothing in editor output pannel
...
Fix : #38490
(cherry picked from commit 5640cad1e1
)
2020-05-11 11:02:53 +02:00
Marcel Admiraal
4c9ccffad2
Prevent CapsuleShape2D height from being less than zero.
...
(cherry picked from commit 68eaaa6d6b
)
2020-05-11 11:01:13 +02:00
Tomasz Chabora
0200db15cc
Fix VisibilityEnabler2D behavior on start
...
(cherry picked from commit d0c5d91032
)
2020-05-11 10:33:38 +02:00
janglee
d16abbdee4
Improved go-to definition (Ctrl + Click)
...
Co-Authored-By: Bojidar Marinov <bojidar.marinov.bg@gmail.com>
(cherry picked from commit be7a353c70
)
2020-05-11 09:33:21 +05:30
Mateo Kuruk Miccino
1cba7fb180
GUI: Touch screen button click area now is synced with its draw
2020-05-07 11:04:59 -03:00
Thakee Nathees
1a39b4ea22
method bind TextEdit::set_line() added
...
(cherry picked from commit b9acf1cedf
)
2020-05-07 13:43:43 +02:00
hoontee
159992f663
Fix bug with AudioStreamPlayer3D audio position
...
Applies 0c78a58b64
to `AudioStreamPlayer3D::play`.
(cherry picked from commit 330bd686ab
)
2020-05-07 13:37:06 +02:00
nobuyuki_nyuu
12386a2d80
PopupMenu.get_current_index() bound to ClassDB
...
(cherry picked from commit 35f30086de
)
2020-05-07 13:36:53 +02:00
Stanislav Labzyuk
e3712cf689
Bind set_suffix/get_suffix in Tree
...
(cherry picked from commit ac8814624d
)
2020-05-06 23:31:02 +02:00
Eric M
b7fbdf4bed
Updated editor spin slider to have better behaviour and adjusted control's size_flags_stretch_ratio value range
...
(cherry picked from commit 915ab50673
)
2020-05-06 23:30:28 +02:00
Thakee Nathees
a5a28239a6
Fix: Tween always return true for _get(), _set()
...
(cherry picked from commit 2811268231
)
2020-05-06 23:29:45 +02:00
Yuri Roubinsky
1f89c3bfeb
(3.2) Some fixes for canvas item visual shader inputs
2020-05-05 12:21:25 +03:00
Rémi Verschelde
f629df647d
Revert "Emit signal when animation ends by seek"
...
This reverts commit bf1cc116e1
.
This needs more discussion to avoid breaking some users' expectations.
See #38086 for arguments.
(cherry picked from commit 69f36cea8c
)
2020-05-04 16:10:32 +02:00
Juan Linietsky
7f61710183
Implement Skew in Node2D
...
Skew is x-axis only, because it must be bidirectionally convertible to a 2x3 matrix, but you can subtract it to the rotation to get the effect on y-axis
(cherry picked from commit efb1f7d76b
)
2020-05-04 16:10:22 +02:00
Thomas Riedmair
7e669123f9
Fix performance issue in update_bitmask_region fallback
...
(cherry picked from commit e0f084b924
)
2020-05-04 16:10:22 +02:00
Bastiaan Olij
02b1a5de47
Added missing spring enums for generic_6dof_joint
...
(cherry picked from commit 45d1f41837
)
2020-05-04 16:10:22 +02:00
jitspoe
e0be022b1e
Fix custom w component being uninitialized on CPU particles.
...
(cherry picked from commit 38085f2f6982c491935a434bb45e358dbebe1714)
(cherry picked from commit b9c280b73ff6a13ea490d2da0f2728bcef3038dc)
(cherry picked from commit 895ed2aed7
)
2020-05-04 16:10:22 +02:00
Pedro J. Estébanez
d8be5a9986
Add MODULATE builtin to canvas item shaders
2020-05-04 00:10:24 +02:00
Rémi Verschelde
8426ed2650
Merge pull request #38378 from lawnjelly/kessel_ios_particle
...
Fix uninitialized memory in CPUParticles2D
2020-05-01 15:17:06 +02:00
lawnjelly
9af4c09d1b
Fix uninitialized memory in CPUParticles2D
...
Calls to set_amount can increase the size of the particle array, but do not zero the memory, they only set the active flag to false. This uninitialized memory can be sent to the GPU, possibly as NaNs.
2020-05-01 13:49:53 +01:00
Revan Ji
6a7d50403a
Add set_frame, pause, and oneshot to AnimatedTexture
...
Add API documentation for said changes.
(cherry picked from commit f5029e18ca
)
2020-05-01 11:00:10 +02:00
Darenn
3c26de316e
Fixed bbcode parsing for built-in RichTextEffects in RichTextLabel
...
RichTextEffect can now have a bbcode string starting like one of the built-in.
It was impossible before as the built-in would take precedence over the custom effect that has the same bbcode start.
Example : [fade] would take precedence over [fade_in]
(cherry picked from commit b4e3042cba
)
2020-05-01 10:57:00 +02:00
Sam
68b968ff6c
Resets global pose of IK chain bones being solved, rather than the whole skeleton. Resolves #38026
...
(cherry picked from commit e321d38c0e
)
2020-05-01 10:56:58 +02:00
Bojidar Marinov
4b58d453d4
Expose the cell_size affecting VisibilityNotifier2D precision
...
Refs: #4803
(cherry picked from commit d49ff7aff7
)
2020-05-01 10:56:58 +02:00
John Wigg
ee8b3bef2d
Limit undo stack size
...
The stack size of the undo history of a TextEdit was not limited leading
to potential memory leaks when doing lots of operations on a TextEdit.
This commit adds the option gui/common/text_edit_undo_stack_max_size
to the project settings. The first element of the undo stack is popped
if the stack's size exceeds this value ensuring limited memory usage.
The default stack size setting is 1024.
Fixes #37838 .
(cherry picked from commit 4a82390aaf
)
2020-05-01 10:56:58 +02:00
Andrea Catania
b7dace75c7
Make softbody completelly stiff to attachment point
...
(cherry picked from commit ca7ee56759
)
2020-05-01 10:56:57 +02:00
Rémi Verschelde
a9def52225
Merge pull request #38156 from Calinou/tweak-ssao-property-hints-3.2
...
Tweak SSAO property hints to allow setting more precise values (3.2)
2020-04-25 12:55:33 +02:00
Hugo Locurcio
464fe67e96
Tweak SSAO property hints to allow setting more precise values
...
This was requested by an user on Twitter who was working on a game with a very small-scale world.
2020-04-23 21:59:53 +02:00
Pedro J. Estébanez
07c4dc1b30
Avoid invocation to Object's copy constructor
...
Needed for the next commit. That's the only place in all the Godot code base
where that's attempted and it's not needed because Objects are not meant to
be copied that way.
2020-04-23 12:44:47 +02:00
volzhs
f670f6e351
Emit signal when animation ends by seek
...
(cherry picked from commit bf1cc116e1
)
2020-04-23 11:11:13 +02:00
Andrea Catania
4a6f2b8af6
Activate Physics Process in SpringArm3D.
...
(cherry picked from commit 152303bf51
)
2020-04-20 11:51:30 +02:00
Rémi Verschelde
008e0748c1
Merge pull request #37349 from lawnjelly/kessel32_1
...
GLES2 2d Batch rendering (across items)
2020-04-17 12:55:33 +02:00
asheraryam
93f7e8d8fc
Add "node_unselected" signal for GraphEdit
2020-04-16 16:56:58 +03:00
Michael Alexsander
b4429c325a
Fix incorrect TabContainer documentation for 'get_tab_control()'
...
(cherry picked from commit 8f925b1970
)
2020-04-16 12:57:22 +02:00
Dominik 'dreamsComeTrue' Jasiński
5fdecebee1
Calculate strike-through position correctly
...
Fixes : #37637
(cherry picked from commit 06a79f260c
)
2020-04-16 12:57:22 +02:00
Marcel Admiraal
103278d84b
Run SpringArm3D's process within physics.
...
(cherry picked from commit 188bb6f867
)
2020-04-16 12:57:22 +02:00
lawnjelly
b6d652367b
Items and draw calls added to IDE Monitor in '2d' section
...
This adds 2 new values (items and draw calls) to the performance monitor in a '2d' section, rather than reusing the 3d values in the 'raster' section.
This makes it far easier to optimize games to minimize drawcalls.
2020-04-16 11:52:22 +01:00
theludovyc
58fcbc2b06
Remove unused ofs variable
...
(cherry picked from commit 875c994109
)
2020-04-16 12:47:18 +02:00
Guilherme Felipe
ddde3819d6
Fix TextureRect::flip_* when used with atlas texture
...
Fix #37526
(cherry picked from commit fb2d2dd5d0
)
2020-04-16 12:47:18 +02:00
PouleyKetchoupp
18c5ef5473
Add style for highlighted Slider grab area
...
(cherry picked from commit 4c8173af0f
)
2020-04-16 12:47:17 +02:00
SkyJJ
92df8cc83a
Fix profiler frame number stops updating when window is minimized
...
(cherry picked from commit c1ee20a05d
)
2020-04-16 12:01:52 +02:00
Leleat
8da00fbfc7
fixed PopupMenus letterjumping on any InputEvent
...
(cherry picked from commit 8a5660f3d1
)
2020-04-16 11:58:14 +02:00
MickeMakaron
e3ca6d87ad
Handle huge offset values in Path2D and Path3D set_offset
...
(cherry picked from commit 2edb59ec88
)
2020-04-16 11:45:40 +02:00
Zak Grumbles
5d9108c9c6
Fix OptionButton docs godotengine#36803
...
* item_selected and item_focused docs incorrectly had 'id' as the parameter. Changed to
'index'.
* Fix parameter name in ADD_SIGNAL callin code.
(cherry picked from commit a8de034f78
)
2020-04-16 11:45:19 +02:00
Thakee Nathees
324213a6db
fix project manager don't consume Enter key #17620
...
(cherry picked from commit b98153886f
)
2020-04-16 11:44:44 +02:00
Waridley
219ce2f149
Fix volume interpolation in positional audio nodes
...
Fixes #22016
(cherry picked from commit ff1fbd2bc5
)
2020-04-16 11:43:58 +02:00
janglee
e1ca49b4b6
Corrected text selection in color picker
...
Fixes #35603
(cherry picked from commit 77b70aa79d
)
2020-04-16 11:43:35 +02:00
Andrea Catania
a51e78528f
Fixed IK rotation issue
...
(cherry picked from commit 277696d6c5
)
2020-04-16 11:42:07 +02:00
qarmin
57952d562c
Fixes leak with drives [3.2]
2020-04-12 14:05:47 +02:00
Eoin O'Neill
c18381119e
Correction to RichTextLabel Tabulation
...
Correct backtrack assignment to prevent excessive tabulation. Worth
noting that tabulation is treated differently in RichTextLabel because
of custom user-asignable tab variable which creates problems with
dynamic fonts specifically.
(cherry picked from commit 2000e110a9
)
2020-04-06 18:19:14 +02:00
Gil Arasa Verge
f144ec9e67
Clicking backgrd. dimming of editor popup stops input event propagation
...
A click on the dimmed background of a popup in the editor should stop the input event from propagating to the background.
This solution reuses the system introduced in commit efc3ffb8
, taking advantage of the hide() notifications from the modal where we will set the flag "pass_on_modal_close_click(false)" to stop event handling at the viewport input event handling.
The viewport first hides the modal and after marks the input as handled if the flag mentioned above is set.
Fixes #36341
(cherry picked from commit 35bc88ca34
)
2020-03-25 11:38:54 +01:00
Andrea Catania
e30a0a30b6
Added new method to replace an already added node to the animation state machine
...
(cherry picked from commit 422926cfc6
)
2020-03-25 11:38:54 +01:00
nathanwfranke
b95a2306db
Fix tab container too large when tabs are hidden
...
(cherry picked from commit c0a84f747e
)
2020-03-25 11:38:54 +01:00
Rémi Verschelde
acd14e645a
Remove unused classes and stray headers
...
Found by reviewing headers with 1 or less matching includes:
```
find -name thirdparty -prune -o -name "*.h" -exec basename {} \; | sort -u > headers
for header in $(cat headers); do echo "$header: "; rg -l "#include \"(.*/)?$header\"" | wc -l; done > list-includes
```
(cherry picked from commit 9d24541597
)
2020-03-25 11:38:54 +01:00
Dominik 'dreamsComeTrue' Jasiński
e97d9c7bfc
Remove unreferenced & undocumented class Space2D
...
(cherry picked from commit f530c38174
)
2020-03-25 11:38:54 +01:00
Rémi Verschelde
86ecefa1a2
Fix potential divisions by 0 reported by MSVC
...
The `TextEdit` one was indeed a potential bug.
The `PCKPacker` one seems to be a false positive, it's already in a
`for` loop that depends on `files.size()`.
(cherry picked from commit ca4e4506db
)
2020-03-25 11:38:54 +01:00
Tomasz Chabora
c8318012a8
Make search in RichTextLabel case-insensitive
...
(cherry picked from commit b3f83ac115
)
2020-03-25 11:38:53 +01:00
Rasmus Vermeulen
5c64458d9e
Add size warning to Viewport Node
...
(cherry picked from commits 855f4dc193
and 760095e28d
)
2020-03-25 11:38:53 +01:00
Tomasz Chabora
8fd7efef84
Fix visibility enabler flag toggling
...
(cherry picked from commit 2ccd1a7805
)
2020-03-25 11:38:53 +01:00
simpuid
223d0abd7e
Remove update condition from LineEdit::update_placeholder_width
...
Placeholder with length greater than `max_length` are allowed, so there is no reason for those update condition.
It fixes the odd alignment of placeholder when it's length is greater than `max_length`
(cherry picked from commit 43b2f75d64
)
2020-03-25 11:38:53 +01:00
Darren Kaste
53c8d8a5fb
Use LineEdit secret character width everywhere
...
(cherry picked from commit c7c47410aa
)
2020-03-25 11:38:53 +01:00
Darren Kaste
f657614760
Calculate LineEdit selection with secret character
...
(cherry picked from commit 395a038c85
)
2020-03-25 11:38:53 +01:00
Ev1lbl0w
b9b53966a3
Fix divison by zero issue
...
(cherry picked from commit 380b8039ec
)
2020-03-25 11:38:53 +01:00
lupoDharkael
536c2fc0c0
Loop over faces in create_trimesh_shape()
...
(cherry picked from commit ee0262977e
)
2020-03-25 11:38:53 +01:00
Dominik 'dreamsComeTrue' Jasiński
e590a33d45
Allow single quotes in comments
...
Fixes : #36638
(cherry picked from commit ab6456d1bc
)
2020-03-25 09:45:08 +01:00
Rémi Verschelde
cc70b2fa0a
Merge pull request #36342 from m4gr3d/external_texture_support_for_godot_3_2
...
Add support for opengl external textures
2020-03-17 16:29:14 +01:00
Rémi Verschelde
c01e840f03
Merge pull request #36639 from RandomShaper/imvu/improve_drives_ux_3.2
...
Improve UX of drive letters (3.2)
2020-03-17 16:27:33 +01:00
Pedro J. Estébanez
6105dfdac9
Improve UX of drive letters
...
Namely, move the drive dropdown to just the left of the path text box and don't include the former
in the latter.
This improves the UX on Windows.
In the UNIX case, since its concept of drives is (ab)used to provide shortcuts to useful paths, its
dropdown is kept at the original location.
2020-03-17 14:48:54 +01:00
Pierre Caye
5062d7499f
Add a new configuration warning to CollisionShape
...
In the case where a ConcavePolygonShape is used as a shape for a RigidBody
in another mode than static, a configuration warning will appear in the
editor.
(cherry picked from commit ad227d9a85
)
2020-03-06 23:51:26 +01:00
fhuya
30d738eda7
Add support for opengl external textures as defined by https://www.khronos.org/registry/OpenGL/extensions/OES/OES_EGL_image_external.txt
2020-03-05 13:09:49 -08:00
Fabio Alessandrelli
e92669654a
Fix debugger crash inspecting freed object.
...
This seems to be the correct way to validate a reference.
Why is cast_to failing?
(cherry picked from commit d8ba07ea8f
)
2020-03-04 12:40:14 +01:00
Juan Linietsky
03c8e12d54
Add support for named binds in Skin.
...
Helps better reutilization of skeletons from Maya exported files.
(cherry picked from commit 9a34f39d32
)
2020-03-04 12:40:14 +01:00
janglee
ffea9fc39f
Added tween support for Rect2
...
Fixes #34575
(cherry picked from commit 4bbe87abb7
)
2020-03-04 12:40:14 +01:00
Hugo Locurcio
b80190721b
Allow using `MeshLibrary.get_item_preview()` in non-editor builds again
...
This closes #36268 .
(cherry picked from commit 64fac9dd5d
)
2020-03-04 12:40:13 +01:00
Dominik 'dreamsComeTrue' Jasiński
f328ac36d6
Fix: auto brace complete for quoted strings
...
Fixes #36002
(cherry picked from commit 6a404a88e4
)
2020-03-04 09:53:44 +01:00
Eevee
e70e0d24d9
Fix inverted use of Camera2D.offset_v
...
The code above for horizontal movement uses the right margin (_positive_ x direction) when the offset is negative, but vertical movement uses the top margin (_negative_ y direction) when the offset is negative.
The resulting problem is easily seen in the editor — set the drag margins to be asymmetrical, turn on drawing the drag margins, and slide the offsets from -1 to 1 and back. The horizontal offset moves the camera's center between the left and right margins, but the vertical offset gets them backwards and will move the camera outside the margins entirely.
(cherry picked from commit 40816574ac
)
2020-03-04 09:50:21 +01:00
Rémi Verschelde
2bae35353d
Revert "Fix control node transform animation jitter with pivot offset"
...
This reverts commit 15315f118c
.
It caused a regression: #36087 .
2020-03-04 09:50:21 +01:00
Rémi Verschelde
416cd715a3
Merge pull request #36236 from Janglee123/vehicle-random-force-fix
...
Fixing Vehicle-Wheels getting a random engine_force at start
2020-03-02 16:50:10 +01:00
Dominik 'dreamsComeTrue' Jasiński
eb22bcead7
RichTextLabel: proper handling of internal key events
...
Fixes #36211
(cherry picked from commit ff030afc93
)
2020-02-19 10:09:28 +01:00
Michael Alexsander
18eba898f8
Fix hiding ColorPicker's presets not fully hiding its controls
...
(cherry picked from commit 5f5ccfc361
)
2020-02-18 14:20:04 +01:00
WARIO-MDMA
707d1a38ec
Reduce AudioStreamPlayer's pitch_scale max value
...
(cherry picked from commit 61d20b1f56
)
2020-02-18 14:19:51 +01:00
janglee
5948530332
Fixed random force on vehicle wheel
2020-02-15 20:30:17 +05:30
bitstopper
7cb3a20418
Fixes broken CPUParticles2D AtlasTextures usage
...
(cherry picked from commit 36d9906d6a
)
2020-02-14 16:14:13 +01:00
Yuri Roubinsky
e10b0c9eaa
Added missing '\n' in visual shader expression node code generation
...
(cherry picked from commit 6e1187ad2f
)
2020-02-14 16:13:44 +01:00
Yuri Roubinsky
1930c79364
Added missing '\n' in visual shader fresnel node code generation
...
(cherry picked from commit c8639a0013
)
2020-02-14 16:13:44 +01:00
Yuri Roubinsky
5579eb823b
Few extra formatting fixes for visual shader node generation
...
For 'If' and 'Switch' nodes
(cherry picked from commit b0f166f0c5
)
2020-02-14 16:13:44 +01:00
Yuri Roubinsky
1f4885fe49
Added missing '\n' in visual shader custom node code generation
...
(cherry picked from commit 9d8b59e86a
)
2020-02-14 16:13:44 +01:00
Yuri Roubinsky
fb56d93163
Better visual shader code generation
...
(cherry picked from commit bfec48abf1
)
2020-02-14 16:13:44 +01:00
zxcvdev
6380943831
Fix GPU Particles
...
The special case atan(y,0) of the built-in shader function atan(y,x)
returns different results on different devices. So this commit will add
checks when the atan(y,x) function is used in ParticlesMaterial to set
the direction of GPU Particles to make sure the desired values are
returned (act as atan2(y,x)).
(cherry picked from commit 3580ad6005
)
2020-02-14 16:04:07 +01:00
Haoyu Qiu
be34e45233
Uses split cursor for SplitContainer
...
(cherry picked from commit 206b9f2d23
)
2020-02-14 16:02:56 +01:00
muiroc
1b5996c95d
pass missing args in AnimationNode script calls
...
(cherry picked from commit ed3a8cc83d
)
2020-02-14 15:59:56 +01:00
Haoyu Qiu
0a3bf2b627
Fixes add group in Group Editor dialog
...
Before this fix, new group can't be created if any existing group starts
with the new name.
(cherry picked from commit 421ea09195
)
2020-02-14 15:58:36 +01:00
Eoin O'Neill
0dedc0a1a3
Fix RichTextEffect `visibility` to Account for Skipped Characters.
...
A picture is easier to describe this issue than words. Basically, rich
text effects allowed for character visibility changes. While doing so
would work properly, the rich text label would render the next `word` in
an offset accounting for the hidden characters (leaving a huge space.)
This patch fixes this issue by keeping track of the amount of
`backtrack` necessary per line.
(cherry picked from commit b3fd4884d7
)
2020-02-14 15:57:47 +01:00
sumit0190
58a940e5aa
Update cached_width of the line_edit element when setting it to be secret
...
(cherry picked from commit 2e08578985
)
2020-02-14 15:56:48 +01:00
Eric Rybicki
63daa19538
Use a new approach to fix bone pose override not being reset when IK animation is stopped.
...
This reverts PR #35460 & commit 551c37167b
.
(cherry picked from commit bb0358dd8d
)
2020-02-14 15:55:47 +01:00
Haoyu Qiu
7cfcf1824b
Completes doc for ItemList and Tree
...
(cherry picked from commit 7a41c44be2
)
2020-02-12 15:05:02 +01:00
Georg Wacker
15315f118c
Fix control node transform animation jitter with pivot offset
...
The workaround for moving the pivot is not needed anymore, in fact it causes all transforms applied to control nodes to jitter while animating (if a pivot offset is set).
This can be observed via AnimationPlayer and Tween.
The fix is to remove the obsolete workaround that causes this bug.
Fixes #28804
(cherry picked from commit dfb7d46a2a
)
2020-02-06 13:02:07 +01:00
Michael Alexsander
a779774c86
Hide TileSet's properties from the inspector
...
(cherry picked from commit 5452028d55
)
2020-02-06 13:02:07 +01:00
Haoyu Qiu
dc20acd4fc
Updates Path2D in debugging if navigation is visible
...
(cherry picked from commit 00d578ba3e
)
2020-02-06 13:02:07 +01:00
Yuri Roubinsky
72f7e4efe0
Fix canvas_item light alpha output in visual shaders
...
(cherry picked from commit b822da00f8
)
2020-02-06 13:02:07 +01:00
Haoyu Qiu
808a0bac33
Fixes OptionButton min size
...
(cherry picked from commit ddc397d9ff
)
2020-02-06 13:02:07 +01:00
Rémi Verschelde
8d00dcb421
Merge pull request #35670 from clayjohn/material-flag-cache
...
Add an extra bit to material flag cache
2020-01-28 20:59:49 +01:00
clayjohn
ec4d606e07
Add an extra bit to material flag cache
2020-01-28 10:38:54 -08:00
Rémi Verschelde
11d28b2d10
Revert "make Label consider spaces for visible_characters"
...
This reverts commit 695980a0f2
.
Fixes #35668 .
2020-01-28 19:37:04 +01:00
Rémi Verschelde
50830632c9
Merge pull request #35620 from TrevorPeyton/bind-autotile-center
...
Added binding for Autotile Center
2020-01-28 10:50:09 +01:00
Yuri Roubinsky
9705d5587e
Hide "control" methods from VisualShaderNodeGroupBase
2020-01-28 10:24:59 +03:00
Yuri Roubinsky
274f1d8610
Hide "editable" property from VisualShaderNodeGroupBase public interface
2020-01-28 09:43:07 +03:00
Yuri Roubinsky
796484d761
Added missing property "size" to VisualShaderNodeGroupBase
2020-01-27 19:18:48 +03:00
Yuri Roubinsky
3479cf4b42
Removed unused method "build" from VisualShaderNodeExpression
2020-01-27 18:24:39 +03:00
TrevorPeyton
ae4fee52d5
Added binding for Autotile Center
2020-01-27 09:07:32 -05:00
Yuri Roubinsky
4912d4c6e4
Added missed bracket to VisualShaderNodeCubeMap
2020-01-27 13:09:15 +03:00
Yuri Roubinsky
4445f892d2
Fix VisualShaderNodeCubeMap generation
2020-01-27 12:17:06 +03:00
Rémi Verschelde
bb6c0d3e8b
doc: Complete documentation for VideoStreams
...
Also quick clean up of the matching C++ files.
2020-01-26 11:29:07 +01:00
Haoyu Qiu
71b1a1c7d9
Updates minimum size on VideoPlayer::set_stream
2020-01-26 10:24:56 +08:00
Haoyu Qiu
df3fad11fd
Fixes crash in Spatial::notification
2020-01-25 13:16:51 +08:00
Tomasz Chabora
9ad7fc3405
Allow greater values in unit_offset
2020-01-24 14:40:33 +01:00
Yuri Roubinsky
ce43c92208
Docs for some nodes in visual shader
...
Fix typo in `VisualShaderNodeCompare.ComparisonType` name.
2020-01-23 22:39:00 +01:00
Michael Alexsander
151f33111b
Fix TileSet shape data not updating when being set via code
2020-01-23 11:48:38 -03:00
Rémi Verschelde
efea348fe8
Merge pull request #35460 from ericrybick/35409-skeleton-does-not-return-to-original-pose-when-ik-playback-is-stopped
...
Fix bone pose override not being reset when IK animation is stopped
2020-01-23 14:38:04 +01:00
Rémi Verschelde
ba177ccaec
doc: Misc updates for AnimationNode* and others
...
- Add some missing descriptions.
- Add links to tutorials for ARVR and AnimationTree.
- Style fixes.
- Engine changes:
* Make `AnimationNodeTransition.input_<number>` properties internal
so that they don't appear in the docs. They still appear in the
inspector based on the actual number of inputs requested.
* Drop unimplemented `CPUParticles.flatness`. It's only used for 3D
particles in `ParticlesMaterial`, and thus only relevant for
`CPUParticles3D`.
2020-01-23 12:37:33 +01:00
Yuri Roubinsky
86cdccebe6
Hide "default_input_values" property in VisualShaderNode.
2020-01-23 11:18:51 +03:00
Eric Rybicki
551c37167b
Fix bone pose override not being reset when IK animation is stopped
...
Fixes #35409
2020-01-23 08:48:08 +01:00
Rémi Verschelde
c2e07db071
Merge pull request #35438 from MadEqua/virtual-keyboard-line-edit
...
Android virtual keyboard respecting LineEdit max length.
2020-01-23 08:20:24 +01:00
Bruno Lourenço
a3bcdbeb78
Android virtual keyboard respecting LineEdit max length.
2020-01-23 01:52:49 +00:00
Rémi Verschelde
94d3bcbc9b
Merge pull request #35452 from nekomatata/tween-start-fail
...
Fixed Tween::start() with pending updates
2020-01-22 22:56:40 +01:00
PouleyKetchoupp
6c04c824bd
Fixed Tween::start() with pending updates
...
Start was canceled instead of deferred in case of an update in progress.
Fixes #35441
2020-01-22 22:27:37 +01:00
Rémi Verschelde
37897dba80
Merge pull request #35406 from lawnjelly/ortho-shadow
...
Replace CameraMatrix::get_viewport_size with get_viewport_half_extents, shadow culling with ortho camera and other affected issues
2020-01-22 22:02:09 +01:00
Rémi Verschelde
41feb410a6
Merge pull request #35338 from rburing/fix_find_focus_neighbor
...
Fix Control::_window_find_focus_neighbour
2020-01-22 21:16:35 +01:00
lawnjelly
eaf8e5ce52
Change CameraMatrix::get_viewport_size to get_viewport_half_extents
...
Fixes #26637 .
Fixes #19900 .
The viewport_size returned by get_viewport_size was previously incorrect, being half the correct value. The function is renamed to get_viewport_half_extents, and now returns a Vector2.
Code which called this function has also been modified accordingly.
This PR also fixes shadow culling when using ortho cameras, because the correct input for CameraMatrix::set_orthogonal should be the full HEIGHT from get_viewport_half_extents, and not half the width.
It also fixes state.ubo_data.viewport_size in rasterizer_scene_gles3.cpp to be the width and the height of the viewport in pixels as stated in the documentation, rather than the current value which is half the viewport extents in worldspace, presumed to be a bug.
2020-01-22 18:22:00 +00:00
Bastiaan Olij
5cf9f4faeb
Incorrect joystick id was returned on an inactive ARVR controller
2020-01-22 18:27:32 +11:00
Rémi Verschelde
5127afa812
Merge pull request #35413 from akien-mga/if-0-means-couperet
...
Remove unused #if 0'ed code
2020-01-21 22:27:50 +01:00
Rémi Verschelde
4faaf6089a
Remove unused #if 0'ed code
2020-01-21 21:41:54 +01:00
Rémi Verschelde
0be64da008
Allow greater values for DynamicFont size property
...
See https://github.com/godotengine/godot/issues/22581#issuecomment-576836691 .
Not using `or_greater` as there *is* a max size value that the current
implementation can accept. If using e.g. size 6000 with
FiraSans-Regular.ttf, errors are printed due to failing asserts on a
glyph size that should be within 4096x4096 px.
2020-01-21 20:59:16 +01:00
Yuri Roubinsky
a8ab4e3357
Forbid recursive connections in visual shader
2020-01-20 18:15:45 +03:00
Haoyu Qiu
0eab15a5a9
Destroys FreeType library on load error
2020-01-20 11:00:51 +08:00
Ricardo Buring
40542b0b0f
Fix Control::_window_find_focus_neighbor
...
Due to a typo, the size of a candidate neighbor was confused with the
size of the control itself.
Fixes #34936 .
2020-01-19 23:38:50 +01:00
Rémi Verschelde
6472e09a85
SceneTree: Abort change_scene if we're quitting
...
Otherwise we can have a segmentation fault if we try to call
`add_child` on an already freed node.
Fixes #35323 .
2020-01-19 22:08:40 +01:00
Rémi Verschelde
eb89254690
Fix crash when confirming dialogs with Return key
...
Regression from #34040 , apparently making this a const reference
introduces issues (not sure why, but previous code worked fine).
Fixes #34691 .
Co-authored-by: dankan1890 <mewuidev2@gmail.com>
2020-01-17 12:47:23 +01:00
Eric Rybicki
41efc08532
Fix SkeletonIK not playing animation if more than one IK-Bone is active
2020-01-16 20:22:15 +01:00
Rémi Verschelde
1de633205f
Validate input in (CPU)Particles set_emission_shape()
...
Fixes #29777 .
Co-authored-by: Cameron Reikes <cameronreikes@gmail.com>
2020-01-16 11:08:51 +01:00
Rémi Verschelde
dd3779c12e
Merge pull request #35183 from YeldhamDev/scrollbar_regression
...
Fix scrollbar regression on large scales
2020-01-16 07:56:05 +01:00
Michael Alexsander
76e03f9b4d
Fix scrollbar regression on large scales
2020-01-16 00:59:46 -03:00
Haoyu Qiu
574918f344
Updates ScrollContainer min size when toggle scrollbars
2020-01-16 09:42:31 +08:00
Rémi Verschelde
7c624949b5
Merge pull request #35147 from madmiraal/fix-34992
...
Fixes get_floor_normal() returning the user defined floor_normal.
2020-01-15 14:17:15 +01:00
Marcel Admiraal
907adb37ce
Fixes get_floor_normal() returning the user defined floor_normal.
...
When there is no collision with a floor the get_floor_normal() function
should return the zero vector to be consistent with get_floor_velocity().
Renames floor_normal to up_direction in all bindings.
Updates the documentation of get_floor_normal() and get_floor_velocity()
to make it clear when the values are valid. Updates the documentation for
move_and_slide() and move_and_slide_with_snap() to use the new up_direction
parameter name.
2020-01-15 10:13:35 +01:00
Haoyu Qiu
26e3b4a58a
Updates LineEdit's min size when necessary
...
These properties will affect the minimum size of LineEdit:
* The right icon (`set_right_icon`)
* The clear button (`set_editable` and `set_clear_button_enabled`)
* The text, when "expand to text length" is enabled (`set_text`)
2020-01-15 10:15:32 +08:00
Rémi Verschelde
40f0649e5b
Fix typos with codespell
...
Using codespell 1.16.0.
See ab3bccdb78
for procedure.
2020-01-15 00:49:52 +01:00
Michael Alexsander
db8c4c2a22
Fix regression on scrollbar raising in ScrollContainer
2020-01-14 19:55:12 -03:00
Michael Alexsander
34bf81fa7c
Cleanup unnecessary code from before the scrollbar overlapping fixes
2020-01-14 18:19:12 -03:00
Rémi Verschelde
57986208f3
Merge pull request #35130 from qarmin/crash_item_bad_index
...
Don't allow to use too big index in ItemList
2020-01-14 21:03:25 +01:00
Rafał Mikrut
724f5f3178
Don't allow to use too big index in ItemList
2020-01-14 20:17:48 +01:00
Rémi Verschelde
63112b5090
Merge pull request #35106 from YeldhamDev/scrollbar_overlap_fixes
...
Fix more instances of overlapping scrollbars
2020-01-14 08:12:20 +01:00
Michael Alexsander
712cd8a97e
Fix more instances of overlapping scrollbars
2020-01-13 22:49:17 -03:00
Haoyu Qiu
66a54582ee
Updates min size on CenterContainer::set_use_top_left
2020-01-14 08:35:21 +08:00
Rémi Verschelde
04a1ae90df
Merge pull request #35080 from malbach/scrollbars_overlap
...
Fix #33309 Overlapping Scrollbars in ScrollContainer
2020-01-13 16:10:12 +01:00
malbach
bc8ce836e3
Fix overlapping scrollbars in ScrollContainer ( #33309 )
2020-01-13 14:37:55 +01:00
Rémi Verschelde
100f50b7df
Control/Light2D: Preventing setting 0 as scale as for Node2D
...
Triggers errors in `Transform2D::affine_invert()`.
Fixes #26510 .
Fixes https://github.com/godotengine/godot/issues/24997#issuecomment-457951639 .
2020-01-13 12:20:15 +01:00
Rémi Verschelde
478ab8b45b
Merge pull request #34960 from johannesgunnar/spin_box-apply-method
...
Spinbox apply input method
2020-01-12 14:16:14 +01:00
Paulb23
22c15083af
Fix empty LineEdit crash on ctrl+backspace
2020-01-11 17:57:36 +00:00
Jóhannes Gunnar Þorsteinsson
083637a901
Add apply method to SpinBox
2020-01-11 10:47:51 +00:00
Tomasz Chabora
60cd3df337
Add signal for LineEdit overflow event
2020-01-10 21:07:00 +01:00
Andrea Catania
9f1f4620e0
Added function to expose floor normal, useful to correctly calculate player velocity.
...
This work has been kindly sponsored by IMVU.
2020-01-10 14:58:19 +01:00
Rémi Verschelde
59a2fed1e6
Merge pull request #34938 from OverloadedOrama/fix-basebutton-button-press
...
Fixes BaseButton not triggering the pressed signal on "Button Press"…
2020-01-10 10:35:11 +01:00
Haoyu Qiu
fbd937bd30
Update minimum size on Label::set_autowrap
...
If `clip_text` is true, the minimum height is one line if `autowrap` is
true , or one pixel otherwise.
2020-01-10 17:08:27 +08:00
Gilles Roudière
b5251eb00f
Don't compile editor-only function when tools=no
2020-01-09 22:15:48 +01:00
Ben Hickling
fdd7cfa820
fixed camera project_position function that was still using the near parameter in a few calculations
2020-01-09 14:34:31 +00:00
OverloadedOrama
bf4a0242ff
Fixes BaseButton not triggering the "pressed" signal on "Button Press" Action Mode
...
This should fix #34935
2020-01-09 02:17:53 +02:00
Haoyu Qiu
4293f76cf1
Emits meta_hover_ended when mouse exit RichTextLabel
2020-01-08 21:01:08 +08:00
Yuri Roubinsky
ed22a4c454
Merge pull request #33817 from Chaosus/vs_fresnel
...
Make Fresnel node in visual shaders to use default NORMAL/VIEW
2020-01-08 12:15:46 +03:00
Rémi Verschelde
1de54bb388
Merge pull request #34874 from wingedadventurer/bugfix-label-visible-characters
...
Make Label node consider spaces for visible_characters property
2020-01-08 08:18:59 +01:00
Rémi Verschelde
033fb72c03
Merge pull request #34871 from lentsius-bark/textEdit-vertical-horizontal-scroll-expose
...
expose scroll_vertical and scroll_horizontal in TextEdit
2020-01-08 08:18:12 +01:00
Rémi Verschelde
90c487ebf3
Merge pull request #34900 from timothyqiu/rtl-cell-wrap
...
Fixes RichTextLabel click issue when cell text wraps
2020-01-08 07:08:02 +01:00
Michael Alexsander
8b5992f665
Make possible to edit the GraphEdit's selection rect colors
2020-01-07 23:20:48 -03:00
Haoyu Qiu
d17a4efc43
Fixes RichTextLabel click issue when cell text wraps
2020-01-08 09:08:03 +08:00
Rémi Verschelde
83fe471c3b
Merge pull request #34881 from williamd1k0/fix-animationtree-no3d
...
Fix AnimationTree not available when compiled with disable_3d
2020-01-07 23:03:53 +01:00
Tomasz Chabora
bbc36dbc67
Don't show conf warning if script is not tool
2020-01-07 21:28:16 +01:00
Kanabenki
d79f0e7d40
Check if cursor is inside meta when getting cursor shape
2020-01-07 15:46:11 +01:00
Krystof Klestil
c475f11018
expose scroll_vertical and scroll_horizontal in TextEdit + documentation
2020-01-07 15:16:07 +01:00
Haoyu Qiu
3df9d187a3
Fixes crash when using Mesh::create_outline and Mesh::create_convex_shape
...
Adds a size check to the array returned by `surface_get_arrays`.
During debugging, `create_outline` also crashes when the indices size is
one (not a multiple of three). For now, just reports the error and fail
the function.
2020-01-07 16:15:14 +08:00
William Tumeo
c1853eeb59
Fix AnimationTree not available when compiled with disable_3d
2020-01-07 00:04:30 -03:00
Haoyu Qiu
d43ad46e42
Fixes import of models as PackedScene
2020-01-07 07:21:17 +08:00
wingedadventurer
695980a0f2
make Label consider spaces for visible_characters
2020-01-06 23:29:00 +01:00
Rémi Verschelde
e2a6cae0c7
Merge pull request #34867 from volzhs/calculate-label-size-2
...
Calculate label size more accurately
2020-01-06 22:26:14 +01:00
volzhs
e5a0018621
Calculate label size more accurately
2020-01-07 04:21:02 +09:00
Rémi Verschelde
24281cd9c9
Merge pull request #34865 from volzhs/oversampling-emoji
...
Update size and position for colored font with oversampling
2020-01-06 18:32:24 +01:00
volzhs
e03ac8c618
Update size and position for colored font with oversampling
2020-01-07 02:15:23 +09:00
Rémi Verschelde
ce75a2f33d
Merge pull request #33987 from nekomatata/own-world-environment
...
Viewport environment is updated properly when set to own world
2020-01-06 15:26:52 +01:00
Rémi Verschelde
f5d1177fcb
Merge pull request #34303 from Chaosus/fix_texture_crash
...
Fixed crash if passing invalid image ref to TextureLayered
2020-01-06 14:21:20 +01:00
Rémi Verschelde
8aea5decc6
Merge pull request #34020 from gytsen/unify-pack-version
...
PCK: Set VERSION_PATCH in header, factor out header magic
2020-01-06 14:04:55 +01:00
Rémi Verschelde
080e6e48ad
Merge pull request #34829 from timothyqiu/checks-bundle
...
Fixes crash for bad property of PackedScene
2020-01-06 13:43:38 +01:00
Joost Heitbrink
dc61323b2c
PCK: Set VERSION_PATCH in header, factor out header magic
...
Unify pack file version and magic to avoid hardcoded literals.
`version.py` now always includes `patch` even for the first release in
a new stable branch (e.g. 3.2). The public name stays without the patch
number, but `Engine.get_version_info()` already included `patch == 0`,
and we can remove some extra handling of undefined `VERSION_PATCH` this
way.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2020-01-06 13:13:17 +01:00
Rémi Verschelde
61dd7748ca
Merge pull request #34839 from madmiraal/fix-34807
...
Don't update the floor_velocity with the current linear_velocity.
2020-01-05 18:18:55 +01:00
Marcel Admiraal
fc1f0d76e7
Don't update the floor_velocity with the current linear_velocity.
...
Updating the floor velocity with the body's current linear velocity
discards the velocity component provided by the body's angular
rotation. Without the current contact point there is no way to calculate
the current velocity component provided by the body's angular rotation
therefore we need to use the velocity calculated at the time of the
collision.
Fixes #34807 .
2020-01-05 17:35:49 +01:00
volzhs
3f0c7b89ec
Fix calculating label size
2020-01-06 01:06:26 +09:00
Rémi Verschelde
195f39a2ce
Merge pull request #34835 from nekomatata/stylebox-aa-fix
...
Fixed StyleBoxFlat antialiasing with aa size of 1
2020-01-05 11:07:38 +01:00
PouleyKetchoupp
a7a025531b
Fixed StyleBoxFlat antialiasing with aa size of 1
...
Also made aa size consistent when computing uv coordinates and fixed a warning about aa_border_width not initialized in some cases.
fixes #34830
2020-01-05 10:54:24 +01:00
Haoyu Qiu
4b660a87d8
Fixes crash for bad property of PackedScene
2020-01-05 11:13:29 +08:00
Haoyu Qiu
78e9ca58af
Makes more strings translatable
2020-01-04 13:46:38 +08:00
Rémi Verschelde
6f279ed6eb
Merge pull request #34781 from fossegutten/button-flash
...
Fixes button flashing when releasing mousebutton outside
2020-01-03 16:23:57 +01:00
fossegutten
b728d3bd18
Fixes button flashing when releasing mousebutton outside
2020-01-03 14:55:27 +01:00
Rémi Verschelde
147268a427
Merge pull request #34755 from Calinou/shadermaterial-connect-editor-only
...
Don't connect ShaderMaterial's `changed` signal when not in the editor
2020-01-03 14:42:10 +01:00
Rémi Verschelde
fa82664419
Merge pull request #34726 from nekomatata/polygon2d-antialiasing-fix
...
Fixed antialiasing option for Polygon2D with concave/hollow shapes
2020-01-03 14:17:05 +01:00
Rémi Verschelde
b300411740
Merge pull request #34779 from timothyqiu/tree-hscroll
...
Better horizontal scroll for Tree
2020-01-03 13:47:38 +01:00
Haoyu Qiu
229b398146
Better horizontal scroll for Tree
...
* Adds pan gesture support for horizontal scroll.
* Scrolls horizontally when needed to ensure cursor visiblility.
2020-01-03 20:16:32 +08:00
Hugo Locurcio
cc626acf45
Add a shorthand for setting the exit code using `SceneTree::quit()`
...
This reduces the amount of code required to exit a process with a
non-zero exit code. This pattern is also found in most other
programming languages.
2020-01-03 11:41:46 +01:00
Haoyu Qiu
e539b187a5
Clears button mask before activating menu item
2020-01-03 09:35:00 +08:00
SIYU FU
d80e979a48
Update Camera.project_position to not return get_global_transform().origin if projection mode is orthogonal
2020-01-02 17:54:41 +01:00
Hugo Locurcio
ac3087eb4b
Don't connect ShaderMaterial's `changed` signal when not in the editor
...
This closes #34741 .
2020-01-02 17:20:54 +01:00
Александр Растриженков
d8dbcbe066
Fix wrong disconnect in callback in VisibilityNotifier 3D
2020-01-02 15:09:26 +01:00
Rémi Verschelde
c0ece451e3
Merge pull request #34720 from Calinou/light-gizmo-color-by-light
...
Tint 3D light gizmos using the light's color
2020-01-02 13:59:10 +01:00
Rémi Verschelde
1788b22b11
Merge pull request #34737 from timothyqiu/tree-item-offset
...
Fixes Tree item offset when root is hidden
2020-01-02 08:17:29 +01:00
Rémi Verschelde
ca38190363
Merge pull request #34735 from YeldhamDev/texturerect_code_format
...
Minor code formatting in TextureRect file
2020-01-02 08:01:55 +01:00
Haoyu Qiu
0ee93257e8
Fixes Tree item offset when root is hidden
...
Before this fix, one vseparation is counted for a hidden root item.
2020-01-02 09:20:43 +08:00
Michael Alexsander
7b86688ddf
Minor code formatting in TextureRect file
2020-01-01 21:56:12 -03:00
Haoyu Qiu
a77e869b87
Ensures cursor visible for Tree with title
2020-01-01 22:47:42 +08:00
Rémi Verschelde
f7715b58bd
Merge pull request #34724 from timothyqiu/tree-right
...
Fixes behavior of right arrow key in Tree
2020-01-01 12:13:28 +01:00
PouleyKetchoupp
1591677eb8
Fixed antialiasing option for Polygon2D
...
Some cases were not handled properly for Polygon2D after making changes in common code to fix Line2D antialiasing. Added an option for drawing polygons to differentiate the two use cases.
Fixes #34568
2020-01-01 11:40:14 +01:00
Rémi Verschelde
5b173c4bf1
Merge pull request #34654 from Calinou/colorpicker-move-preview-under-picker
...
Move the ColorPicker preview under the picker area
2020-01-01 11:38:04 +01:00
Rémi Verschelde
3e649f8cba
Merge pull request #34665 from timothyqiu/camera-fov
...
Clamps fov/size for Camera gizmo
2020-01-01 11:37:28 +01:00
Rémi Verschelde
a7f49ac9a1
Update copyright statements to 2020
...
Happy new year to the wonderful Godot community!
We're starting a new decade with a well-established, non-profit, free
and open source game engine, and tons of further improvements in the
pipeline from hundreds of contributors.
Godot will keep getting better, and we're looking forward to all the
games that the community will keep developing and releasing with it.
2020-01-01 11:16:22 +01:00
Haoyu Qiu
838d9519bc
Fixes behavior of right arrow key in Tree
2020-01-01 17:57:40 +08:00
Hugo Locurcio
ac18665c88
Tint 3D light gizmos using the light's color
...
This makes navigation more convenient in the 3D viewport, especially
when using the unshaded display mode.
2020-01-01 00:54:25 +01:00
Rémi Verschelde
406dac1917
Merge pull request #34633 from qarmin/lineedit_signal
...
Don't try to connect "text_entered" signal to nodes other than LineEdit
2019-12-31 12:54:48 +01:00
Rémi Verschelde
1bed049ed5
Merge pull request #34612 from timothyqiu/item-list
...
Improves ItemList documentation
2019-12-31 12:45:40 +01:00
Haoyu Qiu
7a752215ba
Improves ItemList
...
* Adds range hint for integer properties
* Adds missing descriptions in documentation
* Updates some method descriptions to match the actual behavior
* Fixes second param name of `set_item_icon_transposed` from `rect` to `transposed`
2019-12-31 08:44:55 +08:00
Tomasz Chabora
54f70b6b50
Fix argument type in set_follow_focus()
2019-12-30 23:42:39 +01:00
Rémi Verschelde
97ebde45d5
Merge pull request #34572 from KoBeWi/I_give_up
...
Make new ScrollContainer focus behavior optional
2019-12-30 19:00:57 +01:00
Rémi Verschelde
7b412eb839
Merge pull request #34653 from YeldhamDev/optionbutton_margin_auto
...
Make OptionButton itself take into account the arrow margin instead of relying on the theme
2019-12-30 18:00:37 +01:00
Rémi Verschelde
583d96cb96
Merge pull request #34659 from Calinou/improve-timer-wait-time-hint
...
Improve the Timer wait time property hint
2019-12-30 17:59:01 +01:00
Tomasz Chabora
cc72885107
Make new ScrollContainer focus behavior optional
2019-12-30 16:40:02 +01:00
Rémi Verschelde
edf2ed5e50
Merge pull request #34582 from timothyqiu/forward-decl
...
Cleans up headers included in editor_node.h
2019-12-30 16:28:47 +01:00
Rémi Verschelde
5b687b4c93
Merge pull request #34563 from Paulb23/23751_extra_line_indent
...
Fixed selection indent taking an additional line
2019-12-30 16:20:37 +01:00
Rémi Verschelde
9ef9370904
Merge pull request #34561 from NoFr1ends/fix-disconnect-in-theme-change
...
Fix issue with disconnecting events when font changes
2019-12-30 16:20:11 +01:00
Haoyu Qiu
cbb8930813
Clamps fov/size for Camera gizmo
2019-12-29 11:39:04 +08:00
Hugo Locurcio
f1052aa893
Improve the Timer wait time property hint
...
- Make it possible to enter more precise values (up to 3 decimals).
- Make it possible to enter values above 4096.
2019-12-28 22:36:59 +01:00
Hugo Locurcio
bbd5e39165
Move the ColorPicker preview under the picker area
...
This moves it to be closer to the sliders, which in turn makes it easier
for the user to preview the color.
This also makes it clearer that the Pick button can only pick colors
in the editor window, not outside.
2019-12-28 18:23:28 +01:00
Michael Alexsander
fd2c181a35
Revert "Merge pull request #34315 from YeldhamDev/editor_theme_optionbutton_arrow"
...
This reverts commit 0da0eec6cc
, reversing
changes made to ec97535ea3
.
2019-12-28 14:16:51 -03:00
Michael Alexsander
c4cd2c44c8
Make OptionButton itself take into account the arrow margin instead of relying on the theme
2019-12-28 12:03:04 -03:00
Rafał Mikrut
0a1d3e4437
Don't try to connect "text_entered" signal to nodes other than LineEdit
2019-12-27 12:08:49 +01:00
Haoyu Qiu
078c0d75f2
Cleans up headers included in editor_node.h
2019-12-24 21:46:05 +08:00
Paulb23
0049f43fc8
Fixed selection indent taking an additional line
2019-12-23 13:16:57 +00:00
Jonas Bernemann
2f35cf4946
Fix issue with disconnecting events when font changes
2019-12-23 14:08:34 +01:00
Rémi Verschelde
8938577459
i18n: Sync translations with Weblate + update template
...
Also fix a few stray clang-format formatting errors that passed
through CI unnoticed.
2019-12-22 13:27:02 +01:00
Rémi Verschelde
9410d0c792
Merge pull request #34516 from Faless/debugger/output_buffer_size
...
Correct size for PacketPeerStream in Debugger.
2019-12-22 12:37:59 +01:00
Rémi Verschelde
0df1122acc
Merge pull request #34488 from nekomatata/style_box_flat_aa
...
Fixed StyleBoxFlat border size with aa on
2019-12-22 12:31:19 +01:00
Hugo Locurcio
0a5b30b14a
Add a range property hint for the number of contacts reported
...
This closes #34505 .
2019-12-21 22:27:10 +01:00
Fabio Alessandrelli
f8f5696394
Correct size for PacketPeerStream in Debugger.
...
We wanted 8 MiB but we were getting 16 MiB (minus 4 bytes for the
separator). We are now getting 8 MiB minus 4 bytes for encoding.
2019-12-21 16:50:29 +01:00
PouleyKetchoupp
6ffbd36e3d
Fixed StyleBoxFlat border size with aa on
...
The different Rect used to draw rings were wrongly calculated when anti-aliasing was enabled. Also getting rid of some overlapping glitches when using transparent colors for the filling or borders.
Fixes #34104
2019-12-20 13:29:43 +01:00
Haoyu Qiu
e7e095da3f
Encodes property names properly in project.godot
2019-12-20 10:42:08 +08:00
Rémi Verschelde
3d6f991a17
Revert "Allow tab key to be used for shortcuts"
...
This reverts commit cafb888361
.
Fixes #34405 .
Reopens #8799 , #24064 .
2019-12-18 08:30:39 +01:00
Tomasz Chabora
3a3cab6494
Use global transform when calculating scroll
2019-12-17 00:51:07 +01:00
Juan Linietsky
21dec856f2
Use an internal skin unless one is supplied by user, fixes #32766
...
Even though this fixes the issue, the broken Skin resource in the inherited scene mesh will remain, it needs to be erased manually.
2019-12-16 13:00:30 -03:00
Rémi Verschelde
817165b96c
Merge pull request #34246 from tygree/nan-in-sprite-fix
...
Fixed a bug within sprite.cpp that caused a nan value to appear
2019-12-16 15:03:58 +01:00
Rémi Verschelde
f8ea390b52
Merge pull request #34269 from KoBeWi/scrolling_peeps
...
Scroll ScrollContainer to focused children
2019-12-16 14:03:21 +01:00
Tyler Greenwood
e4a0abdd93
Fixed a bug within sprite.cpp that caused nan values to appear when a texture had zero area
2019-12-16 13:53:35 +01:00
Rémi Verschelde
51ab6a96fd
Merge pull request #34311 from mikkac/34289
...
Fix- using cut in first line of a script file does not remove the line
2019-12-16 08:48:47 +01:00
Tomasz Chabora
32939ccd39
Prevent infinite loop when focus_next is invisible
2019-12-16 01:33:25 +01:00
Rémi Verschelde
389b7939bf
Merge pull request #34356 from Calinou/styleboxflat-lower-max-corner-detail
...
Lower the maximum StyleBoxFlat corner detail to 20
2019-12-15 11:41:00 +01:00
Rémi Verschelde
7045111f45
Merge pull request #34344 from YeldhamDev/slider_unused_cleanup
...
Remove unused theme elements in H/VSlider
2019-12-15 11:29:08 +01:00
Hugo Locurcio
324e02596f
Lower the maximum StyleBoxFlat corner detail to 20
...
This value should be sufficient even for very large corner radii.
This closes #34354 .
2019-12-14 23:35:01 +01:00
Mikolaj Kaczmarek
eced81e359
Fix- using cut in first line of a script file does not remove the line
2019-12-14 19:11:19 +01:00
Rémi Verschelde
abab4c0e25
Merge pull request #34300 from Acvarium/ragdoll-impuls
...
Added apply_impulse methods to PhysicalBone for ragdolls
2019-12-14 17:13:09 +01:00
Michael Alexsander
af67e97445
Remove unused theme elements in H/VSlider
2019-12-13 21:17:51 -03:00
Rémi Verschelde
f18cb89681
Merge pull request #34293 from jitspoe/collision-polygon-export-fix
...
Fix for collision polygon not working at all on exported builds.
2019-12-13 23:28:22 +01:00
Rémi Verschelde
9f68626fb2
doc: Sync classref with current source
...
Also apply clang-format.
2019-12-13 10:41:06 +01:00
Rémi Verschelde
2d69c20d2a
Merge pull request #34287 from Xrayez/tween-trans-ease-default
...
Provide default Tween values for transition and easing types
2019-12-13 09:42:57 +01:00
Rémi Verschelde
fdfe14c583
Merge pull request #34235 from timothyqiu/menu-scroll
...
Fixes long popup menu scroll behavior
2019-12-13 09:31:11 +01:00
Rémi Verschelde
1cd736951a
Merge pull request #34189 from aaronfranke/mesh-aabb
...
Expose Mesh get_aabb
2019-12-13 09:14:16 +01:00
Michael Alexsander
bd7cf87b8e
Make Button and co. take internal margins into account when clipping text
2019-12-12 18:46:04 -03:00
Rémi Verschelde
ee11b0eda7
Merge pull request #34298 from timothyqiu/lines-32736
...
Fixes crash after remove_line in RichTextLabel
2019-12-12 12:15:55 +01:00
Yuri Roubinsky
f3ea2a0267
Fixed crash if passing invalid image ref to TextureLayered
2019-12-12 14:15:39 +03:00
Vitalii Shmorhun
d3b162a9d4
Added apply_central_impulse to PhysicalBone class
2019-12-12 13:12:02 +02:00
Yuri Roubinsky
57441ab2c6
Added missed enum constant VisualShaderNodeTexture::SOURCE_PORT
2019-12-12 12:05:54 +03:00
Haoyu Qiu
776ae18d64
Fixes crash after remove_line in RichTextLabel
...
`ItemFrame` always have a line.
2019-12-12 16:35:50 +08:00
Rémi Verschelde
37d164e24e
CharFXTransform: Drop unnecessary get_value_or()
...
See https://github.com/godotengine/godot/pull/23658#issuecomment-562706669
The method was implemented back when Dictionary.get(key, default) did not
exist, but now that it does we do not need a custom method in CharFXTransform.
It's a new feature in 3.2, so does not break compat with 3.1.x.
2019-12-12 07:47:08 +01:00
jitspoe
2c894f3426
Fix for collision polygon not working at all on exported builds.
...
(cherry picked from commit a169e1406de77c3abfe670217f18bcf2c1468bae)
2019-12-12 00:13:44 -05:00
Andrii Doroshenko (Xrayez)
81db0e9274
Provide default Tween values for transition and easing types
...
TRANS_LINEAR and EASE_IN_OUT are chosen as defaults for
interpolation and follow methods.
2019-12-12 02:15:15 +02:00
Tomasz Chabora
77a8657633
Scroll ScrollContainer to focused children
2019-12-11 14:29:36 +01:00
Aaron Franke
a139104646
Expose Mesh get_aabb
2019-12-11 08:25:36 -05:00
Rémi Verschelde
30cf60bb89
Merge pull request #34259 from timothyqiu/validate-texture-32982
...
Fixes crash after set_piece_texture with invalid texture
2019-12-11 08:41:29 +01:00
Rémi Verschelde
ea865d0e7e
Merge pull request #34241 from timothyqiu/sync-fallbacks-size-32701
...
Fixes crash when using DynamicFont::set_font_data
2019-12-11 08:34:21 +01:00
Rémi Verschelde
74381c380b
Merge pull request #34240 from timothyqiu/invalid-shader-io-29985
...
Fixes crash when shader inputs/outputs is invalid string
2019-12-11 08:33:54 +01:00
Haoyu Qiu
5586103a94
Validates texture in set_piece_texture
2019-12-11 11:24:42 +08:00
Haoyu Qiu
5deb6497a1
Fixes crash when using DynamicFont::set_font_data
2019-12-10 21:26:42 +08:00
Haoyu Qiu
024c25426b
Fixes crash when shader inputs/outputs is invalid string
2019-12-10 17:04:18 +08:00
Haoyu Qiu
c29b8cf751
Fixes crash when using Theme::clear
2019-12-10 16:31:40 +08:00
Rémi Verschelde
2845e6a21a
Merge pull request #34040 from qarmin/unused_variable_more_precise_numbers
...
Removed unused variables, add some constants numbers
2019-12-10 08:25:31 +01:00
Rafał Mikrut
ed1c4bc77d
Removed unused variables, add some constants numbers
2019-12-10 05:13:02 +01:00
Haoyu Qiu
5bf8e1e426
Fixes long popup menu scroll behavior
...
Popup menus longer than the viewport have stange behaviors before this
fix:
* They always have one pixel outside the viewport.
* You can scroll down the long menu even if bottom outside screen and
top inside the screen. (Only menus one pixel above the screen is limited
to scroll down.)
2019-12-10 09:49:02 +08:00
Tomasz Chabora
6e1dc7b2fe
Update minimum size of SpinBox on theme change
2019-12-10 02:11:22 +01:00
Rémi Verschelde
d7b2940eb6
Merge pull request #34203 from bruvzg/ime_placeholder
...
Hide LineEdit placeholder if IME composition string is not empty.
2019-12-09 09:09:42 +01:00
allkhor
2c559feb92
Fixed strange behaviour of scroll in the ItemList.
2019-12-09 01:54:10 +06:00
bruvzg
4937b21ce5
Hide LineEdit placeholder if IME composition string is not empty.
2019-12-08 18:24:30 +02:00
Michael Alexsander
d057007541
Add spaces after commas and strip extra ones in *FileDialog filter menu
2019-12-06 22:40:59 -03:00
Michael Alexsander
80dcd4423a
Remove extra spaces from parenthesis in *FileDialog's filter menu
2019-12-06 07:31:42 -03:00
Tomasz Chabora
3b80eb06b7
Don't store index of root nodes
2019-12-05 01:18:48 +01:00
Rémi Verschelde
10bae7c05b
Merge pull request #33857 from nekomatata/polygon-2d-antialiasing
...
Fixed antialiased option for Polygon2D
2019-12-03 07:51:16 +01:00
Marcel Admiraal
750f343e4a
Ensure move_and_slide() is consistent between the 2D and 3D versions.
...
In the 3D version:
- Partially revert #20908 that was reverted in the 2D version as part
of #21653 . This ensures that the Vector returned is always perpendicular
to the surface collided with; and not the floor_normal Vector passed to
the function when on a floor.
- Include an update of the floor velocity before multiplying by the time
delta, which was added to the 2D version as part of commit 13a8014
.
In the 2D version:
- Use the Vector2.slide() function instead of Vector2.tangent() to adjust
the amount of motion the stop_on_slope undoes to ensure that it is in the
right direction. This is a implementation of the 3D approach from #30588 .
- Combine the !found_collision and motion == Vector2() checks for break.
- Other minor formating changes to make the functions look identical.
Also renamed some variables to align with their use.
2019-12-02 08:35:50 +01:00
PouleyKetchoupp
fdd99d4a7c
Properly remove joint when a physical bone is removed from the scene
...
It was triggering a warning in bullet followed with a crash in some cases.
WARNING: assert_no_constraints: A body with a joints is destroyed. Please check the implementation in order to destroy the joint before the body.
At: modules/bullet/rigid_body_bullet.cpp:465
2019-12-01 18:30:59 +01:00
Paulb23
b68703a35c
Fixed caret alignment with placeholder text
2019-12-01 14:27:39 +00:00
Paulb23
3df68b4fa6
Fixed LineEdit alignment when removing text or undo / redo
2019-12-01 13:54:09 +00:00
Rémi Verschelde
06fd6e6945
Merge pull request #34019 from nekomatata/inspector-transform-update
...
Update transform property in the inspector when changing translation/rotation/scale
2019-12-01 11:43:04 +01:00
PouleyKetchoupp
b44e0d60c7
Update transform property in the inspector when changing translation/rotation/scale
2019-11-30 17:16:19 +01:00
Rémi Verschelde
5bf04d16f0
Merge pull request #34011 from nekomatata/state-machine-travel-on-ready
...
Handle state machine travel before the start node is processed
2019-11-30 17:05:17 +01:00
Rémi Verschelde
fc034be033
Merge pull request #34014 from KoBeWi/like_2d_like_3d
...
Port Path2D changes to 3D
2019-11-30 14:50:53 +01:00
Tomasz Chabora
9276684e95
Port Path2D changes to 3D
2019-11-30 12:43:34 +01:00
Tomasz Chabora
7e6fa6c7a8
Remove unnecessary bounded_offset from PathFollow2D
2019-11-30 03:16:33 +01:00
PouleyKetchoupp
598d769804
Handle state machine travel before the start node is processed
...
This change allows travel() to be called on AnimationNodeStateMachinePlayback during _ready(), before the start node has been processed and the state machine is considered playing.
2019-11-30 02:41:40 +01:00
PouleyKetchoupp
dc13750189
Viewport environment is updated properly when set to own world
...
When own_world property is set, the viewport stores a unique resource for the world. With this change it keeps being updated from changes made to the world property instead of storing a default empty world with environment settings that can't be modified.
Fixes #23412
2019-11-29 11:50:10 +01:00
PouleyKetchoupp
e6ebc43d72
Fixed antialiased option for Polygon2D / Line2D
...
Polygon2D:
The property wasn't used anymore after switching from canvas_item_add_polygon() to canvas_item_add_triangle_array() for drawing.
Line2D:
Added the same property as for Polygon2D & fixed smooth line drawing to use indices correctly.
Fixes #26823
2019-11-28 22:57:27 +01:00
x2f
f085110b20
Added more details in Timer.start() error message.
2019-11-27 14:11:15 -05:00
Hugo Locurcio
639c9b3a35
Only display Environment sky rotation in degrees in the Inspector
...
This makes it consistent with Spatial.
2019-11-26 18:57:29 +01:00
Rémi Verschelde
966c68badd
Range: Remove min/max check added in #33908
...
This wasn't a very good idea as it puts too strict requirements on how
to set `min` and `max` values. For example, since the default min and
max are 0 and 100, this triggers an error:
```
set_min(256)
set_max(16384)
```
Since `min` will be higher than `max` temporarily. It can be worked
around by setting max first, but it's not really intuitive. I'll relax
the requirement as it's only a problem in `get_as_ratio`, which already
has a check.
Fix another min == max occurrence.
2019-11-26 12:11:21 +01:00
Rémi Verschelde
bfd5e09879
Range: Fix cases where max was set to or below min value
...
It will now raise an error whenever this happens so that we can fix
these situations. `max == min` is not allowed as it could lead to
divisions by zero in ratios, and `max < min` doesn't make much sense.
Fixes #33907 .
2019-11-26 10:25:41 +01:00
clayjohn
85dba0c09d
Fix bug where specularmode disabled is not cached
2019-11-25 07:36:07 -08:00
Rémi Verschelde
5ddce7a9df
Merge pull request #33869 from jbuck3/dialog-resize-bug
...
Fix WindowDialog moving when resized from the left/top edge
2019-11-25 14:38:33 +01:00
Rémi Verschelde
967cc2c014
Merge pull request #33862 from Faless/net/http_request_chunk_size
...
Add download_chunk_size property to HTTPRequest.
2019-11-25 14:29:59 +01:00
Rémi Verschelde
f6e5751767
Merge pull request #33860 from nekomatata/stylebox-preview-shadow
...
StyleBox preview adjusted to fit all drawn content
2019-11-25 14:25:39 +01:00
James Buck
5f451e0fb2
Fix WindowDialog moving when resized from the left/top edge
...
get_combined_minimum_size() must be used in order to consider the min size
specified by the user when determining how far the left/top edge is allowed
to move. Otherwise the dialog may think it can shrink further than it
should, causing the right/bottom edge to move when the rect size is fixed in
set_size().
2019-11-24 23:39:55 -06:00
Fabio Alessandrelli
ed19b4076e
Add download_chunk_size property to HTTPRequest.
...
This allows setting the `read_chunk_size` of the internal HTTPClient.
This is important to reduce the allocation overhead and number of file
writes when downloading large files, allowing for better download speed.
2019-11-24 19:32:20 +01:00
PouleyKetchoupp
1120de862d
StyleBox preview adjusted to fit all drawn content
...
This change allows StyleBox preview to take shadows and content margins into account to display how a whole panel would be rendered.
The preview control clips contents so that in any case it doesn't bleed on controls around.
Fixes #33801
2019-11-24 16:26:30 +01:00
PouleyKetchoupp
8830e53fe1
Fixed index out of size error in TextEdit when opening scripts
2019-11-24 10:48:04 +01:00
Yuri Roubinsky
7abb09ecf4
Makes Fresnel node in visual shaders to use default NORMAL/VIEW
2019-11-22 18:28:59 +03:00
Martin Capitanio
a7df198c94
Setting the node process priority should not trigger an error
...
Fixes #33749
This function can be called outside the scene tree.
2019-11-21 18:08:52 +01:00
Rémi Verschelde
2981915f19
Merge pull request #28526 from PtrMan/pr_bakeGi1
...
GIProbe::bake(): special handling of spatial
2019-11-21 09:28:44 +01:00
Rémi Verschelde
5ef5e6a7e4
Merge pull request #32274 from raphael10241024/fix_sync_physics_jitter
...
fix kinematicBody2D jitters when sync_to_physics is turned on
2019-11-21 08:53:24 +01:00
PtrMan
8695135691
GIProbe::bake: Remove check for ownership
...
Fixes #28508 .
2019-11-21 08:48:56 +01:00
Rémi Verschelde
083d088de3
Merge pull request #33583 from qarmin/fix_overflows_unitialized
...
Fix some overflows and unitialized variables
2019-11-20 21:31:12 +01:00
Rafał Mikrut
99d8626f4a
Fix some overflows and unitialized variables
2019-11-20 16:22:16 +01:00
Rémi Verschelde
60711e6738
Merge pull request #33750 from lupoDharkael/gradient
...
GradientEdit: Fix index crashes
2019-11-20 11:24:10 +01:00
lupoDharkael
268fe9dda5
GradientEdit: Fix index crashes
2019-11-19 22:05:37 +01:00
volzhs
cdae65c4a6
Rename External MSAA to AndroidVR MSAA on Viewport property
...
following up f392c4ea7a
2019-11-20 03:02:11 +09:00
Rémi Verschelde
0a96235b44
Merge pull request #33683 from clayjohn/material-texture-bug
...
Properly update texture when roughness/metallic set
2019-11-17 21:48:00 +01:00
Rémi Verschelde
cc025fc8e7
Merge pull request #33663 from Calinou/add-node-get-process-priority
...
Implement `Node::get_process_priority()` and its associated property
2019-11-17 21:43:28 +01:00
clayjohn
2bc6302607
Properly update texture when roughness/metallic set
2019-11-17 11:11:25 -08:00
Hugo Locurcio
ae76c62601
Implement `Node::get_process_priority()` and its associated property
...
This closes #33660 .
2019-11-17 17:48:50 +01:00
PouleyKetchoupp
2511f275b9
StyleBoxFlat doesn't draw content when width or height is zero
...
Causes unnecessary computations and drawing, and a division by zero when calculating uv coordinates.
This case happened with ScriptEditor's member overview (ItemList), initialized with a minimum width of 0.
Fixes #33634
2019-11-17 15:38:05 +01:00
Rémi Verschelde
c9782b0e97
Merge pull request #33645 from Calinou/graphedit-ctrl-toggle-snapping
...
Make holding Ctrl toggle snapping in GraphEdit
2019-11-16 22:54:17 +01:00
Rémi Verschelde
f392c4ea7a
Merge pull request #33658 from NeoSpark314/rename_ext_msaa
...
Rename External MSAA to AndroidVR MSAA
2019-11-16 22:52:51 +01:00
Holger Dammertz
1b9c2ec92e
Rename External MSAA to AndroidVR MSAA
...
A new external MSAA setting was introduced in https://github.com/godotengine/godot/pull/33518
that fixed issues on GLES2 and Oculus Mobile VR. To avoid misunderstanding it was suggested
by @BastiaanOlij and discussed on discord to rename it to AndroidVR.
2019-11-16 15:36:43 +01:00
Hugo Locurcio
72b31aafc4
Make holding Ctrl toggle snapping in GraphEdit
...
This affects the visual script and visual shader editors as well.
2019-11-15 19:34:44 +01:00
Rémi Verschelde
88a8f9ab36
Merge pull request #33557 from nekomatata/empty-tree-crash
...
Fixed crash when pressing down key on empty Tree
2019-11-12 08:38:43 +01:00
PouleyKetchoupp
47a4ca0022
Fixed crash when pressing down key on empty Tree
...
Fixes #33554
2019-11-12 08:15:29 +01:00
Rémi Verschelde
4b8feff594
Merge pull request #33518 from BastiaanOlij/msaa_ext_modes
...
Add MSAA mode for Quest
2019-11-11 11:46:50 +01:00
Bastiaan Olij
4e2343160c
Add special external MSAA modes for GLES2 Rift S/Quest and OpenXR optimisation
2019-11-11 21:02:06 +11:00
Rémi Verschelde
8ffc56c3ca
Merge pull request #29579 from mrcdk/fix_29575
...
Drop the physics mouseover whenever a input has been handled.
2019-11-11 09:37:27 +01:00
Rémi Verschelde
2143f46df2
Merge pull request #33516 from qarmin/small_fixes
...
Memory leaks and crash fixes
2019-11-10 10:17:19 +01:00
Rémi Verschelde
2fdeed1b4f
Merge pull request #33501 from akien-mga/camera-project_position-defval
...
Camera: Don't set default value for project_position
2019-11-10 10:11:16 +01:00
Rémi Verschelde
e711534c46
Merge pull request #33452 from Chaosus/fix_tilemap
...
Fix incorrect offset for old-format tilemaps
2019-11-10 10:10:29 +01:00
Rafał Mikrut
7dda9309f9
Memory leak and crash fixes
2019-11-10 09:49:13 +01:00
Rémi Verschelde
6c557b8bdf
Camera: Don't set default value for project_position
...
A z_depth of 0 returns the camera position, which is not really useful.
This also makes the API breakage from 3.1 clearer as 3.1 code will now
fail to compile, so users will have to adapt and use the new parameter.
For the reference, in 3.1, the z_depth was hardcoded to the near plane.
Closes #33493 .
2019-11-10 00:17:26 +01:00
PouleyKetchoupp
0fc0f0fc98
Fixed crash when using icon override in button
...
Missing change for PR #33495
2019-11-09 23:06:46 +01:00
PouleyKetchoupp
0c79bbeea3
Fixed crash when using icon override in button
...
Fixes #33457
2019-11-09 20:14:52 +01:00
Rémi Verschelde
7afa1a64ec
Merge pull request #33478 from nekomatata/particles-restart-glitch
...
Fixed Particles restart after visibility has been set to off and on again
2019-11-09 18:53:34 +01:00
Rémi Verschelde
52de63afc8
Merge pull request #33492 from Paulb23/issue_32229_fix_single_line_wrap
...
Fixed not being able to scroll ending wrapped line
2019-11-09 18:52:45 +01:00
Rémi Verschelde
0bfd06a911
Merge pull request #33465 from rxlecky/list-theme-resources-fix
...
Fix functions listing all theme resources
2019-11-09 18:23:49 +01:00
Paulb23
25cba699f0
Fixed not being able to scroll ending wrapped line
2019-11-09 16:45:44 +00:00
rxlecky
80b9c8e950
Fix functions listing all theme resources
...
Fix functions get_<resource>_list in Theme currently returning vector
of double-the-necessary size with the first half completely empty.
2019-11-09 11:56:55 +00:00
PouleyKetchoupp
530665197f
Fixed Particles restart after visibility has been set to off and on again
...
Make sure particles are processed during the same frame when visibility is set to on, in case they are still active from before and need to be restarted.
Fixed #33476
2019-11-09 09:51:17 +01:00
Rémi Verschelde
60d4909048
Merge pull request #33431 from Kaonnull/bugParticles2D_2
...
Fixed the particles2D prematurely animation ending
2019-11-09 07:40:07 +01:00
Simon Hardt
7e4ae4c503
Fixed prematurely ending animation of particles.
2019-11-08 21:28:19 +01:00
Yuri Roubinsky
26b933dc21
Fix incorrect offset for old-format tilemaps
2019-11-08 20:07:41 +03:00
Rémi Verschelde
3c0c8f26f9
Revert "Fixed TouchScreenButton::shape_centered having no effect"
...
This reverts commit 127c2d75ad
.
This was a misunderstanding as #32725 is not a bug but expected
behavior.
Reverts #32927 .
Supersedes and closes #33436 .
2019-11-08 10:54:36 +01:00
Rémi Verschelde
621dc7022f
Merge pull request #27742 from rxlecky/camera-replication
...
Game camera override
2019-11-08 10:02:18 +01:00
Rémi Verschelde
31f327a4a9
Merge pull request #33052 from KoBeWi/naughty_sliders
...
Fix analog input in sliders
2019-11-08 09:55:11 +01:00
Rémi Verschelde
2d3fcd0ff0
Merge pull request #30721 from NilsIrl/tab_key
...
Allow tab key to be used for shortcuts
2019-11-07 18:32:54 +01:00
Tomasz Chabora
a7b202ef18
Fix analog input in sliders
2019-11-07 16:39:14 +01:00
Rémi Verschelde
d596e169dc
Merge pull request #30588 from Demiu/patch-1
...
Fix 3D move_and_slide with stop_on_slope
2019-11-07 15:11:53 +01:00
Rémi Verschelde
77816fea8b
Merge pull request #32477 from aaronfranke/equal-approx-separate
...
Make is_equal_approx separate and make == exact again
2019-11-07 14:54:15 +01:00
codecustard
71e79af1f1
Fixes ItemList max column update
...
When setting the max column of an ItemList, the layout does not update until it is resized.
2019-11-06 12:26:51 -08:00
Yuri Roubinsky
213ecd65cd
Merge pull request #33341 from Chaosus/vs_fix_samplers
...
Fix invalid casting on visual shader sampler
2019-11-04 19:08:43 +03:00
Rémi Verschelde
6dca64140c
Merge pull request #33330 from nekomatata/fix-label-autowrap-size
...
Fixed cases where labels with autowrap can overflow the editor ui
2019-11-04 16:57:53 +01:00
Yuri Roubinsky
f5ffc1aedc
Fix invalid casting on visual shader sampler
2019-11-04 18:50:33 +03:00
Rémi Verschelde
83409bac0e
Merge pull request #33282 from Chaosus/vs_texture_inputs
...
Added sampler inputs for visual shaders
2019-11-04 11:32:04 +01:00
PouleyKetchoupp
13c88878c4
Fixed cases where labels with autowrap can overflow the editor ui
...
Fixes #33155
2019-11-04 10:12:36 +01:00
Rémi Verschelde
e684df08fc
Merge pull request #33286 from groud/fix_tree_edit_rect
...
Fixes the edit rect in TreeItems
2019-11-03 17:35:01 +01:00
Gilles Roudiere
8eb2eeae0f
Fixes the edit rect in TreeItems
2019-11-03 16:08:07 +01:00
Yuri Roubinsky
8243afb0e9
Added sampler inputs for visual shaders
2019-11-03 17:59:15 +03:00
Rémi Verschelde
9381a80b24
Merge pull request #33277 from clayjohn/update_material
...
Force update SpatialMaterial when texture set and always use ALBEDO
2019-11-03 07:51:22 +01:00
clayjohn
21e1f1df0f
Force update SpatialMaterial when texture set and always use ALBEDO
2019-11-02 17:42:36 -07:00
Michael Alexsander
6348dfa948
Make the editor dimming even more smarter
2019-11-02 20:25:26 -03:00
Paulb23
362d38ea67
Update connection info on script validation rather then saved copy
2019-11-02 14:41:59 +00:00
Rémi Verschelde
af4fd9de9c
Merge pull request #33238 from qarmin/other_fixes
...
Fix some crashes, overflows and using variables without values
2019-11-01 22:12:47 +01:00
Rémi Verschelde
5160d4f5ba
Merge pull request #33233 from hilfazer/dollar-quoted-autocomplete
...
$ autocompletion keeps quotation
2019-11-01 16:52:13 +01:00
Rafał Mikrut
9ddb3265e1
Fix some crashes, overflows and using variables without values
2019-11-01 16:16:31 +01:00
hilfazer
c394ef7410
$ autocompletion keeps quotation
2019-11-01 14:52:13 +01:00
Rémi Verschelde
a49c8d4a2b
Merge pull request #33202 from nekomatata/text-edit-search-usability
...
Improved TextEdit search usability & documentation
2019-11-01 14:10:00 +01:00
Rémi Verschelde
83d393a71a
Merge pull request #33209 from Jummit/soft-body-tutorial
...
Link SoftBody tutorial in docs
2019-11-01 14:04:50 +01:00
Jummit
ce61bff759
link SoftBody tutorial in docs and add ray_pickable property
2019-11-01 08:51:25 +01:00
Michael Alexsander
36c4fd8935
Make the editor dimming smarter
2019-10-31 16:58:53 -03:00
PouleyKetchoupp
d29c8ab81b
Improved TextEdit search usability & documentation
2019-10-31 12:35:23 +01:00
Rémi Verschelde
9e1be8f8aa
Merge pull request #32934 from ajweeks/fix-scale-origin
...
Fix 2D scale gizmo placement
2019-10-30 12:04:10 +01:00
Rémi Verschelde
948a2a03d2
Merge pull request #33091 from MCrafterzz/fix10567
...
Improved project creation UX
2019-10-29 13:27:41 +01:00
Rémi Verschelde
0641acc576
Merge pull request #33147 from mikkac/33135
...
Fixed disconnecting not connected signal
2019-10-29 12:01:01 +01:00
MCrafterzz
336e61b36a
Improved UX of selecting directories in (Editor)FileDialog by hiding unused gui elements and moving the drive selection
2019-10-29 11:36:09 +01:00
Yuri Roubinsky
9086e7330f
Removes translations from generated visual shader code
2019-10-29 09:26:05 +03:00
Mikolaj Kaczmarek
a245bab78d
Fixed disconnecting not connected signal
2019-10-29 00:53:48 +01:00
Rémi Verschelde
aaa9751de3
Merge pull request #33120 from YeldhamDev/popup_dialog_panel_style
...
Add "panel" style to PopupDialog
2019-10-28 12:54:03 +01:00
Rémi Verschelde
63c5cd7eb8
Merge pull request #33104 from qarmin/fix_some_crashes
...
Fix some crashes and using null pointers
2019-10-28 08:37:59 +01:00
Rémi Verschelde
826ffc26c9
Merge pull request #33097 from clayjohn/GLES2-HTML-sampler_limit
...
Fixed using compressed textures and add work around for firefox webgl mesa sampler limit
2019-10-28 08:19:37 +01:00
Rémi Verschelde
0cae264d79
Merge pull request #33119 from creikey/fix-quote-malfunction
...
Remove duplicate quote in displayed quote type
2019-10-28 08:08:38 +01:00
Rafał Mikrut
e53e1c566a
Fix some crashes and using null pointers
2019-10-28 08:07:29 +01:00
clayjohn
7b3d098b2b
Fixed using compressed textures and add work around for firefox webgl mesa sampler limit
2019-10-27 23:53:52 -07:00
Michael Alexsander
d92123ed97
Add "panel" style to PopupDialog
2019-10-27 19:45:03 -03:00
Cameron Reikes
67ab03e245
Remove duplicate quote in displayed quote type
...
- fixes #32688
- fixes #32593
2019-10-27 15:21:25 -07:00
Rémi Verschelde
2751cea0d4
Merge pull request #33066 from Tabas32/fix_indentation
...
Fixed indenting issue with comment at end of line
2019-10-27 13:42:53 +01:00
Paulb23
2e2a049d3c
Improve performance of connection info in the script editor
2019-10-27 11:07:19 +00:00
Rémi Verschelde
9e572b5bac
Merge pull request #33032 from Calinou/filedialog-scroll-to-top
...
Scroll back to the top after opening a directory in FileDialog
2019-10-27 10:06:34 +01:00
Rémi Verschelde
2416fbb4e2
Merge pull request #31943 from codecustard/Fixes_invalid_frames_on_reverse_anim
...
Fixes Reverse Animation Starting on First Frame
2019-10-27 09:55:44 +01:00
Rémi Verschelde
3eb8bd08ec
Merge pull request #32657 from ptrojahn/lines
...
Fix draw_rect
2019-10-26 23:09:24 +02:00
Paulb23
df0c8386a9
Fix text minimap crash when last line is folded
2019-10-26 13:37:25 +01:00
Rémi Verschelde
c39238c7d2
Merge pull request #32870 from bergmannf/27850_rtl_bold_italic
...
Add push_* methods for fonts in rich_text_label
2019-10-25 23:17:59 +02:00
Rémi Verschelde
6ce35e176f
Merge pull request #33065 from Calinou/textedit-fix-background-color
...
Fix the default TextEdit background color
2019-10-25 16:35:42 +02:00
Marian
3322d19cb3
Just initialization, needed by compiler
2019-10-25 16:14:24 +02:00
Marian
616f02e905
Fixed indenting issue with comment at end of line
2019-10-25 15:01:43 +02:00
Hugo Locurcio
c5279432fd
Fix the default TextEdit background color
...
This closes #32724 .
2019-10-25 14:51:59 +02:00
Rémi Verschelde
96f92e5bfa
Merge pull request #32951 from Klowner/tween-follow-null-bug
...
fix Tween follow_property finishing with null
2019-10-25 13:40:55 +02:00
Rémi Verschelde
2869c13ba2
Merge pull request #33046 from zatherz/master
...
Don't terminate search if begin_key doesn't fit (Fixes #33034 )
2019-10-25 08:37:41 +02:00
Rémi Verschelde
66ccdebbb3
Merge pull request #33045 from nekomatata/cpu-particle-uninitialized-member
...
Fixed emitting not initialized correctly in cpu particles 2d/3d
2019-10-25 07:24:36 +02:00
Zatherz
72d2248276
Don't terminate search if begin_key doesn't fit
...
Previously this code would continue onto the next iteration of the loop if the line was smaller in size than begin_key, meaning that a situation where begin_key.length() > end_key.length() would cause weird behavior with newlines. Now both the checks for begin_key and end_key are in their own condition and do not skip the entire iteration if they can't be found.
2019-10-24 21:59:02 +02:00
PouleyKetchoupp
1e0f37a70f
Fixed emitting not initialized correctly in cpu particles 2d/3d
...
Fixes uninitialized variable caused by PR #32921
2019-10-24 21:38:01 +02:00
volzhs
63e6b1ecce
Fix rendering tooltip
2019-10-24 22:48:20 +09:00
Hugo Locurcio
c3b9319d78
Scroll back to the top after opening a directory in FileDialog
...
This also changes the behavior in EditorFileDialog.
This closes #26041 .
2019-10-24 15:40:47 +02:00
SeleckyErik
61bda112bd
Refactor VideoPlayer and VideoStream
...
VideoStream:
- Fix const correctenss
VideoPlayer:
- Remove unused member variable last_frame
- Move _mix_audios function definition to source file
- Fix function parameter naming to match p_ convention
- Fix const correctness
- Add null checking
2019-10-24 01:35:47 +01:00
Mark Riedesel
d0b528e4a8
Fix Tween follow_property finishing with null
2019-10-23 16:38:43 -04:00
Rémi Verschelde
2408e214a7
Merge pull request #33006 from Chaosus/fix_billboard_bug
...
Allows change Sprite3D scale if Billboard mode is enabled
2019-10-23 21:41:19 +02:00
Yuri Roubinsky
fa9148f343
Allows change Sprite3D scale if Billboard mode is enabled
2019-10-23 14:32:59 +03:00
Rémi Verschelde
8c3a5057c5
Merge pull request #32998 from rxlecky/theme-refactor
...
Theme code refactoring
2019-10-23 10:12:56 +02:00
Rémi Verschelde
b1c6ba9b24
Merge pull request #32972 from codecustard/fix_spinbox_not_releasingfocus
...
Fixes spinbox not releasing focus on value change
2019-10-23 07:43:47 +02:00
Rémi Verschelde
19fa163d9a
Merge pull request #32992 from KoBeWi/AUTOVECTORZ
...
Auto-increment frame_coords when keying
2019-10-23 07:42:52 +02:00
Eoin O'Neill
601b216605
Shadows Now Properly Translate by RichTextEffect offset.
...
Bugfix 32981.
2019-10-22 22:15:36 -07:00
SeleckyErik
fa59defb53
Theme code refactoring
...
- Move GDScript-exposed function definitions from header to source file
- Add null check to functions taking list pointers as parameters
- Call clear() in copy_theme() if null is passed
2019-10-23 03:08:40 +01:00
Erik
8b0546d93b
Implement game camera override
...
Implemented uniform API in Viewport class to override 2D and/or
3D camera.
Added buttons in 2D and 3D editor viewport toolbars that override
the running game camera transform with the editor viewport camera
transform. Implemented via remote debugger protocol and camera
override API.
Removed LiveEditFuncs function pointers from ScriptDebugger class.
Since the debugger got access to the SceneTree instance (if one
exists), there is no need to store the function pointers. The live
edit functions in SceneTree are used directly instead. Also removed
the static version of live edit functions in SceneTree for the same
reason. This reduced the SceneTree -> Debugger coupling too since
the function pointers don't need to be set from SceneTree anymore.
Moved script_debugger_remote.h/cpp from 'core/' to 'scene/debugger/'.
This is because the remote debugger is now using SceneTree directly
and 'core/' classes should not depend on 'scene/' classes.
2019-10-23 02:51:32 +01:00
Rémi Verschelde
72dfa67dd3
Merge pull request #32924 from ajweeks/add-ruler-arcs
...
Draw arcs to indicate angles being measured by ruler
2019-10-22 22:44:50 +02:00
Rémi Verschelde
78848bbfea
Merge pull request #32796 from Paulb23/set_text_caret
...
Changed `set_text` to place caret at start of the text.
2019-10-22 22:44:12 +02:00
Rémi Verschelde
9f28803927
Merge pull request #32940 from nekomatata/text-edit-clear-colors
...
TextEdit syntax highlighting fixes
2019-10-22 20:40:20 +02:00
Rémi Verschelde
b365dc3441
Merge pull request #32965 from volzhs/richtextlabel-scroll-active
...
Fix scrolling RichTextLabel with scroll_active=false
2019-10-22 20:39:12 +02:00
Tomasz Chabora
6c0ef9f729
Auto-increment frame_coords when keying
2019-10-22 20:12:55 +02:00
Rémi Verschelde
aafd5dd5c1
Merge pull request #32989 from nekomatata/fix-crash-rename-state
...
Fixed crashes when renaming a state in AnimationNodeStateMachineEditor
2019-10-22 19:43:36 +02:00
AJ Weeks
fb7a4ce63e
Fix canvas scale gizmo placement
2019-10-22 18:17:54 +01:00
PouleyKetchoupp
e3d4b96ba7
Fixed crashes when renaming a state in AnimationNodeStateMachineEditor
...
Recursive calls to Control::_modal_stack_remove could cause a crash because of the list element not being invalidated while being erased from the list.
It happens in the state machine case by hiding a line edit control when it loses focus.
Fixes #23808
2019-10-22 16:28:11 +02:00
Rémi Verschelde
4ecc30cc5e
Merge pull request #32927 from Muller-Castro/ShapeCenteredFix
...
Fixed TouchScreenButton::shape_centered having no effect
2019-10-22 15:53:29 +02:00
Rémi Verschelde
1be39232b4
Merge pull request #32842 from LikeLakers2/animation-idx-to-track-idx
...
Changes the name of all parameters referring to track indices within Animation, to `track_idx`
2019-10-22 14:55:21 +02:00
Rémi Verschelde
97a4fe79fb
Merge pull request #32902 from nekomatata/auto-indent-bracket-fix
...
Auto-indent after opening bracket and parenthesis in the script editor
2019-10-22 14:30:16 +02:00
Rémi Verschelde
17a7da3b85
Merge pull request #32921 from nekomatata/fix-cpu-particle-delay
...
Fixed delay when CPUParticles & CPUParticles2D start being emitted
2019-10-22 14:28:04 +02:00
Rémi Verschelde
2906cef290
Merge pull request #32922 from nekomatata/fix-scene-timer-yield-leak
...
Fixed leak on exit when using yield with SceneTreeTimer
2019-10-22 14:17:58 +02:00
Rémi Verschelde
b67537b14b
Merge pull request #32864 from nekomatata/rich-text-image-size
...
Support for resized images in RichTextLabel
2019-10-22 13:46:11 +02:00
Rémi Verschelde
bd23cce055
Merge pull request #32896 from nekomatata/joint-reset-collision
...
Properly reset collision exception when releasing Joint2D
2019-10-22 12:52:12 +02:00
Rémi Verschelde
3aa5b54330
Merge pull request #32889 from nekomatata/node-update-config-warning
...
Expose Node::update_configuration_warning() to scripts
2019-10-22 12:42:09 +02:00
Rémi Verschelde
1e0fb0dc14
Merge pull request #32833 from nekomatata/label-autowrap-fix
...
Allow Label autowrap to cut words when they exceed line width
2019-10-22 12:29:49 +02:00
Emmanuel Barroga
53d6d37fcf
Fixes spinbox not releasing focus on value change
...
Trying to release focus of the spinbox's lineedit would not work when done in the "value_changed" callback. The reason is because the "value_change" signal is called first, then the "get_focus" method is called next. This causes the spinbox to get_focus after you try to release focus within the "value_changed" callback.
To resolve this, spinbox should get focus first and then emit "value_changed".
2019-10-21 16:42:17 -07:00
volzhs
3e738b1798
Fix scrolling RichTextLabel with scroll_active=false
2019-10-22 06:05:10 +09:00
Rémi Verschelde
4a726998bd
Merge pull request #32865 from rodolforg/fix_32711-lookat-scaling-again
...
Spatial::look_at wrong re-scaling
2019-10-21 16:05:21 +02:00
Rémi Verschelde
f5dd4d574f
Merge pull request #32863 from JFonS/navmesh_from_group
...
Add option to create navmesh from objects in group
2019-10-21 16:02:38 +02:00
Rémi Verschelde
b6865f2f79
Merge pull request #32857 from madmiraal/fix-072e403
...
Correct change made to joints_2d.cpp by 072e403
.
2019-10-21 15:53:47 +02:00
PouleyKetchoupp
4247c21cb0
TextEdit syntax highlighting fixes
...
- Fixed visual update when using add_keyword_color(), add_color_region(), clear_colors() in scripts
- More accurate description for clear_colors() in TextEdit documentation
2019-10-20 17:40:09 +02:00
Paulb23
ee94081b4a
Fixed -1 minimap index when smooth scrolling is enabled
2019-10-20 13:27:53 +01:00
PouleyKetchoupp
5bf516a062
Fixed delay when CPUParticles & CPUParticles2D start being emitted
...
Particles were processed only on the next frame after the emission started, causing a one frame delay in rendering. Now the first process cycle is started during the same frame, which makes them consistent with Particles & Particles2D.
Fixes #32890
2019-10-20 09:50:00 +02:00
Muller-Castro
127c2d75ad
Fixed TouchScreenButton::shape_centered having no effect
...
The problem was that the shape_centered depended on TouchScreenButton::texture having a Texture
2019-10-19 18:16:47 -03:00
AJ Weeks
59d2c71227
Add arcs to indicate angle being measured by ruler
2019-10-19 19:45:56 +01:00
PouleyKetchoupp
1a9801f700
Fixed leak on exit when using yield with SceneTreeTimer
...
Use case:
yield(get_tree().create_timer(2), "timeout")
Some resources were never released because the SceneTreeTimer was keeping a reference to GDScriptFunctionState in its signal connections, while GDScriptFunctionState was holding a reference to the SceneTreeTimer object. Cleaning all signal connections on game exit fixes the issue.
Fixes #29946
2019-10-19 18:45:17 +02:00
PouleyKetchoupp
74d7cbf920
Auto-indent after opening bracket and parenthesis in the script editor
...
This change makes auto-indent work the same way as for curly brackets, so '[', '(', '{' all act the same.
Fixes #32897
2019-10-18 11:02:05 +02:00
PouleyKetchoupp
0de76cc647
Properly reset collision exception when releasing Joint2D
...
Now using joint_disable_collisions_between_bodies() to reset the exception, because body_remove_collision_exception() was doing only a part of the work.
Fixes #32733
2019-10-17 19:22:59 +02:00
PouleyKetchoupp
139c0a4afe
Expose Node::update_configuration_warning() to scripts
...
This method can be used to generate custom node warnings by script.
Node::_get_configuration_warning was already exposed to generate custom warnings, but it wasn't fully usable without being able to notify the scene tree when the warning needs to appear or change.
2019-10-17 12:20:35 +02:00
Florian Bergmann
47000f8860
Add push_* methods for fonts in rich_text_label
...
Provides method to push different font styles.
If no fonts are set nothing will happen, when the methods are used.
Fixes #27850
2019-10-16 15:22:56 +02:00
Emmanuel Barroga
94a00cd9c7
Fixes Reverse Animation Starting on First Frame
...
When playing an animation in reverse, the animation initially starts on frame 0. If it loops, it'll play normally by going to the last frame of the animation, but if it does not... it prematurely stops, since it is already on the last frame (for reversed animation) by starting on frame 0.
2019-10-16 04:26:26 -07:00
jfons
298bd3f88a
Add option to create navmesh from objects in group
...
Adds a new NavigationMesh property to select which objects will be taken
into account for the generation.
By default it will use all the NavigationMeshInstance children to keep
compatibility. The new modes allow to build the NavigationMesh from
all the nodes belonging to a specific group, and optionally include
their children too.
2019-10-16 12:01:10 +02:00
PouleyKetchoupp
9f8ffd4146
Support for resized images in RichTextLabel
...
BBCode Tag:
[img=<width>x<height>]{path}[/img]
2019-10-16 12:00:15 +02:00
PouleyKetchoupp
8df330bacd
Allow Label autowrap to cut words when they exceed line width
...
Fixes #30832
2019-10-16 09:57:44 +02:00
Marcel Admiraal
f34deabd10
Correct change made to joints_2d.cpp by 072e403
.
2019-10-15 17:55:35 +02:00
Rémi Verschelde
44293db446
Merge pull request #32820 from qarmin/small_fixes_static_analyzer
...
Small fixes to redundand code, copy paste bugs
2019-10-15 09:54:58 +02:00
LikeLakers2
68552d9a4b
Changes the name of all parameters referring to track indices within Animation, to "track_idx"
2019-10-14 18:08:41 -04:00
Aaron Franke
aeb7075628
Replace vector == and is_zero_approx(distance) with is_equal_approx
...
Internal changes only
2019-10-14 16:47:42 -04:00
Yuri Roubinsky
0a0c3f7fe0
Fix color of FileDialog icons
2019-10-14 16:23:56 +03:00
qarmin
616ab4fac2
Small fixes to redundand code, copy paste bugs
2019-10-14 11:40:55 +02:00
Paulb23
d579d2bf1d
Fix undo / redo scrollbar calulations
2019-10-13 15:34:28 +01:00
Paulb23
aea0761b25
Place caret at 0,0 when setting text not at the end
2019-10-13 15:29:20 +01:00
Gilles Roudiere
b27ec4aea7
Fixes Sprite frame_coords
2019-10-13 08:44:44 +02:00
Hugo Locurcio
c8a8be6dd1
Optimize images losslessly using `oxipng -o6 --strip all --zopfli`
2019-10-12 23:23:33 +02:00
Rémi Verschelde
062650860a
Merge pull request #32731 from codecustard/fix_concaveshape_not_selecting
...
Fixes concaveshape not selecting in viewport
2019-10-11 14:55:47 +02:00
Emmanuel Barroga
29690f6aec
Fixes concaveshape not selecting in viewport
...
This PR resolves the issue of ConcaveShapes not being selectable in the Viewport.
2019-10-11 03:42:36 -07:00
Rémi Verschelde
aad4d8648b
Merge pull request #32742 from Chaosus/fix_samplers
...
Added sampler port to CubeMap, fixed parsing in expresssions
2019-10-11 11:25:00 +02:00
Paul Trojahn
bdaedb601c
Fix draw_rect
...
OpenGL uses the diamond exit rule to rasterize lines. If we don't shift
the points down and to the right by 0.5, the line can sometimes miss a
pixel when it shouldn't. The final fragment of a line isn't drawn. By
drawing the lines clockwise, we can avoid a missing pixel in the rectangle.
See section 3.4.1 in the OpenGL 1.5 specification.
Fixes #32279
2019-10-11 10:26:53 +02:00
Yuri Roubinsky
b217babca2
[VShaders] Added sampler port to CubeMap, fixed parsing in expresssion s
2019-10-11 10:36:04 +03:00
Rémi Verschelde
be0da31f7a
Merge pull request #32628 from Paulb23/issue_32609_set_text_scrollbar
...
Fixed inserting text at caret not updating scrollbar size
2019-10-11 08:24:13 +02:00
Rodolfo Ribeiro Gomes
58e5c650d7
fix #32711 : Spatial::look_at wrong re-scaling
2019-10-11 02:22:02 -03:00
Rémi Verschelde
2c84a9651f
Merge pull request #32707 from Chaosus/vs_lod_textures
...
Uses LoD even if UV slot is not used in visual shader textures
2019-10-10 12:37:12 +02:00
Rémi Verschelde
cfc26f53d6
Merge pull request #32705 from qarmin/validate_array_index_stylebox
...
Validate array indexes in StyleBox
2019-10-10 12:14:09 +02:00
Yuri Roubinsky
d2fd2f32fc
Uses LoD even if UV slot is not used in visual shader textures
2019-10-10 13:11:04 +03:00
qarmin
00b86b29f1
Validate array indexes in StyleBox
2019-10-10 11:48:58 +02:00
Yuri Roubinsky
0ec352213d
Removed "rebuild" function from public interface of VisualShader
2019-10-10 12:15:55 +03:00
Rémi Verschelde
220ee9281f
Merge pull request #32674 from Chaosus/vs_fix_cubemaps
...
Makes cubemaps to be works in visual shaders
2019-10-10 10:16:50 +02:00
Marcel Admiraal
a8836ba28d
Remove dependency on the editor directory being in the build's include path.
...
- Add or remove the necessary subdirectorires to the includes to remove
dependency on the editor directory being in the build's include path.
- Ensure includes in modified files conform to style guideline.
- Remove editor from the build include path.
2019-10-10 08:57:00 +02:00
Yuri Roubinsky
fec8da3c5e
Makes cube maps to be works in visual shaders
2019-10-09 12:13:53 +03:00
Rémi Verschelde
2d6b9f5034
Merge pull request #32649 from qarmin/another_crash_fix_for_tile_map
...
Fix crash in TileMap::update_cell_bitmask
2019-10-08 22:52:29 +02:00
Rémi Verschelde
f46bf8e721
Merge pull request #32411 from YeldhamDev/fix_grid_overflow
...
Fix GridContainer's children overflowing it when not all slots of a row are occupied
2019-10-08 17:05:32 +02:00
Rémi Verschelde
d34c0571d0
Merge pull request #32559 from YeldhamDev/tooltip_scale
...
Make tooltips have the same scale as their Controls
2019-10-08 16:33:53 +02:00
Rémi Verschelde
45577e4233
Merge pull request #32571 from DavidSichma/rect_flip
...
Correctly flip texture src region
2019-10-08 16:15:45 +02:00
Rémi Verschelde
e2f1b30565
Merge pull request #32618 from nekomatata/sprite-to-polygon
...
Sprite to polygon conversion improvements
2019-10-08 16:13:38 +02:00
qarmin
bb685147f9
Fix crash in TileMap::update_cell_bitmask
2019-10-08 15:46:38 +02:00
Rémi Verschelde
58dd5d0c78
PopupMenu: Fix missing text/xl_text when using add_shortcut
...
Use macros to ensure that `text`, `xl_text` and `id` are always set
using the same logic.
Fixes #25519 .
Also fixes up #26914 when `p_id == -1` handling was only added for a
couple methods instead of all of them.
2019-10-08 09:33:26 +02:00
Rémi Verschelde
63a19df5e6
PopupMenu: Reorder add_* methods in more natural order
...
Also adds `add_icon_radio_check_shortcut` matching `add_icon_radio_check_item`,
binds them for scripting languages, and binds `add_multistate_item`.
2019-10-08 09:32:01 +02:00
Rémi Verschelde
a65019f41a
Merge pull request #32606 from cbolgiano/bugfix/32294
...
Fixes Default Angular Damp in Project Settings Disallows Fractional Input #32294
2019-10-08 06:34:25 +02:00
devbox
f5bb9a98dc
32294: Changed the default_angular_damp value to a float.
...
32294: Added hints for both 2d/3d linear/angular.
32294: Added hints for both 2d/3d linear/angular.
2019-10-07 18:15:20 -04:00
Paulb23
e5b18cea63
Fixed inserting text at caret not updating scrollbar size
2019-10-07 19:17:32 +01:00
Paulb23
6025a76c78
Fixed drawing the caret at eol when at eol is not visible
2019-10-07 17:24:58 +01:00
PouleyKetchoupp
1e301479da
Sprite to polygon conversion improvements
...
- No reduced Rect in march square algorithm, it was causing inconsistent cases near the borders and made the outline less accurate
- Ignore invalid generated polygons (under 3 points) to avoid unnecessary errors and crashes
- Error popup only when no polygon could be generated at all
- Added option to shrink pixels (to get rid of small separate islands)
- Fixed polygon preview (lines were sometimes not showing along the borders)
Fixes #32564 , #29267
2019-10-07 13:19:30 +02:00
Rémi Verschelde
f84bf7e8a8
Merge pull request #32351 from nekomatata/texture-rect-size-update
...
Update TextureRect when its Texture is modified directly
2019-10-07 08:57:17 +02:00
dankan1890
b469ff17e2
Added missing bind_method to TreeItem::get_custom_color().
...
Fix #32595
2019-10-06 22:07:50 +02:00
Rémi Verschelde
c8f6661459
Merge pull request #32569 from qarmin/fix_control_crash
...
Fix crash in Control functions
2019-10-06 20:50:18 +02:00
qarmin
17344337a9
Fix crash in Control functions
2019-10-05 19:17:07 +02:00
PouleyKetchoupp
c7834ee566
Update TextureRect and Sprite when their Texture is modified directly.
...
Modified Sprite to use "changed" signal instead of _changed_callback to make it work when tool is disabled (change receptors are editor only).
Fixes #32349
2019-10-05 17:32:46 +02:00
David Sichma
f73e1fae37
Correctly flip texture src region
2019-10-05 16:51:06 +02:00
Rémi Verschelde
0a4065e514
Merge pull request #32563 from qarmin/fix_tileset_crash
...
Fix crash in TileMap::fix_invalid_tiles
2019-10-05 11:54:37 +02:00
qarmin
f435a6f0b6
Fix crash in TileMap::fix_invalid_tiles
2019-10-05 11:37:38 +02:00
Michael Alexsander
82863b32de
Make tooltips have the same scale as their Controls
2019-10-05 02:04:40 -03:00
Rémi Verschelde
ee611d149b
Merge pull request #22834 from lupoDharkael/recursive-item
...
Add call_recursive method to TreeItem
2019-10-04 15:32:14 +02:00
Yuri Roubinsky
b11d15d5c3
Makes Texture and TextureUniform in visual shaders to use UV by default
2019-10-03 16:59:49 +03:00
Rémi Verschelde
ff9bbf1818
Merge pull request #32490 from mrcdk/tree_scroll_scrollcontainer
...
Handle scrolling correctly in Tree controls inside ScrollContainers
2019-10-03 08:39:38 +02:00
Hugo Locurcio
379e1789dd
Remove unused stb_truetype-based DynamicFont implementation
...
The DynamicFont implementation currently in use is based on
FreeType, which provides much better visual quality.
This old implementation wasn't exposed anywhere, so this shouldn't
break compatibility.
This decreases binary sizes by a few kilobytes.
2019-10-03 01:19:02 +02:00
Yuri Roubinsky
f9e9cc94cd
Merge pull request #32494 from Chaosus/vs_fix_globals
...
Fix global code in visual shaders if two or more custom nodes are used
2019-10-02 17:28:34 +03:00
Yuri Roubinsky
31ada3b685
Fix global code in visual shaders if two or more custom nodes are used
2019-10-02 17:13:19 +03:00
MrCdK
03d6291aaf
Handle scrolling correctly in Tree controls inside ScrollContainers
2019-10-02 12:34:04 +02:00
Rémi Verschelde
42fca4ba27
Merge pull request #32485 from Calinou/macros-add-semicolons
...
Add missing semicolons to `BIND_ENUM_CONSTANT` macro uses
2019-10-02 11:53:19 +02:00
Hugo Locurcio
aba157865a
Add missing semicolons to `BIND_ENUM_CONSTANT` macro uses
2019-10-02 09:57:12 +02:00
Rémi Verschelde
9327eb226a
Revert "Fixes CPUParticles2D not making use of AtlasTextures"
2019-10-02 09:44:06 +02:00
Rémi Verschelde
09bf1b35c0
Merge pull request #32459 from bitstopper/master
...
Fixes CPUParticles2D not making use of AtlasTextures
2019-10-02 08:48:19 +02:00
clayjohn
afaa68628a
updated defaults and documentation for GLES2 glow
2019-10-01 07:55:04 -07:00
Rémi Verschelde
871a9d5d56
Merge pull request #32467 from Ternvein/grid-container-min-size-fix
...
Fix GridContainer children visibility check for min size evaluation
2019-10-01 15:04:11 +02:00
ternvein
848eeafe29
FIX: GridContainer children visibility check for min size evaluation
2019-10-01 16:13:06 +04:00
bitstopper
9f21fcf879
Fixes CPUParticles2D not making use of AtlasTextures
...
Fixes CPUParticles2D not making use of AtlasTextures #2
2019-10-01 14:04:37 +02:00
Rémi Verschelde
b60fdb21e9
Merge pull request #32461 from Chaosus/vs_sampler_type
...
Added sampler port type for visual shaders
2019-10-01 13:59:27 +02:00
Chaosus
f14bcd8cc5
Added sampler port type for visual shaders
2019-10-01 13:20:08 +03:00
Rémi Verschelde
e695ac6e7b
Merge pull request #32364 from Relintai/resizeable-texture-progress
...
TextureProgress: nine_patch_stretch property -> enable stretching for radial fills.
2019-10-01 10:34:21 +02:00
Rémi Verschelde
d735ce80b9
Merge pull request #32440 from Ternvein/control-translation-fix
...
Fix for WindowDialog and Tabs controls translation
2019-10-01 10:27:10 +02:00
Rémi Verschelde
fed1d5151e
Merge pull request #32450 from soumyalahiri/rotation-adjustment
...
Altered rotation_degrees range
2019-10-01 10:25:37 +02:00
Rémi Verschelde
1f40117caa
Merge pull request #31845 from clayjohn/GLES2-BCS
...
Implement DOF blur, Glow, and BCS in GLES2
2019-10-01 09:21:31 +02:00
Rémi Verschelde
7e3dcf54ea
Merge pull request #30919 from nekomatata/timer-update-transform-fix
...
Fix GPU particle transform delay when created on SceneTree timer timeout
2019-10-01 06:54:09 +02:00
Relintai
108068ab41
Make TextureProgress's nine_patch_stretch property to enable stretching for radial fills.
2019-09-30 20:58:29 +02:00
Soumya Lahiri
a1b2364dba
Altered rotation_degrees range
2019-09-30 20:43:57 +05:30
clayjohn
82f63633d1
Implement DOF blur, Glow, and BCS in GLES2
2019-09-30 08:04:31 -07:00
ternvein
118940e7c5
FIX: Tabs text translation
2019-09-30 13:56:20 +04:00
ternvein
efc8314516
FIX: WindowDialog title translation
2019-09-30 13:07:47 +04:00
Rémi Verschelde
d4ff03c0e8
Merge pull request #32390 from lupoDharkael/timer-tree
...
TextEdit: Fix timer inside tree warning
2019-09-30 07:37:59 +02:00
Rodolfo Ribeiro Gomes
20b493f790
fix dynamic font crash if no available font size
2019-09-29 12:05:11 -03:00
Michael Alexsander Silva Dias
24ed6b58e1
Make empty columns automatically expand in GridContainer
2019-09-28 09:49:58 -03:00
Michael Alexsander Silva Dias
07f3a129c6
Fix GridContainer's children overflowing it when not all slots of a row are occupied
2019-09-28 02:57:11 -03:00
Rémi Verschelde
d0e45e78a4
doc: Sync classref with current source
...
And various fixes to bindings, hyperlinks and an uninitialized variable.
2019-09-27 22:16:42 +02:00
Rémi Verschelde
5966c6b646
Merge pull request #32379 from Calinou/colorpicker-add-overbright-indicator
...
Draw an indicator to denote overbright colors in ColorPicker
2019-09-27 22:03:22 +02:00
Rémi Verschelde
34404a4c95
Merge pull request #32380 from fire/skin_registration
...
Update when the skeleton skin is changed.
2019-09-27 21:51:35 +02:00
Rémi Verschelde
5cb926a001
Merge pull request #29681 from swarnimarun/vs-graph-unification
...
Visual Script Graph Unification
2019-09-27 15:54:37 +02:00
Hugo Locurcio
70c4e96623
Draw an indicator to denote overbright colors in ColorPicker
...
This makes it faster to distinguish overbright colors from
"standard" colors.
2019-09-27 15:28:42 +02:00
lupoDharkael
cb22a875aa
TextEdit: Fix timer inside tree warning
2019-09-27 13:57:20 +02:00
Rémi Verschelde
fd0ad20122
Merge pull request #32369 from ndarilek/get_button_tooltip
...
Implement `TreeItem.get_button_tooltip(column, idx)`.
2019-09-27 08:16:36 +02:00
Rémi Verschelde
17a81a32d8
Merge pull request #32354 from Relintai/rich-text-label-struct-refactor
...
Implement #32347 - (RichTextLabel's Item's should be structs)
2019-09-27 08:03:55 +02:00
K. S. Ernest Lee
ea76f4805b
Update when the skeleton skin is changed.
2019-09-26 19:44:51 -07:00
Nils ANDRÉ-CHANG
0024dd7bb5
Merge branch 'master' into tab_key
2019-09-26 20:36:12 +01:00
Nolan Darilek
5629a006d9
#14011 : Implement `TreeItem.get_button_tooltip(column, idx)`.
...
When added to `TreeItem`, buttons are given tooltips. When returned via `get_button(...)`, however, the button is a `Texture` and the tooltip information isn't included.
For accessibility purposes, it is useful to have access to the tooltip text. As such, we can retrieve a button's tooltip to use as a button label.
2019-09-26 10:41:02 -05:00
K. S. Ernest (iFIre) Lee
0b48f53905
Restore bone_custom_pose in skeletons
2019-09-26 04:06:47 -07:00
Rémi Verschelde
04032a9445
Merge pull request #32308 from Calinou/meshlibrary-item-preview-editor-only
...
Mention `MeshLibrary.get_item_preview()` not working in running project
2019-09-26 12:36:52 +02:00
bob
943471dd02
Fix TileMap world_to_map rounding issue for negative integers
...
The previous code would fail for negative integer values like -3.0
(would return -4 instead of -3).
Fixes #31468 .
2019-09-26 08:47:24 +02:00
Relintai
25704e81fa
Implement #32347 - RichTextLabel's Item and Item* structs should not inherit Object, it's too expensive
2019-09-26 01:26:02 +02:00
Swarnim Arun
59738e3fa3
Visualscript editor graph unification & refactoring
...
Removes the need to have separate graphs per function for the VisualScript Nodes, and refactoring UI and other improvements such as fuzzy search, right click search boxes and in-graph editable nodes
2019-09-26 01:53:58 +05:30
Hugo Locurcio
a199e2b263
Mention `MeshLibrary.get_item_preview()` not working in running project
2019-09-25 22:01:59 +02:00
Rémi Verschelde
351c45a461
Merge pull request #32047 from codecustard/fix_scrollwheel_triggering_focus_change
...
Fix scrollwheel triggering focus change
2019-09-25 15:23:47 +02:00
Rémi Verschelde
076dc9803a
Merge pull request #32119 from Calinou/unify-axis-colors
...
Use the same axis colors consistently in the 2D and 3D editors
2019-09-25 13:03:47 +02:00
Rémi Verschelde
dec10dd776
Merge pull request #32051 from qarmin/some_error_explanation
...
Added some obvious errors explanations
2019-09-25 11:51:54 +02:00
qarmin
17732fe698
Added some obvious errors explanations
2019-09-25 10:28:50 +02:00
Michael Alexsander Silva Dias
d24513911d
Make LineEdit's minimal size adapt to its icons
2019-09-25 00:46:29 -03:00
Rémi Verschelde
0c3335d1f3
Merge pull request #32309 from clayjohn/particles_tex_scale
...
Fix particles scale randomization
2019-09-24 18:05:44 +02:00
clayjohn
bc94203add
fix particles scale randomization
2019-09-24 08:03:53 -07:00
Rémi Verschelde
2f52d73c21
Merge pull request #31925 from bojidar-bg/31855-overriden-properties-docs
...
Add overriden properties to the documentation
2019-09-24 11:53:43 +02:00
Rémi Verschelde
823c3def72
Fix copyright headers and style issues
2019-09-24 11:52:06 +02:00
Rémi Verschelde
4f294b958f
doc: Sync classref with current source
...
Fix a few missing bindings or unspecified argument names and default values.
2019-09-24 11:52:06 +02:00
Rémi Verschelde
cefa56ef1f
Merge pull request #31935 from aole/Change-minimum-size-when-theme-changed
...
Change minimum size when theme changed
2019-09-24 11:13:44 +02:00
Rémi Verschelde
a7b95d1934
Merge pull request #32267 from YeldhamDev/fix_tab_icons
...
Fix various problems with tab-related icons
2019-09-24 10:45:40 +02:00
Rémi Verschelde
329c54453e
Merge pull request #32202 from Relintai/fix-crash-in-rich-text-label
...
Fix crash on some platforms in RichTextLabel.
2019-09-24 09:30:14 +02:00
Rémi Verschelde
0ea54eeb06
Merge pull request #30497 from Calinou/editor-gizmos-change-notify
...
Notify changes in properties that can be edited by 3D gizmos
2019-09-23 22:22:49 +02:00
Rémi Verschelde
159470df08
Merge pull request #32275 from godotengine/skin_support
...
Added skin support and simplified APIs to override bone position + glTF 2.0 import fixes
2019-09-23 15:02:15 +02:00
Rémi Verschelde
fc47569be9
Merge pull request #32232 from Paulb23/issue_32070_goto_doc_when_selecting
...
Fixed going to doc reference while selecting text
2019-09-23 15:00:41 +02:00
RaphaelHunter
101f1b802b
fix kinematicBody2D jitters when sync_to_physics is turned on, closes #28181
2019-09-23 20:01:01 +08:00
Rémi Verschelde
393a0152ea
Merge pull request #32055 from qarmin/some_code_fixes
...
Changed some code found by Clang Tidy and Coverity
2019-09-23 10:00:31 +02:00
Rémi Verschelde
791da4cb83
Merge pull request #32048 from YeldhamDev/lineedit_right_icon_fix
...
Expose LineEdit's 'right_icon' and fix icon size
2019-09-23 09:51:45 +02:00
Rémi Verschelde
cf1e914897
Merge pull request #32027 from lupoDharkael/group-order
...
Preserve group order in scene files
2019-09-23 09:24:56 +02:00
Rémi Verschelde
0782082433
Merge pull request #32003 from codecustard/fix_optionbutton_not_selecting
...
Fixes OptionButton Not Updating Current Selection
2019-09-23 08:46:09 +02:00
Michael Alexsander Silva Dias
94ad89a5fb
Fix various problems with tab-related icons
2019-09-22 23:08:14 -03:00
Rémi Verschelde
0928e82027
Merge pull request #29895 from ptrojahn/menukey
...
Support menu key in TextEdit and LineEdit controls
2019-09-22 21:21:13 +02:00
qarmin
50be65bf43
Changed some code found by Clang Tidy and Coverity
2019-09-22 18:45:08 +02:00
Paul Trojahn
ba24bc1e04
Support menu key in TextEdit and LineEdit controls
...
Related to #15542
2019-09-22 12:06:24 +02:00
Michael Alexsander Silva Dias
5d03aa12c9
Expose LineEdit's 'right_icon' and fix icon size
2019-09-21 21:14:14 -03:00
Paulb23
ef3455f236
Fixed going to doc reference while selecting text
2019-09-21 13:45:20 +01:00
Rémi Verschelde
2e065d8ad0
Merge pull request #32064 from m4gr3d/propagate_gl_surface_events
...
Notify for app pause and resume events on Android
2019-09-20 23:18:40 +02:00
Rémi Verschelde
f7cd50e900
Merge pull request #32206 from Calinou/remove-unused-tree-constants
...
Remove an unused icon and constant in Tree
2019-09-20 23:14:50 +02:00
Hugo Locurcio
40a5de97e6
Remove an unused icon and constant in Tree
2019-09-20 17:50:13 +02:00
Rémi Verschelde
48db920f4a
Merge pull request #32190 from KoBeWi/undo_redo_stuff
...
Fix autocompletion undo
2019-09-20 17:22:11 +02:00
Rémi Verschelde
c74b54f229
Merge pull request #32197 from YeldhamDev/fix_multiple_modals_dim
...
Fix editor dimming being disabled when a dialog is closed even when others are open
2019-09-20 17:13:44 +02:00
Rémi Verschelde
fdc2463a1b
Merge pull request #32150 from luzpaz/typos
...
Fix misc. source comment typos
2019-09-20 17:09:05 +02:00
Tomasz Chabora
a28d18f554
Load overrides if getting style from current class
2019-09-20 13:48:24 +02:00
fhuya
a7712cc9e4
Add new events and accompanying logic to notify when the app is paused and resumed on Android devices.
2019-09-19 13:29:49 -07:00
luz.paz
91ecd7b6a6
Fix misc. source comment typos
...
Found using `codespell -q 3 -S ./thirdparty,*.po -L ang,ba,cas,dof,doubleclick,fave,hist,leapyear,lod,nd,numer,ois,paket,seeked,sinc,switchs,te,uint -D ~/Projects/codespell/codespell_lib/data/dictionary.txt `
2019-09-19 14:36:52 -04:00
Rémi Verschelde
1e73a44e24
Merge pull request #31904 from byfron/styleboxflag_uvcoords
...
Computes UV coordinates of the canvas_item vertices of StyleBoxFlat
2019-09-19 20:04:46 +02:00
Rémi Verschelde
fae14153f7
Merge pull request #31188 from codecustard/LineEdit_disable_shortcuts
...
Add Ability to Enable/Disable Shortcuts and Selection for LineEdit/TextEdit
2019-09-19 19:56:59 +02:00
Relintai
838e474e66
Fix crash on some platforms in RichTextLabel.
2019-09-19 19:25:11 +02:00
Michael Alexsander Silva Dias
53c9eaf933
Fix editor dimming being disabled when a dialog is closed even when others are open
2019-09-19 00:46:10 -03:00
Juan Linietsky
d81ddaf33e
Added skin support and simplified APIs to override bone position.
2019-09-18 19:46:32 -03:00
Yuri Rou
6dcd4379ca
Some formatting fixes in visual_shader_nodes.cpp
2019-09-18 19:04:40 +03:00
Tomasz Chabora
d630472b98
Fix autocompletion undo
2019-09-18 16:26:33 +02:00
Hugo Locurcio
c2bcc3f700
Use the same axis colors consistently in the 2D and 3D editors
2019-09-13 14:08:41 +02:00
Eoin O'Neill
ebc6fb9869
Fix Sanitization Bug
...
From issue #32089 -- I messed up the property hints by putting them
in the wrong location. Should be working as intended now.
2019-09-11 16:39:24 -07:00
Emmanuel Barroga
b8007b3947
Fix scrollwheel triggering focus change
...
Clicking or using the scrollwheel outside of the focused control triggers a focus change. This makes sense for mouse clicks, but scrollwheeling outside the focuses control does not. This PR ignores scrollwheeling outside of the focused control.
2019-09-08 18:13:44 -07:00
lupoDharkael
d6269e1bc0
Preserve group order in scene files
2019-09-07 15:54:53 +02:00
Emmanuel Barroga
b678d68224
Add Ability to Enable/Disable Shortcuts for LineEdit/TextEdit
...
This PR adds the ability to enable/disable shortcut keys and selection for LineEdit/TextEdit. It also updates the context menu when you disable/enable the shortcut keys or selection.
2019-09-07 06:06:36 -07:00
Emmanuel Barroga
c2b902af4b
Fixes OptionButton Not Updating if Current Selection Already Selected
...
When the option button's current selection is updated to a different text/icon, the selected option does not update until you unselect the option and then select it again.
2019-09-05 22:17:48 -07:00
Fabio Alessandrelli
768d637a1b
Merge pull request #31870 from JFonS/add_network_profiler
...
Add network profiler
2019-09-05 16:34:36 +02:00
jfons
8244f535cd
Add network profiler
2019-09-05 09:48:36 +02:00
Rémi Verschelde
8bcf6ca953
Merge pull request #31979 from Eoin-ONeill-Yokai/bugfix-31973
...
CharFXTransform Type Hint Error
2019-09-05 09:46:34 +02:00
Chaosus89
c188c5597f
Removed useless code from Switch in visual shader
2019-09-05 09:07:13 +03:00
Chaosus89
bd507739ea
Fix formatting error for bool in resulted code of visual shader
2019-09-05 08:32:24 +03:00
Eoin O'Neill
b85b2da988
Bug Fix 31973 Type Hint Error
...
Fixed a bug introduced in my previous PR involving CharFXTransform not
allowing the use of type hinting. Should now work properly. This should
also help with Godot Mono issues...
2019-09-04 16:42:51 -07:00
Yuri Roubinsky
aadbb66dc2
Merge pull request #31926 from Chaosus/vs_switch
...
Some improvements for Switch node in visual shaders
2019-09-04 19:21:54 +03:00
Chaosus89
bf3024c172
Added missing OUTPUT_IS_SRGB and FRONT_FACING to visual shaders
2019-09-04 18:24:44 +03:00
Chaosus89
54f0889f20
Fix parsing array indexing symbol in visual shader expression
2019-09-04 16:01:41 +03:00
Rémi Verschelde
3d76eb8938
Merge pull request #23658 from Eoin-ONeill-Yokai/rich-text-plus
...
RichTextLabel - New Real Time Text Effects and Custom BBCode Extensions
2019-09-04 14:49:55 +02:00
Rémi Verschelde
56123ece32
Merge pull request #31955 from nekomatata/fix-caret-blink-timer
...
TextEdit & LineEdit caret blink timers run only when focused
2019-09-04 14:48:38 +02:00
Bojidar Marinov
6c4407bae4
Add overriden properties to the documentation
...
Fixes #31855
2019-09-04 15:21:40 +03:00
PouleyKetchoupp
5fdea32622
TextEdit & LineEdit caret blink timers run only when focused ( fixes #31936 )
2019-09-04 13:06:15 +02:00
lupoDharkael
306e64a9f5
Add call_recursive method to TreeItem
2019-09-04 12:42:08 +02:00
Rémi Verschelde
b679f622d8
Merge pull request #31618 from fjordyo0707/fix_mesh_edges
...
Fix the edges of the mesh vertex
2019-09-04 08:53:29 +02:00
Eoin O'Neill
feedd6c615
Update RichTextLabel to support real time effects and custom BBCodes.
...
Added a new ItemFX type to RichTextLabel which supports dynamic text
effects.
RichTextEffect Resource Type was added which can be extended for more
real time text effects.
2019-09-03 15:36:19 -07:00
Bhupendra Aole
7a27abae49
Change minimum size when theme changed
...
Need to call minimum_size_changed on controls whenever the theme is changed.
Fixes godotengine#29816
2019-09-03 14:56:56 -04:00
Rémi Verschelde
750f8d4926
Merge pull request #31844 from 2shady4u/TweenInSceneTree
...
Timer and Tween check if they are in SceneTree when starting
2019-09-03 18:35:20 +02:00
Chaosus89
a79d8e3b8f
Some improvements for Switch node in visual shaders
2019-09-03 15:11:02 +03:00
shaderbeast
5e337b31eb
Added is_inside_tree() check in both Timer and Tween
...
Tween now throws error and doesnt even execute.
2019-09-03 13:26:41 +02:00
Rémi Verschelde
331bb5a8c6
Merge pull request #31295 from fstiewitz/focus-rect-issue
...
Fix get_meta error and visual bug when editing scene with keyboard
2019-09-03 13:11:41 +02:00
Rémi Verschelde
4dfea5fc9c
Merge pull request #31389 from Calinou/add-node-comments
...
Add an `editor_description` property to Node for documentation purposes
2019-09-03 12:55:22 +02:00
Rémi Verschelde
720065c721
Merge pull request #31476 from SoulForMachine/fix-move-and-slide-error
...
Prevent move_and_slide() to generate an error.
2019-09-03 12:51:42 +02:00
Rémi Verschelde
ad9f39108f
Merge pull request #31507 from YeldhamDev/button_icon_expand
...
Add feature to Button to make its icon expand/shrink with the button's size
2019-09-03 12:51:22 +02:00
Rémi Verschelde
dd7c4c62ab
Merge pull request #31782 from aole/persist-ColorPicker-color-mode
...
Persist ColorPicker color mode
2019-09-03 12:36:04 +02:00
Rémi Verschelde
a1fe20a57e
Merge pull request #31880 from nekomatata/joystick-ui-navigation
...
Fixed UI navigation using joy axis inputs
2019-09-03 12:02:18 +02:00
Rémi Verschelde
413db5d8ff
Merge pull request #31889 from Calinou/gradient-editor-add-snapping
...
Implement snapping in the Gradient editor
2019-09-02 22:12:04 +02:00
byfron
b7ed4829ba
Computes UV coordinates of the canvas_item vertices of StyleBoxFlat
2019-09-02 20:57:43 +02:00
Tomasz Chabora
892318f5c7
Add autocomplete support for change_scene()
2019-09-02 19:07:02 +02:00
amakarenko
544c39d1e7
Fix editor infinit loop in search_prev
...
Fixes godotengine#31328
2019-09-02 15:15:55 +03:00
Hugo Locurcio
98a0c2b20f
Implement snapping in the Gradient editor
...
Holding Ctrl will snap the selected point's position
by increments of 0.1. Holding Ctrl + Shift will snap by increments
of 0.025 instead.
The previous behavior is preserved when holding just Shift (snapping
to other gradient points).
2019-09-02 13:37:27 +02:00
Rémi Verschelde
7e731bbce2
Merge pull request #31878 from aole/Initialize-TileMap-Custom-Transform
...
Initialize TileMap Custom Transform
2019-09-02 10:35:56 +02:00
Michael Alexsander Silva Dias
5f28a2f978
Fix multiline texts not updating its contents correctly in the inspector
2019-09-02 01:17:11 -03:00
PouleyKetchoupp
01c9ad1cdf
Fixed UI navigation using joy axis inputs
...
Fixes #31879
2019-09-02 04:36:58 +02:00
Bhupendra Aole
0b5a600564
Initialize TileMap Custom Transform
...
Initialize TileMap Custom Transform to same as Cell Size (64).
Fixes #30948 .
2019-09-01 19:33:45 -04:00