Commit Graph

1670 Commits

Author SHA1 Message Date
Rémi Verschelde fe04134138 Let queue_free() work on nodes which are not in the scene tree
In practice such nodes could directly be free()'ed, but this little change
prevents users from leaking memory by mistake.
Closes #9074.
2018-03-30 19:55:42 -04:00
Pedro J. Estébanez 00c308a8fa Add null check to CollisionPolygon2D
It's `_update_xform_in_parent()` wasn't null-checking, while other colliders like `CollisionShape2D` were.

Fixes #17780.
2018-03-27 19:37:51 +02:00
Pedro J. Estébanez 6c76b3447d Fix any joint requiring two bodies 2018-03-21 21:44:37 +01:00
Ranoller 271e031d5f
Backport FIX mouse notifications missings ->godot2
Backport Fix to this issue #17202
2018-03-03 03:52:57 +01:00
Rémi Verschelde 2caaaf3abf Fix serialization of identifiers with non printable ASCII characters
Fixes #6888.

Also apply the same logic in the 2 to 3 exporter, fixes #16850.
2018-03-02 13:32:33 +01:00
Sofox afccc72be3 Fix for Parallax Mirroring regression introduced by pull request #12709. Ensures that parallax layers are mirrored while still keeping parallax zoom fixes of previous pull request. 2018-02-18 15:47:38 +00:00
Xavier Sellier d7c349fea4 Bugfix: Godot engine crashes due to _clear function 2018-02-16 15:08:05 -05:00
Xavier Sellier d0641a7528 Clear function made godot crashing because line_number is below 0
- Adding a MAX(0, index) in order to have at least 0 inserted in the history
2018-02-14 23:53:47 -05:00
Rémi Verschelde 68877ead9a
Merge pull request #12709 from TheSofox/parallax-fix-2.1
Parallax Fixes for dealing with Camera Scale
2018-02-14 16:14:06 +01:00
Xavier Sellier 9b5bf3602e Bugfix: It allows to Undo the Clear Action 2018-02-01 10:49:02 -05:00
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
Sofox f5b6bfbbd1 Parallax Fixes. Ensures Parallax Background works at different zoom levels, both when the camera is Centered and Fixed TopLeft. 2017-11-06 19:34:46 +00: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