Commit Graph

20375 Commits

Author SHA1 Message Date
Rémi Verschelde e7e7d17f6b Display invalid value keys in AnimationTrackEdit
Godot 2.1 and 3.0 had this feature but it was lost in the rewrite
of the animation editor in 3.1.
Drop unused KeyValid icon, since all valid keys now have a custom
type icon.

(cherry picked from commit b3d772ed83)
2019-11-12 13:09:35 +01:00
Rémi Verschelde 229892c40b GDScript: Improve error on Object to Object invalid argument calls
Fixes #27804.

(cherry picked from commit 6750e1b3cd)
2019-11-12 13:09:35 +01:00
Rémi Verschelde cfd9121fa6 glTF: Fix import of animations with INTERPOLATION_LINEAR
Bug found thanks to GCC 8's -Wduplicated-branches.
Slight refactor for readability.

(cherry picked from commit b486f5dde0)
2019-11-12 13:09:35 +01:00
Paulb23 8148732bd1 Fix TextEdit cursor.column having a negative value
(cherry picked from commit 1d55207fd2)
2019-11-12 13:09:35 +01:00
Hein-Pieter van Braam-Stewart 7592b3b9ee Fix a random SSL crash I saw once.
I don't know why this happened, I was debugging another issue. This
should take care of it though.

(cherry picked from commit 64626f682e)
2019-11-12 13:09:35 +01:00
Leonardo Giovanni Scur 19f132b368 Fix pointer position in hidpi-corrected resolutions on web
(cherry picked from commit 31cc1bdb58)
2019-11-12 13:09:35 +01:00
bruvzg 9e2f76f17d [X11] Add window borderless state detection, fix borderless state restoration after exiting fullscreen.
(cherry picked from commit 2a950f3a7c)
2019-11-12 13:09:35 +01:00
Rémi Verschelde e23bde4358 Always pass script path to external editor
Previously you had to set the Exec Flags manually, reading the documentation
to find out what placeholders to use. As most editors should support having
the file path passed as the last argument, we default to doing this if no
custom {file} flag is defined. We also default the Exec Flags to "{file}" and
the placeholder text gives some documentation.

Fixes #29662.

(cherry picked from commit 4a757a2d96)
2019-11-12 13:09:35 +01:00
Toshiwo 656f23fde9 when doing Vector3 slerp it is not necessary to have it normalized.
(cherry picked from commit 3aff645114)
2019-11-12 13:09:35 +01:00
Toshiwo b56fa43090 Fix Vector3 slerp method normalizing cross product
(cherry picked from commit 416a7d06de)
2019-11-12 13:09:35 +01:00
qarmin 1d2aaa447e Fix RichLabelText::_process_line crash
(cherry picked from commit 685451967c)
2019-11-12 13:09:35 +01:00
SamSindt df2a809aae Reversed operator in SortLifetime fixing #29440
(cherry picked from commit 6a23eff748)
2019-11-12 13:09:35 +01:00
qarmin 03a1570a74 Fix 2D Line crash
(cherry picked from commit 2621131549)
2019-11-12 13:09:35 +01:00
qarmin 1f5f2d3ce8 Fix ARVRAnchor and ARVRController error spam
(cherry picked from commit 3de3f87657)
2019-11-12 13:09:35 +01:00
qarmin 8423d98e1c Fix crash with get_keywords_color
(cherry picked from commit 8d993f6357)
2019-11-12 13:09:35 +01:00
Hugo Locurcio d871ac670d Use uppercase for all hexadecimal constants in the editor help
(cherry picked from commit 6516098d12)
2019-11-12 13:09:35 +01:00
bruvzg dce7311aa5 Fix third and fourth level (AltGr / ⌥ modifier) keys input in LineEdit.
(cherry picked from commit 63d8dc0920)
2019-11-12 13:09:35 +01:00
qarmin cb394082ef Fix memory leak after closing files
(cherry picked from commit 53c0a29fb0)
2019-11-12 13:09:35 +01:00
Michael Alexsander Silva Dias 1804a726b4 Fix error spam when typing in the TileMap editor's search box while having no results
(cherry picked from commit 412a0b73e9)
2019-11-12 13:09:35 +01:00
Hein-Pieter van Braam-Stewart ef6d414e6e Fix moving and renaming files
This commit fixes several issues related to moving scenes and resources
in an open project.

* Don't try to reload scenes while not all scenes are updated yet.
* Don't use the UndoRedo system to update non-user initiated editor
state.
* Resave scenes after moving files and updating resource path(s).

(cherry picked from commit 0ac7715a27)
2019-11-12 13:09:35 +01:00
Michael Alexsander Silva Dias 02ccd4d78c Remember selected subtile when updating the TileMap editor
Fixes #29444.

(cherry picked from commit 0a03ed7544)
2019-11-12 13:09:35 +01:00
Bojidar Marinov 22abeff592 Escape node names when saving to .tscn
Fixes #29401

(cherry picked from commit cc004485bc)
2019-11-12 13:09:35 +01:00
Rémi Verschelde 4d6517fad3 Bind missing FLAG_DISABLE_Z enum value in ParticlesMaterial
Fixes #29419.

(cherry picked from commit a3462c97ad)
2019-11-12 11:51:52 +01:00
Tomasz Chabora e66122e0bf Fixed get_item_at_position being weird
(cherry picked from commit 59f403de0b)
2019-11-12 11:47:55 +01:00
Rémi Verschelde f11588e5a5 Fix wrong property binding for NavigationPolygon::vertices
(cherry picked from commit 586539d867)
2019-11-12 11:45:29 +01:00
Rémi Verschelde 9591e2950a Node::duplicate: Don't set name if original node is nameless
In practice this only happens when duplicating a node which is not in
the scene tree yet, as nameless nodes get assigned a generated name
when added to the scene tree.

Fixes #27319.

(cherry picked from commit 0823ae7ae4)
2019-11-12 11:45:10 +01:00
Rémi Verschelde 88cccfb796 Print engine version to stdout when starting Godot
Also include website URL and make it configurable via version.py
together with the rest of the engine branding.

Add mention to MIT license in --help output.

(cherry picked from commit b10dd110e5)
2019-11-12 11:44:46 +01:00
Nils ANDRÉ-CHANG 6afcc72465 Fix Segmentation fault and reduce memory consumption
(cherry picked from commit a156b7976d)
2019-11-12 11:44:04 +01:00
Geequlim 6c71289432 Fix parse error when extends from subclass of named classes
(cherry picked from commit ebcfe28475)
2019-11-12 11:43:11 +01:00
WiggleWizard 4444bd1fcb Fixed virtual method not showing up in autocomplete and docs
(cherry picked from commit aebca30c43)
2019-11-12 11:42:45 +01:00
Tomasz Chabora 7431d3c3c0 Don't modulate canvas on invisible color change
(cherry picked from commit 5e9400b2e3)
2019-11-12 11:42:25 +01:00
Pedro J. Estébanez aacefcb7dc Fix 2D bones ignored by onion skinning
Fixes #27819.

(cherry picked from commit 88153fbb61)
2019-11-12 11:41:51 +01:00
Pedro J. Estébanez 340f542e49 Remove ghost of canvas zoom controls during onion skinning
(cherry picked from commit 3b17e6de33)
2019-11-12 11:41:06 +01:00
Pedro J. Estébanez f040f7c283 Fix canvas zoom controls lazy position update
After hiding/showing rulers, zoom controls were kept at the wrong position until an update happened because of other reason.

(cherry picked from commit 4dd9efe757)
2019-11-12 11:41:02 +01:00
thomas.herzog 2514594a45 [GDNative] fix godot_variant_evaluate function
Fixes #28984

(cherry picked from commit c1e733466b)
2019-11-12 11:40:17 +01:00
Michael Alexsander Silva Dias b01ef197a6 Fix bottom panel visibility behaviour in the theme editor
Fixes #29034, fixes #29056

(cherry picked from commit b5c8205312)
2019-11-12 11:39:53 +01:00
Rémi Verschelde 8dce0ce022 i18n: Skip unsupported locales for editor translations
Godot currently can't properly render scripts that require Right-To-Left
and font shaping support, so we skip those.
This is a temporary measure until these features are supported.

Fixes #28577.

(cherry picked from commit 92f67ceef3)
2019-11-12 11:39:30 +01:00
Martin Dahlgren bfcb9dfa01 Fix getting max magnitude in AudioEffectSpectrumAnalyzer
(cherry picked from commit 47f628a013)
2019-11-12 11:39:12 +01:00
Swarnim Arun 949e1da462 Fix history state setup in VisualScript
(cherry picked from commit 7155477caa)
2019-11-12 11:38:51 +01:00
Hugo Locurcio 665c00eb58 Allow empty replacement texts in the Find in Files replace dialog
This closes #29026.

(cherry picked from commit a411067829)
2019-11-12 11:38:34 +01:00
Guilherme Felipe 14587802f9 [StateMachine] Fix error message for travel method
(cherry picked from commit 4de6c94eb0)
2019-11-12 11:38:14 +01:00
Lukas Zanner 7022e02d4d Initialize padding on PoolByteArray serialization
(cherry picked from commit c35f4e8808)
2019-11-12 11:37:57 +01:00
Ibrahn Sahir 6d57ebed1a MessageQueue::flush now always destroys parameters of a spent message
Previously, destructors of Variant parameters were not called if the
target of the message was not found.

(cherry picked from commit 5626a1ec20)
2019-11-12 11:37:32 +01:00
RameshRavone ffab947e1c NULL global_tag for non exposed classes
(cherry picked from commit 71808b38bc)
2019-11-12 11:35:01 +01:00
Jason 2da174c9b4 Resolve: #24682 CSGPolygon - weird end cap
(cherry picked from commit 89a9f4621f)
2019-11-12 11:34:20 +01:00
Paulb23 909a1cced8 Fix text_edit drawing incorrect chars when syntax highlighting enabled
(cherry picked from commit a8a0392c12)
2019-11-12 11:26:14 +01:00
Fabio Alessandrelli 390dbbbcbd Fix Object::get_indexed for simple properties.
Object::get_indexed was not correctly reporting invalid keys if the name
was a direct property (not a subproperty), causing for example Tween to
not report correctly a bad interpolate_property key.

(cherry picked from commit d39ffc101b)
2019-11-12 11:25:58 +01:00
Frank Secilia 8ee5dc5850 Fix indexing failure in NativeScriptLanguage::unregister_binding_functions.
binding_functions.size() and an instance's binding_data.size() can get out of sync. They sync up when an instance's bindings are requested. When binding functions are registered after creating an instance's bindings, the instance's bindings are out of sync until requested again. If they're never requested, they're never synced.

unregister_binding_functions indexes into binding_data, but only checks that its safe to index into binding_functions. When they're out of sync, indexing fails.

This revision checks that it's safe to index into binding_data.

(cherry picked from commit a4a0e64245)
2019-11-12 11:25:18 +01:00
Gilles Roudière dcc9c1cc2a Fix NaN with get_action_strength
(cherry picked from commit 3bfa080c9c)
2019-11-12 11:24:39 +01:00
Fabio Alessandrelli 53eb140cf1 Fix GDNative library resource loading.
Store general properties in ConfigFile too when modifying them.
Additionally set config_file property as internal as it's not editable
from inspector. It also does not appear to get saved in a meaningful way
(saved as Object(ConfigFile, ...))

(cherry picked from commit aecbb330f3)
2019-11-12 11:24:12 +01:00