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
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