Commit Graph

1634 Commits

Author SHA1 Message Date
Rémi Verschelde e59bb87fb6 Merge pull request #10690 from volzhs/editor-font
Replace default editor font to NotoSansUI
2017-08-31 11:50:44 +02:00
Rémi Verschelde 2c60a5560f Merge pull request #10362 from RandomShaper/tilemap-global-mtl-2.1
Let TileMap apply its material (2.1)
2017-08-30 16:02:28 +02:00
Rémi Verschelde f48f6cea06 Revert "Fixed not being able to scroll to eof"
This reverts commit 802fab11e4,
it was not relevant for the 2.1 branch.

Fixes #10738.
2017-08-30 15:58:34 +02:00
Rémi Verschelde 01ef7a73de Merge pull request #10681 from cryptonaut/issue9187
Cleaned up logic in Tween::_tween_process(), fixes #9187
2017-08-30 12:47:26 +02:00
volzhs 110da7f816 Replace default editor font to NotoSansUI 2017-08-29 17:42:55 +09:00
eon-s abad609e1b Fix wall detection on move_and_slide (2.1).
Fixed a bug on wall detection, now  `is_on_wall/ceiling/floor` methods give the correct results.

Also added floor angle as optional parameter like on the 3.0 counterpart (floor and ceiling share the same parameter).
2017-08-28 22:35:44 -03:00
Rémi Verschelde 9d598833d2 Use HTTPS URL for Godot's website in the headers 2017-08-27 14:11:45 +02:00
Rémi Verschelde 886c7d82d0 Re-apply clang-format to all files
Some badly formatted code has managed to pass through our CI...
2017-08-27 14:11:11 +02:00
Rémi Verschelde 449ef95c40 Node: Add debug info to add_child reparenting check
(cherry picked from commit 3c5ce736e6)
2017-08-27 13:03:05 +02:00
Andreas Haas f9ad5c3c4f TextEdit: Copy whole line if not having selection.
The functionality was already there but hidden behind a bogus return statement.
Fixes #10485

(cherry picked from commit 5d25f6397f)
2017-08-27 12:58:25 +02:00
Hein-Pieter van Braam bec8fd1732 Fix color_ramp indexing negative elements
The 'pos' variable passed to get_color() and get_offset() can be
negative if the color ramp itself is empty. This causes a lookup in an
empty position in the color Vector which leads to a crash.

We add a check so we never do a lookup in the color Vector if the
gradient is empty.

This fixes #10501

(cherry picked from commit 67b9d6eef2)
2017-08-27 12:56:05 +02:00
Paulb23 802fab11e4 Fixed not being able to scroll to eof
(cherry picked from commit a0457341fc)
2017-08-27 12:48:33 +02:00
Andreas Haas e41b44747c TextEdit: Fix line padding.
off-by-one error in the line count calculation.

Fixes #10411

(cherry picked from commit 58b2f441a7)
2017-08-27 12:40:27 +02:00
Andreas Haas 2ab7a6feb0 TextEdit: Moving between words now works across lines.
Fixes #10403

(cherry picked from commit 3f2d806b02)
2017-08-27 12:36:33 +02:00
TwistedTwigleg 34263fd39f Exposed create_from_mesh in Navmesh
(cherry picked from commit deaf095dcf)
2017-08-27 12:22:37 +02:00
cryptonaut 14f806ed9d Cleaned up logic in Tween::_tween_process(), fixes #9187 2017-08-26 22:34:15 -07:00
elasota 0895f02d87 "On Top" flag for Sprite3D 2017-08-24 23:12:11 +02:00
elasota 91140904cc Fix AtlasTexture + Sprite3D using the wrong UV region
- Change get_rect_region to return UV region instead of pixel rect
- Fixed atlas texture Sprite3D Y offsets being applied in the wrong direction and fixed Flip not adjusting the geometry.
- Changed get_rect_region name to get_rect_region_uv_rect
2017-08-24 23:05:49 +02:00
Hein-Pieter van Braam 7d190b61c8 Change order of Null check for ParallaxLayer
The change in #10524 subtly changes the behavior of set_motion_scale()
and set_motion_offset() if the ParallaxLayer does not have a parent
node. Previously it would still set the corresponding property, but
after this change the property change would be discarded.

I'm not entirely sure if this actually matters as there doesn't appear
to be any code that picks up this change if the ParallaxLayer gets
re-parented later, but it's better to not change behavior regardless.
2017-08-22 15:17:59 +02:00
Hein-Pieter van Braam f33e8d7793 [2.1] Add null check to ParallaxLayer get_parent() calls
This fixes #10515
2017-08-22 02:14:07 +02:00
Hein-Pieter van Braam 364f2e8082 Correct hash behavior for floating point numbers
This backports the work in #7815 and the subsequent fixes in #8393

The following program now works as expected in this branch in both
release_debug and debug mode:

```gdscript
        print(sqrt(-1))
        print(sqrt(-1))

        var simple1=asin(10.0)
        var simple2=acos(10.0)
        print(simple1)
        print(simple2)
```

And successfully prints -nan 4 times

This fixes #9580 and fixes #8925
2017-08-20 23:44:28 +02:00
Marcelo Fernandez 647c4ae5bf Add closest_power_of_2 func and implement mix_rate/latency on OS X 2017-08-18 12:10:21 -03:00
Pedro J. Estébanez b64d59f200 Fix double point in Navigation2D
Fixes #10324.

(cherry picked from commit 71a496803c)
2017-08-16 13:47:37 +02:00
Pedro J. Estébanez d0d0896c59 Let TileMap apply its material
So when a material is set, every tile will be rendered with that. Quadrants will not be recreated, so a `CanvasItem` will exist per material per quadrant regardless a global material is set.

This makes also __Use parent material__ work for `TileMap`s.

Based on 3bb5abbc35
2017-08-15 23:50:41 +02:00
Juan Linietsky c1b6301050 keep default exported script values unless overriden, closes #8127
(cherry picked from commit 475e8b28b2)
2017-08-13 20:29:43 +02:00
Juan Linietsky 17b04adcc3 emit signal properly when frame has changed in autoplay, fixes #7730
(cherry picked from commit 52649f1038)
2017-08-13 20:26:14 +02:00
Juan Linietsky 61b43492a0 Properly update frame range after modifying the vframe/hframes, closes #7624
(cherry picked from commit e47ecc63ef)
2017-08-13 20:26:13 +02:00
Juan Linietsky a59e1a50bf Warn about resizing a rigidbody (2D or 3D), covers the most common cases, closes #7615
(cherry picked from commit de9fb90dbf)
2017-08-13 20:26:09 +02:00
Jakub Grzesik 9e57957f78 'tab_changed' signal after using 'set_current_tab'
closes #10051

(cherry picked from commit 63ddad98f5)
2017-08-13 18:03:02 +02:00
Poommetee Ketson 4f3abf48d3 MenuButton: defer grab_click_focus until button_up
(cherry picked from commit 49ec6c4380)
2017-08-13 17:57:52 +02:00
Andrii Doroshenko (Xrayez) 7011f11615 Bind some useful methods in SurfaceTool to GDScript
These include:
* generate_tangents()
* add_to_format()
* create_from()
* append_from()

Reordered and grouped the bindings to match the header for improved readability.

Removed commented out `generate_flat_normals()` method which wasn't present
in the header.

Fixes #9946

(cherry picked from commit aa1165a3f5)
2017-08-13 17:55:40 +02:00
Rémi Verschelde 06ef909904 Merge pull request #10306 from marcelofg55/move_and_slide
Ported move_and_slide funcs from 3.0 branch
2017-08-13 17:31:26 +02:00
Marcelo Fernandez 692f97ba9c Ported move_and_slide funcs from 3.0 branch 2017-08-12 12:00:49 -03:00
Rémi Verschelde 1a4c8e8a73 Merge pull request #10199 from jjay/f/stretch_aspect_expand_21
[2.1] Add "expand" option for stretch aspect, no more black bars
2017-08-11 15:55:49 +02:00
Yakov Borevich 3401ca6803 [2.1] Add expand stretch/ascpect - no more black bars 2017-08-09 12:30:06 +03:00
Rémi Verschelde 69f650f98f Merge pull request #9983 from marcelofg55/ieee32_float
Implement 32 bit IEEE float WAVE format
2017-08-08 10:03:33 +02:00
Rémi Verschelde e160084c40 Merge pull request #10054 from Hassan-A/raycastfix
ray cast 2d arrow fix
2017-08-03 13:34:27 +02:00
Hassan A beddde97af ray cast 2d arrow fix
fixes #9636
2017-08-02 20:06:35 -04:00
Rémi Verschelde 04ff3e4238 Merge pull request #9975 from Hassan-A/2.1
added get_used_cells_by_id method
2017-08-02 14:21:54 +02:00
Hassan A aa457ab8e7 added get_used_cells_by_id method
This method will return an array of positions by a specific tile id.
2017-08-02 06:10:50 -04:00
Rémi Verschelde c1f54e1a45 Style: Apply clang-format on all files
Thus fixing some invalid changes that had still made it to the 2.1 branch.
2017-07-30 23:00:25 +02:00
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
Marcelo Fernandez 4e7739ebb6 Implement 32 bit IEEE float WAVE format 2017-07-30 14:39:51 -03: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