Commit graph

1592 commits

Author SHA1 Message Date
AlexHolly
c1c29b1820 fix missing DEFVAL
(cherry picked from commit 4062456c41)
2017-07-30 21:41:47 +02:00
Poommetee Ketson
33bdd92f1e LineEdit: don't undo uneditable LineEdit
(cherry picked from commit 9be034a8cd)
2017-07-30 21:14:13 +02:00
Pedro J. Estébanez
db3c1e83e7 Add special handling for single-color Polygon2D
Fixes #6060.
2017-07-28 15:21:49 +02:00
Rémi Verschelde
fe5eb2a0bc Revert "Fix autoplay animation starts from last editor state #8976"
This reverts commit 0aa6b4aac7.

It's a compatibility breaking change, so it shouldn't be done in the 2.1 branch.
2017-07-27 07:42:47 +02:00
Rémi Verschelde
ecc8382a8a Merge pull request #9834 from RandomShaper/fix-node-crash-2.1
Fix Node::move_child() crash if moving to the end plus one (2.1)
2017-07-25 08:12:30 +02:00
Pedro J. Estébanez
c1630f0e60 Fix Node::move_child() crash if moving to the end plus one
(cherry picked from commit 6c1b7fd899)
2017-07-25 05:21:58 +02:00
alexholly
0cc1ba947f removed floor so that global pos works with scale
(cherry picked from commit 3b5ac579a9)
2017-07-14 22:10:41 +02:00
TwistedTwigleg
41b8a28c5f Added additional functions to RichTextLabel:
* Added set_text function to RichTextLabel
* Added percent_visible attributes and functions to RichTextLabel
This should make switching from Label to RichTextLabel easier.

(cherry picked from commit d649140b9b)
2017-07-14 22:09:42 +02:00
TwistedTwigleg
1fa70cf9b6 Fixed set_global_scale in Node2D.
(cherry picked from commit a6feb0943a)
2017-07-14 21:58:54 +02:00
Pedro J. Estébanez
73fb33a931 Remove warnings about benign situations 2017-07-10 16:28:50 +02:00
Rémi Verschelde
4f220a6552 Merge pull request #9505 from Keetz/particle-attractor-binding
Added missing binding to _owner_exited
2017-07-05 16:26:22 +02:00
Rasmus Ketelsen
b54c5f3953 Added missing binding to _owner_exited 2017-07-05 11:39:46 +02:00
volzhs
7ca40c3eb9 Fix visibility changes for Spatial 2017-07-03 00:02:36 +09:00
Poommetee Ketson
4a0dc529ce BuildSystem: generated files have .gen.ext 2017-06-25 20:31:56 +07:00
Rémi Verschelde
8d6445b8f3 Merge pull request #7946 from RandomShaper/fix-vis-notifier-2d-2.1
Fix VisibilityNotifier2D viewport offset issue (2.1)
2017-06-25 11:21:43 +02:00
Rémi Verschelde
c5a44eebf5 Merge pull request #8558 from RandomShaper/tilemap-one-way-collision-2.1
Add one-way collision to tile-set/tile-map (2.1)
2017-06-25 11:19:54 +02:00
Rémi Verschelde
148a9e384b Merge pull request #8999 from RandomShaper/fix-physics-2.1
Fix multiple 2D & 3D physics issues (2.1)
2017-06-25 11:12:37 +02:00
geequlim
82224d0b80 Add type statements for RichTextLabel 2017-06-24 14:10:44 +08:00
Thomas Herzog
2bd3792d6a Merge pull request #8434 from hikari-no-yume/Sprite3D_double_sided_flag
Add double-sided flag to SpriteBase3D (fixes #8007)
2017-06-19 23:47:33 +02:00
Pedro J. Estébanez
3e5e8b6c9e Fix multiple issues with 2D & 3D physics
- Use `NOTIFICATION_ENTER`/`EXIT_WORLD` for `Area` (intead of `*_TREE`).
- Now both bodies' and areas' constraints are cleaned up.
- And now also that happens as soon as the space is set to null (i.e., when exiting the tree) instead of only at freeing time.
- When clearing constraints, the loop goes on to the next if the current is already released, instead of breaking.
- When one has been already released, no error is shown from now on, as it's something expected, since a pair (our kind of constraint of interest) can be freed by any of its involved collision objects and the other will try again.
- Implement index shifting (or marking as -1) for shapes indices in collision pairs shapes are removed.
- Standarize behavior of bodies and areas so that anything that invalidates a given pair gives the same result (collision mask, actual collision, etc); for instance, triggering area enter/exit signals.
- Add missing member initializations.
- Extend the new-space-equals-area/body-current-space test to every case.
- Fix 3D ray-casts early accepting Areas (skipping the mask check).
- Fix unpairing of large elements (2D's `BroadPhase2DHashGrid`).

Some of these prevent random crashes caused by constraints with dangling pointers to involved objects.
Fixes #8856.
Fixes #7589.
Fixes #6676.
And maybe others.
2017-06-19 12:02:50 +02:00
Pedro J. Estébanez
2018db093c Add one-way collision to tile-set/tile-map 2017-06-17 22:26:50 +02:00
Hugo Locurcio
db2cb08057 Increase the default perspective camera FOV
This does not affect existing projects, but will affect newly-created
editor settings and Camera nodes.

(cherry picked from commit cdcc3c919b)
2017-06-17 12:31:27 +02:00
Poommetee Ketson
0aa6b4aac7 Fix autoplay animation starts from last editor state #8976
(cherry picked from commit c7ac90c97f)
2017-06-17 12:00:23 +02:00
Pedro J. Estébanez
693ebbb807 Fix/improve TouchScreenButton
- Refactor touch acceptance logic so the same is used whether passby is enabled or not.
- Remove the check for visibility during input handling as it should never fail; instead using now an ERR_FAIL_COND() just in case since we have been checking for that so far.

Fixes #9159.
2017-06-14 17:13:58 +02:00
Rémi Verschelde
7c3b3e0a80 Revert "Fix text warp in color blocks with CJK"
This reverts commit b93fce1c18.

That commit introduced regressions for non-CJK languages are discussed
in #8952. Fixes #9078.
2017-06-07 07:40:06 +02:00
Rémi Verschelde
6fb97d9898 Merge pull request #8952 from GodotExplorer/pr-fix-richtextlabel-warp-CJK
[2.1] Fix text warp in color blocks with CJK
2017-05-27 11:34:31 +02:00
Rémi Verschelde
7b286b06da Merge pull request #8919 from pixelpicosean/fix-item-list-scroll
[2.1] Fix item list scroll speed
2017-05-27 11:20:47 +02:00
Rémi Verschelde
680b905ae4 Merge pull request #8918 from GodotExplorer/pr-expose-texturebutton-resize-model-consts
Expose texturebutton resize model constants
2017-05-27 11:19:24 +02:00
Geequlim
cd778e00dc Fix text warp in color blocks with CJK 2017-05-27 14:07:18 +08:00
Ferenc Arn
c2c1d2076c GDScript bindings for various missing Mesh functions.
Fixes #8041.

(cherry picked from commit f2a335d0c1)
2017-05-27 00:42:59 +02:00
yanorax
06ca73c6f8 Add column_title_pressed signal to Tree node
The Tree node column/table form is missing the ability to
capture column title clicks easily.

Adding this functionality will give us the ability to
create functions such as sort by column, which is a common
table manipulation ability in games/apps.

https://godotengine.org/qa/7699
(cherry picked from commit 7b00ad22b9)
2017-05-27 00:42:58 +02:00
AlexHoratio
3cd1185b25 Fixed #8526, popup menu width now responds to submenu icon
(cherry picked from commit 69359f2220)
2017-05-27 00:42:58 +02:00
Poommetee Ketson
85e6a38c0b RayCast2D: fix detached arrow tip
(cherry picked from commit 64879e592b)
2017-05-26 23:54:34 +02:00
Andreas Haas
4a1c9de869 Tree: Clear search string on selection.
The Tree node has the ability to jump to a specific item by typing the first few chars of it's name.
But on selection ('item_activated' signal), it didn't clear the search string used for that. It was especially annoying in `FileDialog`s and has been bugging me for
ages :P

With this, you can traverse a directory structure in a FileDiag quickly with the keyboard (like you'd expect from pretty much any modern file browser) :)

(cherry picked from commit def41b9856)
2017-05-26 23:45:11 +02:00
Poommetee Ketson
e06fa5a089 LineEdit: fix placeholder text affected by secret
(cherry picked from commit e64c473bc9)
2017-05-26 23:44:24 +02:00
Rémi Verschelde
6cf507f004 Move other lone thirdparty files to thirdparty/misc
Also move Box2D ConvexDecomposition contrib code to
thirdparty/b2d_convexdecomp.

(cherry picked from commit d4029aa51a)
2017-05-26 23:39:47 +02:00
Rémi Verschelde
8312d421c6 Move core thirdparty files to thirdparty/{minizip,misc}
(cherry picked from commit 2398eb6ed4)
2017-05-26 23:29:26 +02:00
Rémi Verschelde
e43e7a414a Fix theme_data.h formatting via make_header.py
Should make clang-format happy.

(cherry picked from commit 5f15f03d38)
2017-05-26 19:11:43 +02:00
Andreas Haas
66a1e049b0 Tree: Ability to add tooltips to TreeItem buttons.
Adds a tooltip parameter to `TreeItem::add_button()` and set a few tooltips in the Project settings and SceneTree dock.

(cherry picked from commit 29999942a2)
2017-05-26 19:05:09 +02:00
Sean Bohan
064dce7a4c Fix item list scroll speed.
Remove the extra `set_val` action after the proper one, so the right scroll value won’t get overrided any more.
2017-05-26 17:25:44 +08:00
Geequlim
166d4cb40c Expose constants of TextureButton 2017-05-26 17:07:38 +08:00
Zireael07
307c5c1afc GDScript can now tell if the wheel is in contact with the ground; change roll influence of the wheel in editor 2017-05-19 11:50:23 +02:00
Rémi Verschelde
21bf3778d5 Merge pull request #8776 from RandomShaper/fix-sample-priority-2.1
Fix priority in sample players (2.1)
2017-05-16 08:12:52 +02:00
Pedro J. Estébanez
40e7f1c3d5 Fix priority in sample players 2017-05-15 20:24:38 +02:00
Rémi Verschelde
aa046a85dc Merge pull request #8740 from pixelpicosean/scrollingWithFactor
Implemented scrolling factor for precision trackpads for 2.1
2017-05-15 07:57:05 +02:00
Rémi Verschelde
caeee17846 Merge pull request #8734 from Faless/various_2.1_cherries
Various 2.1 cherry picks
2017-05-15 07:55:27 +02:00
Sean Bohan
ee670f3724 Implemented scrolling factor for smooth trackpad scrolling
Working platforms platform: OSX, Windows.
Support for almost all ui elements, including project list.

Ported from 304a1f5b5a (#7864).
Fixes #492 and #3913.
2017-05-15 06:44:00 +08:00
Fabio Alessandrelli
56e23624bf Fix bug in pause mode propagation
Pause mode was not correctly propagating effectively stopping
immediately when the mode was not PAUSE_MODE_INHERIT.

(cherry picked from commit a5ce7a98cb)
2017-05-12 20:01:53 +02:00
Rémi Verschelde
e7328fe5a0 Fix return statement in CanvasItem::get_global_transform_with_canvas
Thanks to @susnux for the report and patch in #5446.
2017-05-12 19:54:54 +02:00
Fabio Alessandrelli
2665460390 Fix bug with viewport not correctly setting audio listener 2d 2017-05-05 15:21:42 +02:00