Commit Graph

34697 Commits

Author SHA1 Message Date
Rémi Verschelde e3dd38c9f0
Merge pull request #46517 from pdfrod/fix-out-of-bounds-acess-on-x11
Fix out of bounds array access on DisplayServerX11 code
2021-02-28 19:17:32 +01:00
Rémi Verschelde 870de12111
Merge pull request #46474 from RootKiller/fix_joints
Fix for crash after joint connected node is set to null
2021-02-28 18:15:02 +01:00
Pedro Rodrigues 1cb21b6937 Fix out of bounds array access on DisplayServerX11 code
The problem happened on methods `screen_get_position`,
`screen_get_usable_rect` and `window_set_current_screen` when they were
passed a negative screen value.

Fixes:
- #46184
- #46185
- #46186
2021-02-28 16:43:46 +00:00
Oliver Dick 0559fc58d1 SceneTreeDock: Changed "Save Branch as Scene" to make use of Node::duplicate_from_editor, which is also used by "Duplicate" function of the SceneTreeDock
- Removed Node::duplicate_and_reown method as it is not used anymore
2021-02-28 17:19:01 +01:00
Rémi Verschelde 0e77dc6e92
Merge pull request #46475 from RootKiller/fix_joint_collision
Fixed bug that caused collision not to be properly reenabled when joi…
2021-02-28 14:27:18 +01:00
Rémi Verschelde a6ec6521fa
Merge pull request #45201 from EricEzaM/PR/popup-menu-fix
Fixed popup not calculating size correctly before adjusting its rect.
2021-02-28 13:34:06 +01:00
Ryan Roden-Corrent ef5042a70f
Clarify Curve.get_closest_point uses baked points.
Based on the doc, I wasn't sure if get_closest_point would return the
closest baked point or the closest "source" point. It seems to use
baked:
8faecd6a47/scene/resources/curve.cpp (L809)
2021-02-28 07:18:34 -05:00
Rémi Verschelde 8faecd6a47
Merge pull request #46499 from kuruk-mm/fix_cache_load
ResourceLoader: Fix inverse 'if' on the cache mode
2021-02-28 10:32:49 +01:00
Yuri Roubinsky 3326cb02aa
Merge pull request #46441 from Chaosus/fix_graphedit_zoom_connection
Fix GraphEdit port connection when graph is zoomed/unzoomed
2021-02-28 08:21:32 +03:00
Mateo Kuruk Miccino 472673b38d ResourceLoader: Fix inverse 'if' on the cache mode 2021-02-27 21:53:27 -03:00
Rémi Verschelde af5a67b8d8
Merge pull request #46487 from Faless/net/4.x_http_request_eof
[Net] Better EOF handling in HTTPRequest.
2021-02-27 22:25:08 +01:00
Fabio Alessandrelli d61cd469f1 [Net] Better EOF handling in HTTPRequest.
This fix request_completed being emitted two times, the first with the
result, the second as a failure when retrieving responses served with
read-until-EOF.
2021-02-27 21:51:07 +01:00
Eryk Dwornicki fb9d6fcc6d Refactor removal of constraints from bodies in 2D joints 2021-02-27 20:52:01 +01:00
Eryk Dwornicki aa42e8920b Move removal of the constraints from bodies to Joint3DSW destructor
Joint3DSW instances are also destroyed without explicitly calling free()
for example when changing constrainted bodies at runtime using
set_node method.
2021-02-27 20:52:01 +01:00
Yuri Roubinsky e3131adc1c Fix GraphEdit connects when graph is zoomed/unzoomed 2021-02-27 20:26:35 +03:00
Eryk Dwornicki 519e314bea Fixed bug that caused collision not to be properly reenabled when joint between two bodies is destroyed 2021-02-27 17:11:15 +01:00
Rémi Verschelde 0e8fae1038
Merge pull request #46457 from m4gr3d/fix_invalid_missing_templates_error_master
Fix invalid missing template error when the Android build template is not installed
2021-02-27 16:52:25 +01:00
Rémi Verschelde 8870bc7fd0
Merge pull request #46453 from m4gr3d/loosen_restrictions_on_plugin_loading
Update the logic to load Godot Android plugins packaged into the binary.
2021-02-27 16:46:34 +01:00
Rémi Verschelde 21609c3bfd
Merge pull request #46470 from Faless/net/4.x_enet_timeout
Add set_peer_timeout to NetworkedMultiplayerENet.
2021-02-27 16:45:29 +01:00
Rémi Verschelde 8abc79e909
Merge pull request #46473 from angad-k/PathFollow2D-unit-test
Fix some initializations in PathFollow2D's unit test
2021-02-27 16:44:40 +01:00
Angad Kambli eee850dd9e fix initializations of node Path2D unit tests 2021-02-27 20:59:11 +05:30
Rémi Verschelde 213ea175c3
Merge pull request #44974 from Gorgonx7/master
Initial tests for geometry3D
2021-02-27 14:59:33 +01:00
James Gordon a26d4b1727 Added test file and test cases 2021-02-27 13:16:04 +00:00
Fabian 1b54de3039 Add set_peer_timeout to NetworkedMultiplayerENet. 2021-02-27 12:52:12 +01:00
Rémi Verschelde 9b6c3a8719
Merge pull request #46459 from KoBeWi/bruh
Don't check modified time if file doesn't exist
2021-02-27 08:30:57 +01:00
Ignacio Roldán Etcheverry ffc7d0a2d6
Merge pull request #42588 from aaronfranke/cs-instance-generic
Add generic support to PackedScene.Instance in C#
2021-02-27 02:51:05 +01:00
kobewi af069109be Don't check modified time if file doesn't exist 2021-02-26 23:18:50 +01:00
Fredia Huya-Kouadio 6f0ca6c9f7 Fix invalid missing template error when the Android build template is not installed. 2021-02-26 12:31:12 -08:00
Rémi Verschelde 7b685a1558
Merge pull request #46452 from hilfazer/click_mesh_instance_crash_40
Prevent crash when clicking Mesh in MeshInstance when is scene root
2021-02-26 21:00:12 +01:00
hilfazer 1810654369 Prevent crash when clicking Mesh in MeshInstance when is scene root 2021-02-26 19:28:09 +01:00
Fredia Huya-Kouadio 6fd881e43c Update the logic to load Godot Android plugins packaged into the binary.
The previous logic had the side effect of imposing a limit of one plugin per `aar` binary. The update lifts that restriction.
2021-02-26 08:38:39 -08:00
Rémi Verschelde 75d03f1fbd
Merge pull request #46446 from Faless/js/4.x_jsdoc
[HTML5] Document Engine and EngineConfig (jsdoc).
2021-02-26 15:31:44 +01:00
Rémi Verschelde 40a70f1657
Merge pull request #46449 from Faless/js/4.x_editor_html_scons4
[HTML5] Make editor HTML build tag scons4-proof.
2021-02-26 15:22:37 +01:00
Fabio Alessandrelli 4404eb57e4 [HTML5] Make editor HTML build tag scons4-proof.
We used to have it like `$GODOT_VERSION` which caused inconsistencies
between different scons versions when substituting it.
It's now `@GODOT_VERSION@`, which is safe on both scons3 and scons4.
2021-02-26 15:08:47 +01:00
Tomasz Chabora 8df22a03c4 Allow to create a node at specific position 2021-02-26 14:40:28 +01:00
Rémi Verschelde 7bb0d39da4
Merge pull request #46327 from hilfazer/prevent_change_type_on_foreign_nodes
Prevent 'Change Type' on nodes from a foreign scene
2021-02-26 14:37:14 +01:00
Rémi Verschelde 6c75e814c3
Merge pull request #46448 from KoBeWi/savenexit
Save ProjectSettings on editor restart
2021-02-26 14:35:27 +01:00
Rémi Verschelde 4ddf5caa90
Merge pull request #46447 from Faless/fix/4.x_threaded_array
Fix ThreadedArrayProcessor init when NO_THREADS.
2021-02-26 14:34:58 +01:00
kobewi 59e1c007a7 Save ProjectSettings on editor restart 2021-02-26 13:33:08 +01:00
Fabio Alessandrelli dfbeb5ae29 Fix thread_process_array when NO_THREADS. 2021-02-26 12:13:20 +01:00
Fabio Alessandrelli 472482013e [HTML5] Add jsdoc2rst tool.
A template for `jsdoc` that generat the HTML5 public classref.

The script can be run via `npm run docs` to print to stdout.

You can dry run via `npm run docs -- --d dry-run` or write to file via
`npm run docs -- -d /path/to/file.rst`

Also update Makefile in `doc/` and add dry run test to CI.
2021-02-26 11:33:59 +01:00
Fabio Alessandrelli 018ee5a4dc [HTML5] Document Engine and EngineConfig (jsdoc).
This commit also removes the utils.js engine file, moving some of it's
content to config.js and some to engine.js .
2021-02-26 11:33:59 +01:00
Rémi Verschelde d7e6c20c82
Merge pull request #46443 from timothyqiu/doc-bsearch
Fixes typo in Array::bsearch_custom doc
2021-02-26 11:28:32 +01:00
Haoyu Qiu 31243e377f Fixes typo in Array::bsearch_custom doc 2021-02-26 18:01:08 +08:00
Rémi Verschelde d02535f509
Merge pull request #46429 from VedatGunel/add-guide-outline
Add outline to dragged guide text
2021-02-26 10:53:50 +01:00
Rémi Verschelde 9e995e081e
Merge pull request #46432 from nmrkr/uncreatable-type-scene-load
Fix crash when loading a scene containing an uncreatable type
2021-02-26 07:51:28 +01:00
Rémi Verschelde 1f702e35d8
Merge pull request #46430 from kuruk-mm/fix_profile_type
SCons: Fix profile type. It is a string
2021-02-26 07:44:50 +01:00
hilfazer e28cc34db8 Prevent 'Change Type' on nodes from an instanced scene 2021-02-26 07:18:21 +01:00
Aaron Franke 3f50954ced
Add generic support to PackedScene.Instance 2021-02-25 20:49:22 -05:00
Vedat Günel 929da94e2c Add outline to dragged guide text 2021-02-26 03:12:50 +03:00