Rémi Verschelde
ad9e5ae984
Merge pull request #40228 from mrushyendra/multinode_selection_master
...
Emit signals for GraphEdit multi-node selection and unselection
2020-07-10 13:34:38 +02:00
Rémi Verschelde
08c1657c99
Merge pull request #40197 from mrushyendra/pathfollow_master
...
Fix repeated updates of PathFollow3D Transform
2020-07-10 10:38:07 +02:00
Maganty Rushyendra
c1d5c7727c
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.
2020-07-09 19:15:27 +08:00
bruvzg
9ffc1c19ad
Fix exclusive child focus grab, when there are more than two child windows.
2020-07-09 11:18:56 +03:00
Umang Kalra
bd32c273ff
Fixes the get_visible_line_count() of rich text label
2020-07-09 01:32:11 +05:30
Maganty Rushyendra
be3a1769fe
Fix repeated updates of PathFollow3D Transform
...
Add optional parameter to specify whether applying rotation to the
PathFollow3D's Transform is necessary, preventing erroneous updates.
2020-07-08 10:06:02 +08:00
Yuri Roubinsky
d131bbaf15
Fix GraphEdit reconnecting to disconnected port
2020-07-05 09:47:58 +03:00
Rémi Verschelde
e4657bd724
Merge pull request #40112 from Chaosus/graphedit_connection_enchancement
...
Prevents incorrect connection attempt on port clicking in GraphEdit
2020-07-05 00:55:03 +02:00
Rémi Verschelde
8ccb1cec91
Merge pull request #40084 from bruvzg/macos_seamless_scaling
...
[macOS] Implement seamless display scaling.
2020-07-04 10:51:09 +02:00
bruvzg
df968d577a
[macOS] Implement seamless display scaling.
2020-07-04 10:36:33 +03:00
Yuri Roubinsky
de1117f5ad
Prevents incorrect connection attempt on port clicking in GraphEdit
...
Prevents incorrect connection attempt on port clicking in GraphEdit
2020-07-04 08:05:37 +03:00
Juan Linietsky
110e650dc8
Change how default fonts are created, fixes #39235
...
Also fixes file dialog icons.
2020-07-03 21:29:12 -03:00
Rémi Verschelde
c020eea184
Merge pull request #40092 from hinlopen/remove-find-last
...
Remove String::find_last (same as rfind)
2020-07-04 01:38:01 +02:00
Stijn Hinlopen
929b98d24b
Remove String::find_last (same as rfind)
2020-07-03 15:26:22 +02:00
Andrii Doroshenko (Xrayez)
dc446203be
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.
2020-07-03 15:46:09 +03:00
Rémi Verschelde
a6f1714612
Merge pull request #37218 from lrgilbert/graphnode-port-separation
...
Fixed GraphNode port separation.
2020-07-03 12:46:11 +02:00
Rémi Verschelde
9a82c3d6a5
Merge pull request #40081 from nekomatata/richtextlabel-fill-regression
...
Fix RichTextLabel fill alignment regression
2020-07-03 12:43:20 +02:00
Rémi Verschelde
ad04cf0bfa
Merge pull request #32907 from georgikoemdzhiev/FixPressedIssue
...
Uncheck 'Pressed' if toggle_mode is unchecked
2020-07-03 12:01:34 +02:00
lrgilbert
47c929c972
Fixed separation of ports on GraphNode
...
Fixes #32474 .
2020-07-03 11:28:08 +02:00
PouleyKetchoupp
44f88999c7
Fix RichTextLabel fill alignment regression
...
Fixes #40068 (regression from #39164 ) by not applying the line offset
change in the case of fill alignment mode.
2020-07-03 10:30:24 +02:00
Rémi Verschelde
8ab69153ca
Merge pull request #39968 from lordkettune/custom-tracks-fix
...
Fix custom tracks causing issues on reimport
2020-07-03 07:54:10 +02:00
Rémi Verschelde
810aefb3ed
Merge pull request #40063 from RandomShaper/clean_blend_times
...
Ignore (clean) blend times for non-existent animations
2020-07-03 07:51:22 +02:00
Rémi Verschelde
eeb61ec896
Merge pull request #40071 from reduz/fix-content-scale
...
Fix content scale mode, closes #37941
2020-07-03 07:50:50 +02:00
lordkettune
4313a7bdc8
Fix issues with custom tracks on reimport
2020-07-02 16:08:20 -07:00
Juan Linietsky
ac7e9479ce
Fix content scale mode, closes #37941
2020-07-02 17:16:13 -03:00
georgikoemdzhiev
8674e5c0bd
Uncheck 'Pressed' if toggle_mode is unchecked
2020-07-02 19:14:10 +01:00
Pedro J. Estébanez
fdf1977e8f
Ignore blend times for inexistent animations
2020-07-02 19:22:09 +02:00
Juan Linietsky
d3adc53ad9
Ensure cursor shape changes when exiting window, fixes #37724
2020-07-02 14:17:46 -03:00
Rémi Verschelde
67e4082b1e
Merge pull request #37350 from aaronfranke/force-impulse
...
Refactor physics force and impulse code to use (force, position) order
2020-07-02 18:39:16 +02:00
Haoyu Qiu
45d0799b5b
Prevent dragging from SceneTree buttons
2020-07-02 15:27:59 +08:00
Rémi Verschelde
b65ebfc7e7
Merge pull request #36879 from ThakeeNathees/animation-autocomplete-bug-fix
...
Fix: animation autocomplete bug fixed
2020-07-02 09:06:47 +02:00
Rémi Verschelde
afe03e872b
Merge pull request #34926 from Xrayez/draw-transform-defaults
...
Provide `draw_set_transform` defaults for rotation and scale
2020-07-02 09:06:06 +02:00
Rémi Verschelde
0636e2a877
Merge pull request #40020 from reduz/fix-tree-edit-focus
...
Fix doubleclick on tree item, restore input focus on previous windows.
2020-07-02 07:26:13 +02:00
Rémi Verschelde
b11da7b703
Merge pull request #40028 from reduz/fix-popups1
...
Fix some popup menus missing screen transform.
2020-07-02 07:21:24 +02:00
Rémi Verschelde
1ae40793c7
Merge pull request #40022 from reduz/fix-subwindow-clamp
...
Add ability to clamp embedded subwindows to parent
2020-07-02 07:20:45 +02:00
Juan Linietsky
f0e320decf
Fix some popups menu missing screen transform.
...
Closes #38591
2020-07-01 14:44:19 -03:00
Rémi Verschelde
0a8dbe7f75
Merge pull request #32516 from nekomatata/texture-button-flip
...
Added flip_h and flip_v properties in TextureButton
2020-07-01 19:07:59 +02:00
Juan Linietsky
39a77735bd
Add ability to clamp embedded subwindows to parent, fixes #37792
2020-07-01 12:49:35 -03:00
Juan Linietsky
058166fb6c
Fix doubleclick on tree item, restore input focus on previous windows.
...
Closes #37335
2020-07-01 12:46:39 -03:00
Andrii Doroshenko (Xrayez)
851c1050b2
Provide `draw_set_transform` defaults for rotation and scale
2020-07-01 18:09:11 +03:00
Rémi Verschelde
9000e59650
Merge pull request #40016 from akien-mga/environment-code-cleanup
...
Environment: Refactor code for readability + more
2020-07-01 16:28:48 +02:00
Rémi Verschelde
2fc3c5bb9f
Merge pull request #40015 from reduz/fix-embedded_subwindow-input
...
Ensure embedded mode works again
2020-07-01 16:28:20 +02:00
Rémi Verschelde
34e011c8a5
Merge pull request #36307 from Xrayez/raycast-enabled-true
...
Enable raycast nodes by default
2020-07-01 16:06:16 +02:00
Rémi Verschelde
372136fe75
Environment: Refactor code for readability + more
...
- Makes all boolean setters/getters consistent.
- Fixes bug where `glow_hdr_bleed_scale` was not used.
- Split CameraEffects to their own source file.
- Reorder all Environment method and properties declarations,
definitions and bindings to be consistent with each other
and with the order of property bindings.
- Bind missing enum values added with SDFGI.
- Remove unused SDFGI enhance_ssr boolean.
- Sync doc changes after SDFGI merge and other misc changes.
2020-07-01 14:44:45 +02:00
Juan Linietsky
239942cfef
Ensure embedded mode works again
...
Also implemented application in/out notifications in X11.
2020-07-01 09:27:43 -03:00
PouleyKetchoupp
5f1d94bb7d
Added flip_h and flip_v properties in TextureButton
2020-07-01 11:31:27 +02:00
Rémi Verschelde
719609522a
Merge pull request #40003 from YeldhamDev/tree_scroll_fix
...
Fix Tree's 'scroll_to_item()' not working correctly on some cases
2020-07-01 08:52:08 +02:00
Rémi Verschelde
46b1b91da9
Merge pull request #39985 from Calinou/uppercase-aces-tonemapping
...
Write "Aces" tonemapping in uppercase as it's an acronym
2020-07-01 08:48:22 +02:00
Michael Alexsander
144a4cc39f
Fix Tree's 'scroll_to_item()' not working correctly on some cases
2020-06-30 18:22:26 -03:00
Juan Linietsky
b19ab945ac
Make dialogs exclusive by default, fixes #37732
...
Also fix on set_visible, not creating exclusive children as it should.
2020-06-30 14:02:37 -03:00
Juan Linietsky
438c380458
Add a separate application focus/in notification out from Window focus notification.
2020-06-30 10:40:06 -03:00
Hugo Locurcio
a31fc59ff3
Write "Aces" tonemapping in uppercase as it's an acronym
2020-06-30 15:21:35 +02:00
Mark Kuo
e435d57758
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.
2020-06-29 13:01:54 +10:00
Adam Reichold
b2a204799a
Call Node3D::get_global_transform and Vector3::dot only once within Camera3D::is_position_behind to avoid redundant work.
2020-06-27 16:32:11 +02:00
Juan Linietsky
201d606b3d
Addition of SDFGI for open world global illumination
...
Move GI to a deferred pass
2020-06-26 11:06:48 -03:00
Rémi Verschelde
057489b329
Merge pull request #39805 from RandomShaper/fix_gone_popup_crash
...
Handle gone TabContainer popup nicely
2020-06-24 20:21:17 +02:00
Pedro J. Estébanez
b5e44a123c
Handle gone TabContainer popup nicely
2020-06-24 19:34:32 +02:00
Hugo Locurcio
9bd2d7a617
Fix default editor/project Button styles after ToolButton removal
...
Before this fix, all Buttons made with the default project theme
looked flat until hovered.
2020-06-24 17:21:47 +02:00
Rémi Verschelde
81a47d033d
Merge pull request #39717 from hinlopen/empty-scroll-eats-input
...
No longer scroll vertically when scrollbars are unavailable
2020-06-21 18:32:38 +02:00
Marcel Admiraal
8ffe905c45
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:20:26 +01:00
Stijn Hinlopen
5f7499beac
No longer scroll vertically when scrollbars are unavailable
2020-06-20 20:56:17 +02:00
Rémi Verschelde
35414f1dec
Merge pull request #39053 from timoschwarzer/static-assert-variant-arg-max
...
Add static_assert checks where code assumes VARIANT_ARG_MAX == 5
2020-06-19 23:51:22 +02:00
Hugo Locurcio
31b7f02a29
Remove ToolButton in favor of Button
...
ToolButton has no redeeming differences with Button;
it's just a Button with the Flat property enabled by default.
Removing it avoids some confusion when creating GUIs.
Existing ToolButtons will be converted to Buttons, but the Flat
property won't be enabled automatically.
This closes https://github.com/godotengine/godot-proposals/issues/1081 .
2020-06-19 20:49:49 +02:00
Rémi Verschelde
cb9d02a8d1
Merge pull request #38932 from Calinou/increase-light3d-shadow-bias
...
Increase the default DirectionalLight3D and OmniLight3D shadow biases
2020-06-19 20:02:26 +02:00
Yuri Roubinsky
cb9cbf840d
Added Texture2DArray support to visual shaders
2020-06-19 18:02:05 +03:00
Rémi Verschelde
1cd8e835be
Merge pull request #39659 from asmaloney/macos-command-backspace
...
[macOS] Command-backspace in line edit
2020-06-19 13:19:39 +02:00
Rémi Verschelde
a8132b2fab
Merge pull request #33235 from nekomatata/rich-text-label-fit-height
...
Option in RichTextLabel for height to fit content
2020-06-19 12:52:25 +02:00
Andy Maloney
7433c9d40c
[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:45:40 -04:00
Rémi Verschelde
78d09a4163
Merge pull request #37903 from Xrayez/shape-2d-draw-bind
...
Bind Shape2D draw method
2020-06-16 15:15:51 +02:00
Rémi Verschelde
2ad7eb9bb3
Merge pull request #36079 from madmiraal/fix-35744
...
Normalise p_up_direction vector in move_and_slide()
2020-06-16 12:44:06 +02:00
Marcel Admiraal
c4650540d4
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 09:56:08 +01:00
Rémi Verschelde
3306935289
Merge pull request #39572 from Chaosus/fix_vs_4.0
...
Use path instead classname to prevent errors for exported visual shaders
2020-06-16 09:32:38 +02:00
Rémi Verschelde
8db8577f10
Merge pull request #39126 from TwistedTwigleg/GSOC_2020_Working_Branch
...
Skeleton and Skeleton inspector low-level changes
2020-06-16 09:30:22 +02:00
Rémi Verschelde
e606b510ae
Merge pull request #39544 from nathanfranke/canvas-item-parent-node-rename
...
Change "ParentNode" to "Inherit" in Texture Options
2020-06-15 23:37:05 +02:00
TwistedTwigleg
24905becb2
Made low level changes to the Skeleton3D class and Skeleton3D inspector. Changes listed below:
...
* Added helper functions to Skeleton3D for converting transforms from bone space to global space, and vice versa.
* Updated the Skeleton3D class reference.
* Changed the icon used for bones in the Skeleton3D inspector to use BoneAttachement3D's icon.
* Changed the Skeleton3D inspector to use EditorPropertyTransform and EditorPropertyVector3 when possible.
* Placed the Transform/Matrix for each bone in a sub-section, so it is visually similar to the Node3D inspector.
2020-06-15 17:18:06 -04:00
Yuri Roubinsky
cc6ca5f1eb
Use path instead classname to prevent errors for exported visual shaders
2020-06-15 21:44:03 +03:00
Ranoller
bccc2cdb9c
Fix bad position in Camera2D offset and camera rotation if smothing enabled.
...
Fix https://github.com/godotengine/godot/issues/16323 in master. Apply same solution of https://github.com/godotengine/godot/issues/2074 in rotation and offset.
2020-06-15 16:27:59 +02:00
Rémi Verschelde
c6f48f5bfc
Merge pull request #39485 from theoway/append_bbcode_animation_bug
...
Fixes the stopping of animation effects in bbcode text after appending
2020-06-15 11:03:46 +02:00
Rémi Verschelde
2ffc570417
Merge pull request #39522 from noidexe/fix-tabcontainer-tabselected-misfire
...
Fix TabContainer emitting spurious tab_selected signals when a theme …
2020-06-15 10:57:32 +02:00
Rémi Verschelde
152bb86141
Merge pull request #39479 from akien-mga/classdb-default-property-unique
...
Object: Add usage hint to instantiate Object properties in editor
2020-06-15 09:30:04 +02:00
Nathan Franke
dc1ca8fbd0
Change "ParentNode" to "Inherit" in Texture Options
2020-06-14 16:02:00 -05:00
Tomasz Chabora
46fd51056a
Re-enable scroll follow on RichTextLabel clear
2020-06-14 01:23:32 +02:00
Lisandro Lorea
5123006f06
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
2020-06-13 20:06:19 -03:00
Umang Kalra
88b30a29bf
Fixes the stopping of animation effects in bbcode after appending
2020-06-13 00:20:52 +05:30
Rémi Verschelde
b3bc5aafc5
Object: Add usage hint to instantiate Object properties in editor
...
Fixes #36372 as Path2D/Path3D's `curve` property no longer uses a Curve
instance as default value, but instead it gets a (unique) default Curve
instance when created through the editor (CreateDialog).
ClassDB gets a sanity check to ensure that we don't do the same mistake
for other properties in the future, but instead use the dedicated
property usage hint.
Fixes #36372 .
Fixes #36650 .
Supersedes #36644 and #36656 .
Co-authored-by: Thakee Nathees <thakeenathees@gmail.com>
Co-authored-by: simpuid <utkarsh.email@yahoo.com>
2020-06-12 14:30:18 +02:00
Rémi Verschelde
fcf14da8d0
Merge pull request #39337 from Cevantime/add-text-deletion-methods-to-line-edit
...
Make text deletion methods public for LineEdit
2020-06-11 09:33:27 +02:00
Thibault Truffert
2bb44ea5bd
Make text deletion methods public for LineEdit
2020-06-10 22:16:48 +02:00
Rémi Verschelde
8b79f2aad4
Merge pull request #39350 from giulianob/improve-tree-redraw
...
Tree: Calling update in _gui_input less frequently
2020-06-10 10:49:54 +02:00
Maganty Rushyendra
a2392039af
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-09 21:24:05 +08:00
Michael Alexsander
637927f803
Add generic file icon and its modulation to the 'FileDialog'
2020-06-08 10:31:45 -03:00
Rémi Verschelde
c080ec5da2
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 .
2020-06-08 13:07:07 +02:00
Giuliano Barberi
d443a13244
Tree: Calling update in _gui_input less frequently
2020-06-06 17:02:22 -04:00
Tomasz Chabora
642d91381a
Restore capture caches when missing
2020-06-05 23:26:25 +02:00
Rémi Verschelde
06a2fb0bac
Merge pull request #39293 from madmiraal/fix-27921
...
Correct misspellings of damped spring.
2020-06-05 11:04:46 +02:00
Marcel Admiraal
b5e31b70dc
Correct misspellings of damped spring.
2020-06-04 18:07:24 +01:00
Marcus Brummer
ffbb211bbe
Set "shader_param/" prefix in Shader::has_param()
2020-06-04 17:41:10 +02:00
Rémi Verschelde
1a5d472be5
Merge pull request #39270 from Phischermen/fix-mesh-property-list
...
Update property hint from ArrayMesh to be consistent with other property hints
2020-06-03 22:47:55 +02:00
Rémi Verschelde
7c3dc855ca
Merge pull request #39164 from theoway/richlabeltext_align_bug
...
Fixes the right and center alignment bug of rich text label
2020-06-03 22:46:13 +02:00
Phischermen
2fc274d572
Made property hint consistent with other property hints
2020-06-03 13:01:27 -07:00
Dominik 'dreamsComeTrue' Jasiński
8f11a91917
Allow scroll_to_line when scroll_active is 'false'
...
Fix #36134
2020-06-03 19:55:27 +02:00
Umang Kalra
b2a32d007d
Fixes the right and center alignment bug of rich text label
2020-06-03 21:37:48 +05:30
Rémi Verschelde
901832e21c
Merge pull request #39113 from nekomatata/bbcode-image-color
...
Add color option for img bbcode tag in RichTextLabel to tint images
2020-06-03 13:16:13 +02:00
Rémi Verschelde
7460bc36dd
Merge pull request #39130 from Calinou/dynamicfont-disable-outline-antialiasing
...
Disable antialiasing on the DynamicFont outline as well when requested
2020-06-03 12:59:15 +02:00
Rémi Verschelde
4749437b23
Merge pull request #39209 from Xrayez/ray-shape-indie
...
Move `RayShape2D` implementation into its own translation unit
2020-06-03 11:07:32 +02:00
Aaron Franke
ba27deef06
Refactor physics force and impulse code
2020-06-02 23:18:59 -04:00
Hugo Locurcio
b46756c723
Add performance hints to the DirectionalLight shadow mode property hint
...
This also clarifies some parts in the DirectionalLight documentation.
2020-06-01 01:20:35 +02:00
Andrii Doroshenko (Xrayez)
9bb070b030
Move `RayShape2D` implementation into its own translation unit
2020-06-01 01:52:07 +03:00
PouleyKetchoupp
7b7d4ef079
Add color option for img bbcode tag in RichTextLabel to tint images
2020-05-30 19:13:16 +02:00
Rémi Verschelde
1620669f4e
Merge pull request #39051 from Xrayez/geometry-split
...
Split `Geometry` singleton into `Geometry2D` and `Geometry3D`
2020-05-29 12:10:37 +02:00
Hugo Locurcio
2919fc7317
Disable antialiasing on the DynamicFont outline as well when requested
...
This partially addresses
https://github.com/godotengine/godot-proposals/issues/943 .
2020-05-28 22:30:38 +02:00
Andrii Doroshenko (Xrayez)
11f367fe02
Enable raycast nodes by default
2020-05-27 15:10:53 +03:00
Andrii Doroshenko (Xrayez)
69d5de632e
Split `Geometry` singleton into `Geometry2D` and `Geometry3D`
...
Extra `_2d` suffixes are removed from 2D methods accoringly.
2020-05-27 14:28:34 +03:00
Maganty Rushyendra
a4413710f9
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
2020-05-27 17:28:23 +08:00
Rémi Verschelde
84d9e10f88
Merge pull request #36409 from fire/skeleton-custom-inspector
...
Custom Skeleton3DEditorPlugin
2020-05-27 11:04:37 +02:00
Thakee Nathees
9d224ac429
colorpicker margin bug fixed
2020-05-26 08:50:29 +05:30
Timo Schwarzer
05b32fc01d
Add static_assert checks where code assumes VARIANT_ARG_MAX == 5
2020-05-25 21:55:03 +02:00
Fabio Alessandrelli
e7b11cc2aa
Merge pull request #38978 from nekomatata/remote-inspector-res-preview
...
Fix resource preview in remote inspector
2020-05-25 08:33:21 +02:00
Rémi Verschelde
57d21ebeda
Merge pull request #38396 from nekomatata/unexpose-sort-children
...
Fix Container sorting not working when overriding _sort_children in gdscript
2020-05-23 20:22:44 +02:00
Hugo Locurcio
971a0deeb6
Increase the default DirectionalLight3D and OmniLight3D shadow biases
...
This should decrease the amount of visible shadow acne by default.
2020-05-23 14:22:22 +02:00
PouleyKetchoupp
12685df423
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.
2020-05-23 11:52:02 +02:00
K. S. Ernest (iFire) Lee
f7fdc87789
Custom Skeleton3DEditorPlugin
...
Co-authored-by: Marios Staikopoulos <marios@staik.net>
2020-05-22 09:54:34 -07:00
PouleyKetchoupp
ad8081216c
Option in RichTextLabel for height to fit content
2020-05-22 09:20:49 +02:00
Dominik 'dreamsComeTrue' Jasiński
08377b3f04
Clarifies 'icon_separation' in TabContainer (instead of 'hseparation')
...
Fixes : #38911
2020-05-21 21:53:17 +02:00
Rémi Verschelde
d3612d04c7
Merge pull request #38794 from nekomatata/text-edit-search-result
...
TextEdit search returns Dictionary instead of Vector
2020-05-20 13:28:29 +02:00
Rémi Verschelde
aec07538f4
Merge pull request #38309 from SkyLucilfer/AndroidLineEdit
...
Fix Android LineEdit editing bugs
2020-05-20 11:45:59 +02:00
Andrea Catania
7c2794b35c
Fixed kinematic body axis lock
2020-05-19 13:37:54 +02:00
Rémi Verschelde
ca3192d18a
Style: Fix unnecessary semicolons that confused clang-format
2020-05-19 11:24:58 +02:00
Rémi Verschelde
8896425ee4
Merge pull request #38791 from clayjohn/physical-sky-update
...
Add night sky to PhysicalSkyMaterial
2020-05-18 16:33:50 +02:00
Hugo Locurcio
c9abc63108
Allow searching with keyboard input by default in PopupMenu
...
See discussion in https://github.com/godotengine/godot-proposals/issues/43 .
2020-05-17 23:28:24 +02:00
Rémi Verschelde
4c8832701b
Merge pull request #38695 from dreamsComeTrue/node-swap-order-arguments
...
Replace 'add_child_below_node' with 'add_sibling' in Node
2020-05-17 11:36:05 +02:00
PouleyKetchoupp
242b94af1a
TextEdit search returns a dictionary instead of Vector
...
Easier to use than accessing elements in a Vector using indices given by an enum.
Breaks compatibility on existing scripts using this functionality.
2020-05-16 23:46:14 +02:00
unknown
634e9460b9
Fix popup window size calculation in popup_centered_ratio by using Rect2
2020-05-17 03:06:42 +05:30
clayjohn
4408efade3
Add night sky to PhysicalSkyMaterial
2020-05-16 12:59:55 -07:00
Rémi Verschelde
163687d17a
Merge pull request #38782 from mbrlabs/text-editor-fix
...
Fixed text editor drawing if smooth scrolling is disabled.
2020-05-16 19:26:55 +02:00
PouleyKetchoupp
3ad694018f
Fix Container sorting not working when overriding _sort_children in gdscript
...
Remove _sort_children from script bindings:
_sort_children is an internal method which shouldn't be exposed to scripts.
Added support for non-bound methods in MessageQueue:
So we can use deferred calls without exposing internal methods to scripts.
Added debug checks in CallableCustomMethodPointer:
Adding method pointer callables to the message queue was causing crashes
in case an object was destroyed and the same memory was allocated for
another one. The new object had a valid object id but the call was erroneous.
Release will be fixed later, along with Variant which has the same problem and
is also fixed for debug only.
2020-05-16 18:13:25 +02:00
SkyJJ
cc473b948f
Fix Android LineEdit editing bugs
2020-05-16 17:55:27 +02:00
Marcus Brummer
b048eb05ad
Fixed text editor drawing if smooth scrolling is disabled.
...
Fixes #38778
2020-05-16 16:31:43 +02:00
Hugo Locurcio
d935a4348d
Remove HQ2X and the `Image.expand_2x_hq2x()` method
...
As of Godot 3.0, HQ2X is no longer used to upscale the editor theme
and icons on hiDPI displays, which limited its effective uses.
HQ2X was also used to upscale the project theme when the "Use Hidpi"
project setting was enabled, but results were often less than ideal.
The new StyleBoxFlat and SVG support also make HQ2X less important
to have as a core feature.
This decreases binary sizes slightly (-150 KB on most platforms,
-212 KB on WebAssembly release).
This partially addresses #12419 .
2020-05-16 16:10:50 +02:00
Rémi Verschelde
ac58372db8
Merge pull request #38463 from smartin015/3.2-fixgedit
...
Remove get_local_mouse_position() hack in GraphEdit
2020-05-16 13:52:20 +02:00
smartin015
00457c68bc
Remove get_local_mouse_position() hack in GraphEdit
2020-05-16 13:22:52 +02:00
bruvzg
08e80ccd99
Fix popup positions on multiple screens (with same scaling only).
2020-05-16 14:11:43 +03:00
Dominik 'dreamsComeTrue' Jasiński
7f5c81c32f
Replace 'add_child_below_node' with 'add_sibling' in Node
...
Fixes : #19642
2020-05-15 22:02:00 +02:00
Rémi Verschelde
0ee0fa42e6
Style: Enforce braces around if blocks and loops
...
Using clang-tidy's `readability-braces-around-statements`.
https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14 21:57:34 +02:00
Rémi Verschelde
07bc4e2f96
Style: Enforce separation line between function definitions
...
I couldn't find a tool that enforces it, so I went the manual route:
```
find -name "thirdparty" -prune \
-o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \
-o -name "*.glsl" > files
perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files)
misc/scripts/fix_style.sh -c
```
This adds a newline after all `}` on the first column, unless they
are followed by `#` (typically `#endif`). This leads to having lots
of places with two lines between function/class definitions, but
clang-format then fixes it as we enforce max one line of separation.
This doesn't fix potential occurrences of function definitions which
are indented (e.g. for a helper class defined in a .cpp), but it's
better than nothing. Also can't be made to run easily on CI/hooks so
we'll have to be careful with new code.
Part of #33027 .
2020-05-14 16:54:55 +02:00
Rémi Verschelde
0be6d925dc
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
...
Which means that reduz' beloved style which we all became used to
will now be changed automatically to remove the first empty line.
This makes us lean closer to 1TBS (the one true brace style) instead
of hybridating it with some Allman-inspired spacing.
There's still the case of braces around single-statement blocks that
needs to be addressed (but clang-format can't help with that, but
clang-tidy may if we agree about it).
Part of #33027 .
2020-05-14 16:54:55 +02:00
Rémi Verschelde
710b34b702
Style: Fix missing/invalid copyright headers
2020-05-14 16:54:54 +02:00
Ignacio Roldán Etcheverry
27b4915fa8
Merge pull request #38718 from neikeq/fix-bindings-after-lightmapper
...
Fix C# bindings after lightmapper changes
2020-05-14 16:12:26 +02:00
Rémi Verschelde
a1aaed5a84
Remove redundant void argument lists
...
Using clang-tidy's `modernize-redundant-void-arg`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-redundant-void-arg.html
2020-05-14 13:51:45 +02:00
Rémi Verschelde
dcd1151d77
Enforce use of bool literals instead of integers
...
Using clang-tidy's `modernize-use-bool-literals`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-bool-literals.html
2020-05-14 13:45:01 +02:00
Rémi Verschelde
1a8167867b
Modernize remaining uses of 0/NULL instead of nullptr (C++11)
...
Using clang-tidy's `modernize-use-nullptr`.
https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
2020-05-14 13:45:01 +02:00
Rémi Verschelde
1f6f364a56
Port member initialization from constructor to declaration (C++11)
...
Using `clang-tidy`'s `modernize-use-default-member-init` check and
manual review of the changes, and some extra manual changes that
`clang-tidy` failed to do.
Also went manually through all of `core` to find occurrences that
`clang-tidy` couldn't handle, especially all initializations done
in a constructor without using initializer lists.
2020-05-14 10:01:56 +02:00
Ignacio Etcheverry
af78a69b6f
Fix C# bindings after lightmapper changes
2020-05-13 15:54:30 +02:00
Rémi Verschelde
6dfea347b0
Merge pull request #38655 from ice-blaze/minimap-shifted-selection-by-one-line#38532
...
Fix minimap selection offset
2020-05-12 18:02:21 +02:00
Rémi Verschelde
d3bd219362
doc: Sync classref with current source
...
Adds API changes from the new GPU lightmapper.
2020-05-12 10:10:50 +02:00
Rémi Verschelde
66b0b0c153
Merge pull request #38635 from Calinou/tilemap-rename-ysort-index
...
Rename various TileMap methods/properties for clarity and consistency
2020-05-11 23:05:15 +02:00
Rémi Verschelde
83b630b8c2
thirdparty: Cleanup after #38386 , document provenance and copyright
...
Also renamed `delaunay.h` to `delaunay_2d.h` to match the class name.
2020-05-11 14:50:06 +02:00
Rémi Verschelde
32133a11b5
Merge pull request #38386 from reduz/new-lightmapper
...
New GPU lightmapper
2020-05-11 13:45:48 +02:00
Rémi Verschelde
f7254cf43c
Merge pull request #38491 from eduardonunesp/input-line-osx-selection
...
Using the common behaviour when use command+shift on text line for osx
2020-05-11 11:13:12 +02:00
Rémi Verschelde
22db301009
Merge pull request #31938 from KoBeWi/a_welcome_lag
...
Fix VisibilityEnabler2D behavior on start
2020-05-11 10:27:42 +02:00
Eduardo Nunes Pereira
d8f8a3c606
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
2020-05-11 10:25:07 +02:00
etienne.frank
72ab355945
Fix minimap selection offset
...
The minimap selection was shifted of 1 line too late.
2020-05-11 10:02:16 +02:00
Juan Linietsky
1bea8e1eac
New lightmapper
...
-Added LocalVector (needed it)
-Added stb_rect_pack (It's pretty cool, we could probably use it for other stuff too)
-Fixes and changes all around the place
-Added library for 128 bits fixed point (required for Delaunay3D)
2020-05-10 15:59:09 -03:00
Hugo Locurcio
c64c45ccaf
Rename various TileMap methods/properties for clarity and consistency
...
The YSort renames were tracked in https://github.com/godotengine/godot/issues/16863 .
This closes https://github.com/godotengine/godot-proposals/issues/814 .
2020-05-10 19:16:38 +02:00
Rémi Verschelde
94721f5ab8
Revert "Renamed plane's d to distance"
...
This reverts commit ec7b481170
.
This was wrong, `d` is not a distance but the `d` constant in the
parametric equation `ax + by + cz = d` describing the plane.
2020-05-10 16:47:11 +02:00
Rémi Verschelde
69de7ce38c
Style: clang-format: Disable AllowShortCaseLabelsOnASingleLine
...
Part of #33027 .
2020-05-10 13:13:54 +02:00
Rémi Verschelde
e956e80c1f
Style: clang-format: Disable AllowShortIfStatementsOnASingleLine
...
Part of #33027 , also discussed in #29848 .
Enforcing the use of brackets even on single line statements would be
preferred, but `clang-format` doesn't have this functionality yet.
2020-05-10 13:12:16 +02:00
Rémi Verschelde
03b13e0c69
Style: Add missing copyright headers
2020-05-10 13:12:16 +02:00
Rémi Verschelde
9cc67b19b8
Merge pull request #38613 from MCrafterzz/plane
...
Renamed plane's d to distance
2020-05-10 13:06:55 +02:00
Marcel Admiraal
68eaaa6d6b
Prevent CapsuleShape2D height from being less than zero.
2020-05-10 11:45:27 +01:00
Marcus Elg
ec7b481170
Renamed plane's d to distance
2020-05-10 12:12:51 +02:00
Marcus Elg
9a7e515d50
Rename Lineshapes d to distance
2020-05-09 15:10:00 +02:00
Hugo Locurcio
3a11baaeac
Turn the anisotropic filtering setting into an enum
...
Since it only accepts power-of-two values, exposing it as an enum
makes more sense. This also allows for adding property hints to indicate
the performance cost of each value.
This also improves property hints for MSAA and FXAA.
2020-05-08 12:07:35 +02:00
Tomasz Chabora
d0c5d91032
Fix VisibilityEnabler2D behavior on start
2020-05-08 11:19:52 +02:00
Mateo Kuruk Miccino
e253451a5b
GUI: Touch screen button click area now is synced with its draw
...
(cherry picked from commit 1cba7fb180
)
2020-05-07 21:21:13 +02:00
Rémi Verschelde
d7b85fbaa1
Merge pull request #31086 from volzhs/underline
...
Use underline position and thickness value in font file
2020-05-07 21:18:41 +02:00
Rémi Verschelde
bef52957d0
Merge pull request #38226 from Calinou/increase-camera3d-fov
...
Increase the default Camera3D field of view to 75
2020-05-07 21:16:21 +02:00
Rémi Verschelde
b62218bbac
Merge pull request #38385 from ThakeeNathees/method-bind-text_edit-set_line
...
method bind TextEdit::set_line() added
2020-05-07 13:43:34 +02:00
Rémi Verschelde
49a1e3db12
Merge pull request #38524 from hoontee/master
...
Fix bug with AudioStreamPlayer3D audio position
2020-05-07 11:18:20 +02:00
hoontee
330bd686ab
Fix bug with AudioStreamPlayer3D audio position
...
Applies 0c78a58b64
to `AudioStreamPlayer3D::play`.
2020-05-07 02:23:50 -05:00
nobuyuki_nyuu
35f30086de
PopupMenu.get_current_index() bound to ClassDB
2020-05-06 15:27:35 -05:00
Rémi Verschelde
aca9cfa76c
Merge pull request #38495 from DarkMessiah/tree-bind-suffix
...
Bind set_suffix and get_suffix in Tree
2020-05-06 13:58:34 +02:00
Rémi Verschelde
ca289f4d6f
Merge pull request #38488 from EricEzaM/adjust-stretch-ratio-value-range-and-documentation
...
Updated editor spin slider to have better behaviour and adjusted control's size_flags_stretch_ratio value range
2020-05-06 10:06:53 +02:00
Stanislav Labzyuk
ac8814624d
Bind set_suffix/get_suffix in Tree
2020-05-06 14:47:19 +07:00
Eric M
915ab50673
Updated editor spin slider to have better behaviour and adjusted control's size_flags_stretch_ratio value range
2020-05-06 17:43:31 +10:00
Rémi Verschelde
42649565e9
Merge pull request #38475 from Chaosus/vs_quals
...
Added uniform qualifiers to visual shaders
2020-05-06 07:27:35 +02:00
Rémi Verschelde
4d50f747d5
Merge pull request #37293 from Janglee123/ctrl-click-improvements
...
Improved go-to definition (Ctrl + Click)
2020-05-05 16:49:15 +02:00
Rémi Verschelde
88e242116a
Merge pull request #38480 from ThakeeNathees/tween-get-set-fix
...
Fix: Tween always return true for _get(), _set()
2020-05-05 16:43:54 +02:00
Thakee Nathees
2811268231
Fix: Tween always return true for _get(), _set()
2020-05-05 16:32:33 +05:30
Yuri Roubinsky
463e4ad0f5
Some fixes for canvas item visual shader inputs
2020-05-05 13:19:36 +03:00
Yuri Roubinsky
082542b525
Added uniform qualifiers to visual shaders
2020-05-05 11:25:48 +03:00
janglee
be7a353c70
Improved go-to definition (Ctrl + Click)
...
Co-Authored-By: Bojidar Marinov <bojidar.marinov.bg@gmail.com>
2020-05-05 10:46:12 +05:30
Rémi Verschelde
f7ca1c805b
doc: Sync classref with current source
2020-05-04 16:55:01 +02:00
Rémi Verschelde
878adb22b7
Merge pull request #37717 from qarmin/world_fix
...
Change non-existent World to World3D
2020-05-04 16:37:40 +02:00
Rémi Verschelde
560510b93b
Merge pull request #38446 from qarmin/navigation_polygon_type
...
Fixes type of array in _set_outlines function
2020-05-04 16:36:16 +02:00
Rémi Verschelde
69f36cea8c
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.
2020-05-04 16:09:19 +02:00
qarmin
4af274756f
Fixes type of array in _set_outlines function
2020-05-04 07:39:40 +02:00
Rémi Verschelde
ec542db782
Merge pull request #38394 from reduz/implement-skew
...
Implement Skew in Node2D
2020-05-03 18:17:08 +02:00
Thomas Riedmair
e0f084b924
Fix performance issue in update_bitmask_region fallback
2020-05-03 00:27:47 +02:00
Bastiaan Olij
45d1f41837
Added missing spring enums for generic_6dof_joint
2020-05-02 21:49:56 +10:00
Juan Linietsky
efb1f7d76b
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
2020-05-01 13:38:04 -03:00