Commit Graph

1659 Commits

Author SHA1 Message Date
Pedro J. Estébanez d7195c18d7 Update collision shapes data on tree entered
This is needed because the final startup values for shapes may change between parenting and entering the scene tree. For instance, if the collision shape belongs to a inherited scene.

Fixes #8896.
2018-01-11 21:29:46 +01:00
Rémi Verschelde 116b0e5328
Merge pull request #15160 from volzhs/tween-follow-2.1
Fix Tween follow not working [2.1]
2018-01-03 11:50:38 +01:00
Rémi Verschelde 4c0053e8e4
Merge pull request #15131 from RandomShaper/fix-multiple-finish-2.1
Fix AnimationPlayer redundantly signaling finish (2.1)
2018-01-03 11:24:28 +01:00
Jakub Grzesik 17850b7b26 AnimationTree nodes sliders fixes
(cherry picked from commit 0fc4b04f51)
2018-01-02 11:51:18 +01:00
Rémi Verschelde 2712014744 Update copyright statements to 2018
Happy new year to the wonderful Godot community!
2018-01-02 11:27:24 +01:00
volzhs 546bb99563 Fix Tween follow not working
Fix regression from 01ef7a73de
2017-12-29 22:02:04 +09:00
Pedro J. Estébanez 4a09b60af5 Fix AnimationPlayer redundantly signaling finish
Now it will emit only when actually going from not-finished-yet to finished, as has always been the case.

The bug was a side effect of a0a9363b7a.
2017-12-28 21:50:21 +01:00
Rémi Verschelde 74a8a91da3
Merge pull request #13230 from sersoong/2.1-test2
Add 'uppercase' and 'lowercase' to script editor
2017-12-17 20:56:42 +01:00
Xavier Sellier 487773ed24 Remove funny output during when exporting a project or loading Godot Engine 2017-12-11 11:13:04 -05:00
Rémi Verschelde 6a4e7198c5 Style: apply clang-format (5.0.0) to current source 2017-12-11 15:31:49 +01:00
Rémi Verschelde acb7107720 Style: apply clang-format (3.9.1) to current source 2017-12-11 15:18:06 +01:00
sersoong bcfe3dcd35 Add 'uppercase' and 'lowercase' to script editor 2017-12-10 09:17:40 +08:00
Rhody Lugo 714e02c0f6 disable caching for targets using helper functions 2017-11-28 16:14:24 -04:00
Rhody Lugo 388249c386 use the same cache for all branches for appveyor 2017-11-28 03:23:51 -04:00
Rémi Verschelde 55c010aa61
Merge pull request #11837 from Listwon/FixEditorTooltips
Fix "enable_object_picking" disables editor tooltips
2017-11-10 10:57:53 +01:00
Rémi Verschelde fb9e830b08
Merge pull request #10769 from RandomShaper/fix-joints-2.1
Fix joints collision exceptions, plus a bit more (2.1)
2017-11-04 11:37:28 +01:00
Pedro J. Estébanez a0a9363b7a Fix animation not stopping after seeking to the end
Fixes #10228.

(cherry picked from commit 2d2467c0ff)
2017-10-14 22:23:52 +02:00
Rémi Verschelde 5ac1348523 Merge pull request #11911 from Paulb23/line_edit_caret_resetting_2_1
Fixed caret settings resetting (2.1)
2017-10-09 14:52:44 +02:00
Paulb23 dcaa7ba2b8 Fixed carret settings resetting (2.1) 2017-10-07 14:54:10 +01:00
Paulb23 8cc56c16cf Added members overview (2.1) 2017-10-07 14:41:46 +01:00
Bartłomiej T. Listwon 924cd6c56d Fix "enable_object_picking" disables editor tooltips
"enable_object_picking" was linked to Viewport's set_fixed_process() and controlled processing of  NOTIFICATION_FIXED_PROCESS which handles physics_object_picking, tooltips and debug drawing collision contacts. Fixes #8347
2017-10-04 20:16:22 +02:00
Bartłomiej T. Listwon 956327d972 Fix LINK/UNLINK console spam with navmeshes
Removed unnecessary debug messages. Fixes #10804
2017-10-03 19:54:55 +02:00
Indah Sylvia f50a0cecd9 Fixed typo: 'texure' to 'texture' 2017-09-29 04:30:06 +07:00
volzhs 3cd5f73a02 LineEdit in Tree is located vertically center
This is made separated commit to cherry-pick easily on another branch
2017-09-04 21:25:15 +09:00
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
Pedro J. Estébanez 4a98a59aa6 Fix joints collision exceptions
Fix 3D joint handling of collision exceptions, so that they lose effect when the joint is not valid in every case; also some redundant code removed.

Also avoid trying to create the joint when not neither body A nor body B are set.

Make 2D joints be handled like their 3D counterparts, which adds the fixes to them while also removing duplicated code.

Fixes #2383.
2017-08-29 23:28:48 +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