Commit graph

26437 commits

Author SHA1 Message Date
Alexander Holland
b1b308411a Fixes Android FileDialog
- Go up was not working, simplify was used one time too much
- Added GestureHandler
  - Added doubleTap to recognize open dir
  - Fixed scroll where sometimes the scroll jumped between start and end when pointer was outside or on the edge of the scroll area
2020-01-10 15:25:08 +01:00
Andrea Catania
9f1f4620e0 Added function to expose floor normal, useful to correctly calculate player velocity.
This work has been kindly sponsored by IMVU.
2020-01-10 14:58:19 +01:00
Hugo Locurcio
8e3e41642b
Add a zsh completion file for the Godot editor
This provides rich autocompletion when using Godot's command line
interface.
2020-01-10 14:54:04 +01:00
Rémi Verschelde
840c60a1ea
Merge pull request #34989 from akien-mga/warning-crash-handler-x11-32
Fix warning in Linux crash handler on 32-bit
2020-01-10 14:48:55 +01:00
Rémi Verschelde
673f4fabd8
Merge pull request #34962 from KoBeWi/randocs
Complete documentation of various classes
2020-01-10 14:41:30 +01:00
Rémi Verschelde
3f8c93dffe Fix warning in Linux crash handler on 32-bit 2020-01-10 14:28:21 +01:00
Tomasz Chabora
508e624b87 Complete documentation of various classes 2020-01-10 14:14:07 +01:00
Rémi Verschelde
25c024acfd
Merge pull request #33149 from Calinou/cli-scene-path-parsing-stricter
Be stricter on what's considered a scene path in CLI argument parsing
2020-01-10 13:48:28 +01:00
Rémi Verschelde
f8da87c763
Merge pull request #34986 from toasteater/feature/is-instance-id-valid
Expose instance_from_id to GDNative
2020-01-10 13:32:24 +01:00
Hugo Locurcio
0218494e6b
Be stricter on what's considered a scene path in CLI argument parsing
This closes #8721.
2020-01-10 13:18:24 +01:00
toasteater
677e72d2f6 Expose instance_from_id to GDNative
This function is available to GDScript but not to GDNative. When exposed, it
allows building more ergonomic safe abstractions over the GDNative APIs, and
covers the use cases of the original PR.

Close #28478. Supersedes #28791.

Co-authored-by: Markus Ewald <cygon@nuclex.org>
2020-01-10 11:59:37 +00:00
Rémi Verschelde
abefd42e84
Merge pull request #34985 from bruvzg/macos_dmg_create_folders
macOS DMG export: create folder structure for the extracted files.
2020-01-10 11:43:05 +01:00
bruvzg
9abde1626f
macOS DMG export: create folder structure for the files extracted from export template ZIP. 2020-01-10 12:28:32 +02:00
Rémi Verschelde
ff173ff770
Merge pull request #34983 from Chaosus/fix_shader_switch
Fix nested break/return in shader switch statement
2020-01-10 10:47:38 +01:00
Rémi Verschelde
59a2fed1e6
Merge pull request #34938 from OverloadedOrama/fix-basebutton-button-press
Fixes BaseButton not triggering the pressed signal on "Button Press"…
2020-01-10 10:35:11 +01:00
Rémi Verschelde
c51c7eb5bd
Merge pull request #34979 from timothyqiu/label-autowrap
Update minimum size on Label::set_autowrap
2020-01-10 10:34:24 +01:00
Haoyu Qiu
fbd937bd30 Update minimum size on Label::set_autowrap
If `clip_text` is true, the minimum height is one line if `autowrap` is
true , or one pixel otherwise.
2020-01-10 17:08:27 +08:00
Rémi Verschelde
83d950b58e
Merge pull request #34968 from Calinou/enable-vsync-via-compositor
Enable Vsync via Compositor by default
2020-01-10 10:04:55 +01:00
Rémi Verschelde
9a81b36da1
Merge pull request #34982 from akien-mga/main-prevent-pm-in-editor
Main: Prevent Project Manager-ception in editor
2020-01-10 10:03:44 +01:00
Yuri Roubinsky
1e154e0947 Fix nested break/return in shader switch statement 2020-01-10 11:57:56 +03:00
Rémi Verschelde
5377f062d4 Main: Prevent Project Manager-ception in editor
Fixes #34904.
2020-01-10 09:48:03 +01:00
Rémi Verschelde
65446a1303
Merge pull request #34981 from timothyqiu/trim-group-name
Trims user provided group name
2020-01-10 09:37:39 +01:00
Rémi Verschelde
4bad292f20
Merge pull request #34969 from volzhs/anim-bezier
Fix inserting bezier curve in Animation editor
2020-01-10 09:36:45 +01:00
Haoyu Qiu
715c0f9dfd Trims user provided group name 2020-01-10 16:08:47 +08:00
Rémi Verschelde
4b83bbd463
Merge pull request #34937 from YeldhamDev/scriptdiag_disable_load
Add option to disable loading scripts in ScriptCreateDialog
2020-01-10 08:18:51 +01:00
Rémi Verschelde
0d2993659b
Merge pull request #34978 from GodotExplorer/lsp-fix-bracket-completion
LSP: Fix bracket completion for functions with one argument
2020-01-10 07:58:26 +01:00
Rémi Verschelde
9cae13b103
Merge pull request #34975 from YeldhamDev/tileseteditor_region_workspace_size
Fix TileSet editor's workspace size sometimes not changing correctly on region change
2020-01-10 07:52:33 +01:00
Rémi Verschelde
09aa12a0dd
Merge pull request #34958 from vnen/gdscript-is-check-valid-instance
GDScript: Validate object instance on `is` operation
2020-01-10 07:40:56 +01:00
Rémi Verschelde
a126bda47b
Merge pull request #34965 from MadEqua/fix-android-exporter-manifest
Fix Android exporter manifest creation.
2020-01-10 07:35:53 +01:00
Geequlim
6190d42825 LSP: Fix bracket completion for functions with one argument 2020-01-10 14:23:01 +08:00
Rémi Verschelde
9e09704ac5
Merge pull request #32967 from groud/dont-compile-editor-only
Don't compile editor-only functions when tools=no
2020-01-10 07:18:13 +01:00
Michael Alexsander
34f1dbaf28 Fix TileSet editor's workspace size sometimes not changing correctly on region change 2020-01-10 00:57:49 -03:00
Hugo Locurcio
9600fd5dde
Enable Vsync via Compositor by default
This feature was added in #33414 but it was disabled by default.
Now that it got some testing, it's probably safe to enable it
by default.
2020-01-09 22:22:11 +01:00
volzhs
3bcedd02b2 Fix inserting bezier curve in Animation editor 2020-01-10 06:22:10 +09:00
Gilles Roudière
b5251eb00f Don't compile editor-only function when tools=no 2020-01-09 22:15:48 +01:00
Bruno Lourenço
90b49e8888 Fix Android exporter manifest creation. 2020-01-09 20:46:06 +00:00
George Marques
76678b2609
GDScript: Fix type name on error message for function parameters 2020-01-09 15:50:06 -03:00
George Marques
1aef8bfeb1
GDScript: Fix resolution of default parameter values
Fix #26556
2020-01-09 15:42:31 -03:00
George Marques
3718f8f592
GDScript: Validate object instance on is operation
Avoids crashes on debug mode. Instead it now breaks the execution and
show the error in-editor. Will still crash on release.

Also add a similar check to Marshalls to ensure the debugger doesn't
crash when trying to serialize the invalid instance.
2020-01-09 13:59:33 -03:00
Michael Alexsander
8708d44a50 Add option to disable loading scripts in ScriptCreateDialog 2020-01-09 13:09:23 -03:00
Rémi Verschelde
a0ce88f953
Merge pull request #34955 from sketchyfun/camera_project_fix
Fixed camera project_position function returning the wrong x & y values
2020-01-09 15:53:15 +01:00
Ben Hickling
fdd7cfa820 fixed camera project_position function that was still using the near parameter in a few calculations 2020-01-09 14:34:31 +00:00
Rémi Verschelde
9fa8d42dd5
Merge pull request #34953 from vnen/gdscript-index-double-eval
GDScript: Don't re-evaluate index on assigment with operation
2020-01-09 15:12:17 +01:00
George Marques
cc9ca9eb34
GDScript: Don't re-evaluate index on assigment with operation
Pass the calculated index from the stack and use the same to get and set
the value. This avoids a function with side effects being evaluated
twice when using indexing in an assignment with operation statement
(e.g. a[function()] += 1).
2020-01-09 10:43:29 -03:00
Rémi Verschelde
e97e951741
Merge pull request #34948 from vnen/gdscript-copy-constructor
GDScript: Allow copy constructor for built-in types
2020-01-09 13:42:10 +01:00
Rémi Verschelde
05a3e0e344
Merge pull request #34946 from vnen/gdscript-ternary-warning
Add GDScript warning for standalone expression
2020-01-09 13:35:54 +01:00
George Marques
41ed905c1a
GDScript: Allow copy constructor for built-in types
Those are implicitly defined in Variant.
2020-01-09 09:03:09 -03:00
Rémi Verschelde
be97c4cd48
Merge pull request #34717 from madmiraal/update-appveyor2
Use current versions of software in Appveyor.
2020-01-09 12:39:05 +01:00
Rémi Verschelde
2718179bf3
Merge pull request #34944 from akien-mga/doc-directory-preopened
Doc: Mention that Directory pre-opens res:// by default
2020-01-09 12:32:31 +01:00
George Marques
7d4fc79eb3
Add GDScript warning for standalone expression
This makes the error message clearer as it might be used to call
functions with side effects.
2020-01-09 08:30:14 -03:00