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