Yuri Roubinsky
f9ab70eb60
Fix creating a new function in visual scripts
2021-07-10 14:45:53 +03:00
Rémi Verschelde
ca2fda629f
Merge pull request #50290 from reduz/redo-instance-bindings
...
Redo how instance bindings work
2021-07-09 23:25:33 +02:00
reduz
4469144891
Redo how instance bindings work
...
* The harcoded 8 slots are no more and impose limits in the new extension system.
* New system is limitless, although it will impose small performance hit with a mutex.
* Use a token to request the instance binding.
**Warning**: Mono will most likely break as a result of this, will need to be modified to use the new system.
2021-07-08 17:08:12 -03:00
Francois Belair
10429019ad
Implement didClose notification in LSP
2021-07-08 11:40:15 -04:00
PouleyKetchoupp
1de995ae99
Options to clean/simplify convex hull generated from mesh
...
Clean: remove duplicate and interior vertices (uses Bullet algorithm)
Simplify: modify the geometry for further simplification (uses VHACD
algorithm)
In the editor, single convex hull now uses the clean option.
Added a new editor entry to create a simplified convex hull, can be
useful for creating convex hull from highly tessellated triangle meshes.
2021-07-07 12:14:12 -07:00
Rémi Verschelde
fa90b6e285
Merge pull request #50162 from Calinou/inspector-hint-allow-ormmaterial3d
...
Allow using ORMMaterial3D by using BaseMaterial3D as a resource hint
2021-07-06 22:56:06 +02:00
Rémi Verschelde
8771e910e1
Merge pull request #49964 from Calinou/websocketserver-improve-error-reporting
...
Improve error reporting in WebSocketServer
2021-07-06 13:38:43 +02:00
Rémi Verschelde
5ade46199f
Merge pull request #35847 from raniejade/ranie/fix-api-generator
...
Fix gdnative api generation for methods that return enums
2021-07-06 13:35:23 +02:00
Hugo Locurcio
58455b18b5
Improve error reporting in WebSocketServer
...
This should make troubleshooting easier.
2021-07-05 16:35:21 +02:00
Rémi Verschelde
ffab3949e3
Merge pull request #50048 from Calinou/remove-travis-code
...
Remove unused code related to Travis CI
2021-07-05 14:15:24 +02:00
Hugo Locurcio
8f7e1b53ff
Allow using ORMMaterial3D by using BaseMaterial3D as a resource hint
...
Previously, only StandardMaterial3D could be defined as an alternative
to ShaderMaterial.
This also reorders the CanvasItemMaterial property hints to follow
alphabetical order (which is enforced by the inspector).
2021-07-04 17:49:36 +02:00
Hendrik Brucker
56a8d3f30c
Improvements to Label's layout options
...
- Added options to trim the text in case it overruns
- Added more autowrap modes
- Improved line breaking, which ignores trailing spaces
2021-07-04 16:43:55 +02:00
Fabio Alessandrelli
a28d25c441
[Crypto] Delete mbedtls ctx in deconstructor.
...
Would cause memory leak when the context was `start`ed but not
`finish`ed.
2021-07-03 16:12:55 +02:00
Aaron Franke
2508fd0533
Use PROPERTY_USAGE_NONE instead of 0 for no property usage
...
Also use const more often.
2021-07-01 14:13:27 -04:00
Pitanov V.V
4da4514b71
Fix GridMap erase Octans
2021-07-02 03:26:26 +10:00
Hugo Locurcio
257a8a337e
Remove unused code related to Travis CI
2021-07-01 18:02:00 +02:00
reduz
37776b2867
Clean up RenderingServer and its bindings
...
* Rewrote bindings for RenderingServer.
* They are now all up to date.
* Several unused methods and deprecated features were cleaned up.
2021-07-01 09:07:36 -03:00
Rémi Verschelde
a02620f3a5
Merge pull request #50009 from reduz/fix-suffixes-and-degrees
...
Fix editor suffixes and degrees conversion
2021-06-30 18:47:40 +02:00
reduz
75688772b3
Fix editor suffixes and degrees conversion
...
* Functions to convert to/from degrees are all gone. Conversion is done by the editor.
* Use PROPERTY_HINT_ANGLE instead of PROPERTY_HINT_RANGE to edit radian angles in degrees.
* Added possibility to add suffixes to range properties, use "min,max[,step][,suffix:<something>]" example "0,100,1,suffix:m"
* In general, can add suffixes for EditorSpinSlider
Not covered by this PR, will have to be addressed by future ones:
* Ability to switch radians/degrees in the inspector for angle properties (if actually wanted).
* Animations previously made will most likely break, need to add a way to make old ones compatible.
* Only added a "px" suffix to 2D position and a "m" one to 3D position, someone needs to go through the rest of the engine and add all remaining suffixes.
* Likely also need to track down usage of EditorSpinSlider outside properties to add suffixes to it too.
2021-06-30 12:38:25 -03:00
K. S. Ernest (iFire) Lee
364416ecd8
Remove singleton variable shadowing.
2021-06-30 02:37:20 -07:00
K. S. Ernest (iFire) Lee
90bb560984
Protocol shadows a variable.
2021-06-30 01:25:27 -07:00
Rémi Verschelde
74dc5e27c8
Rename GdNavigationServer
to GodotNavigationServer
...
And rename `gdnavigation` module to simply `navigation`.
2021-06-30 00:35:18 +02:00
reduz
64c925cca6
Improve RID_Owner memory usage
...
* Ability to allocate empty objects in RID_Owner, so RID_PtrOwner is not needed in most cases.
* Improves cache usage, as objects are now allocated together
* Should improve performance in 2D rendering
2021-06-29 12:28:08 -03:00
Rémi Verschelde
05336adb86
Merge pull request #49905 from pfertyk/issue-46480-image-compress-crashes-godot
...
Validate image formats, check if resize_to_po2 failed
2021-06-29 12:44:20 +02:00
Rémi Verschelde
a24f494861
Merge pull request #49944 from MisoMosiSpy/visual-script-logic-oper-mismatch
...
Fixes Visual Script node operator mismatch
2021-06-29 11:58:23 +02:00
Dipal M Zambare
a0b0f7c4ee
Fixes Visual script nodes operator mismatch issue #49943
2021-06-29 15:01:34 +05:30
Rémi Verschelde
eb318d3e04
Merge pull request #49966 from Faless/net/4.x_ws_timeout
...
[Net] Add WebSocketServer handshake_timeout property.
2021-06-29 02:00:00 +02:00
Paweł Fertyk
3dae9993ac
Validate image formats, check if resize_to_po2 failed
2021-06-28 21:17:06 +02:00
Rémi Verschelde
89f270f4c5
Merge pull request #49917 from groud/tree_disable_scroll
...
Allow disabling scrolling in Tree and implement horizontal scrolling
2021-06-28 18:41:23 +02:00
Rémi Verschelde
51350a951c
Merge pull request #49965 from Faless/net/4.x_fix_request
...
[Net] Fix WebSocketClient path parsing.
2021-06-28 18:38:51 +02:00
Gilles Roudière
d7d32ced5b
Implement Tree's internal minimum width calculation
2021-06-28 15:54:31 +02:00
Fabio Alessandrelli
458437edef
[Net] Add WebSocketServer handshake_timeout property.
...
Allows customization of the maximum time a client is allowed to stay in
the the "pending" state (i.e. awaiting HTTP handshake).
This used to be 1 second by before, the new default is 3 seconds.
2021-06-28 15:53:25 +02:00
Fabio Alessandrelli
d244dda597
[Net] Fix WebSocketClient path parsing.
...
Recent changes to parse_url caused the client to make invalid HTTP
requests if no path was specified.
2021-06-28 15:09:58 +02:00
K. S. Ernest (iFire) Lee
d67c5afa95
Make curve interpolate crash less.
2021-06-27 22:07:50 -07:00
reduz
b1d15c51bc
Implement native extension system
...
* Deprecates GDNative in favor of a simpler, lower level interface.
* New extension system allows registering core engine classes.
* Simple header interface in gdnative_interace.h
2021-06-25 17:32:45 -03:00
K. S. Ernest (iFire) Lee
d8f284532a
Merge pull request #49854 from kleonc/visual_script_editor-fix-position-when-zooming-master
...
VisualScriptEditor Fix in graph position calculation (do not skip zoom)
2021-06-24 10:38:20 -07:00
Rémi Verschelde
f1bcc641dd
Merge pull request #49583 from timothyqiu/texture-crash
...
Fix crash when freeing GradientTexture and NoiseTexture
2021-06-24 09:40:42 +02:00
kleonc
921e6efe0d
VisualScriptEditor Fix in graph position calculation (do not skip zoom)
2021-06-23 22:01:15 +02:00
Grzegorz Puławski
fa82727f5b
Fixing mono build after instance() -> instanciate() name change
2021-06-23 16:07:23 +02:00
Martin
2e217a724e
Fix logic operators mislabeled #49412
2021-06-23 12:04:55 +02:00
Aaron Franke
0ce49800ac
Use mouse and joypad enums instead of plain integers
...
Also MIDIMessage
2021-06-20 11:54:24 -04:00
Rémi Verschelde
671bd64e4a
Merge pull request #49754 from aaronfranke/is-eq-approx-sub-opt
...
Fix sub-optimal uses of is_equal_approx
2021-06-20 11:44:56 +02:00
Aaron Franke
45c24fd039
Fix sub-optimal uses of is_equal_approx
2021-06-20 03:03:06 -04:00
Lightning_A
e28fd07b2b
Rename instance()
->instantiate()
when it's a verb
2021-06-19 20:49:18 -06:00
Rémi Verschelde
9b7c963d19
Merge pull request #48804 from EricEzaM/scripting-multi-error-support
...
Added support for scripts reporting multiple errors to ScriptTextEditor
2021-06-20 00:38:49 +02:00
Rémi Verschelde
d88be9b70c
Merge pull request #44806 from madmiraal/consolidate_json
...
Consolidate JSON, JSONParseResults and JSONParser into JSON
2021-06-19 21:45:34 +02:00
Eric M
d0e78c86d7
Added support for scripts reporting multiple errors to ScriptTextEditor
...
Scripts can now report multiple errors to the scripting editors in the engine. UI elements were added to support multiple errors.
2021-06-19 22:20:30 +10:00
Marcel Admiraal
2bafcd3422
Consolidate JSON, JSONParseResults and JSONParser into JSON
...
Renames JSON.parse_string() to parse()
Renames JSON.decode_data() to stringify()
2021-06-19 08:01:40 +01:00
Rémi Verschelde
a9c53fa599
Merge pull request #49287 from reduz/expose-variant-internal-binders
...
Make some Variant internal functions public.
2021-06-19 01:11:03 +02:00
George Marques
c4fcc678df
Merge pull request #49449 from SpectralDragon/fix-enum-equal-operation
...
Fix equal operation for typed enums
2021-06-18 17:18:44 -03:00
George Marques
b5f1e88b2e
GDScript: Fix setting type of operator return value
...
Also write type adjust when needed for binary operators.
2021-06-18 13:09:35 -03:00
Rémi Verschelde
7aebb8f81c
Merge pull request #44156 from aaronfranke/quat-angle-to
...
Add Quaternion angle_to method
2021-06-18 12:35:58 +02:00
Rémi Verschelde
3fc39954ec
Merge pull request #49638 from aaronfranke/multiply-transforms
...
Allow multiplying Transforms and Basis by numbers
2021-06-18 12:35:14 +02:00
Rémi Verschelde
f6756e2bf5
Merge pull request #49698 from aaronfranke/prop-no-usage
...
Add PROPERTY_USAGE_NONE and use it
2021-06-18 12:28:05 +02:00
Rémi Verschelde
86aff37722
Merge pull request #32313 from YeldhamDev/format_args_values
...
Better format arguments in variant parser
2021-06-18 12:27:14 +02:00
Aaron Franke
e6c7567da7
Fix a typo in C# bindings generator for default value types
2021-06-18 01:13:00 -04:00
Aaron Franke
93b494d4ae
Add Quaternion angle_to method
2021-06-17 23:57:00 -04:00
Michael Alexsander Silva Dias
0ff4095b36
Better format arguments in variant parser
2021-06-18 00:06:40 -03:00
Aaron Franke
8b692e8872
Add PROPERTY_USAGE_NONE and use it
2021-06-17 19:10:26 -04:00
Rémi Verschelde
b02f42def7
Merge pull request #49043 from theoway/missing_description_vs_search_window_fixed
...
Fixes missing descriptions in Visual Script search window when adding nodes
2021-06-17 23:04:07 +02:00
Francois Belair
a56c2e459b
Translate file path to URI on LSP symbol requests
2021-06-17 10:36:41 -04:00
Rémi Verschelde
bcd21b2957
Merge pull request #48070 from KoBeWi/greedmap
...
Fix GridMap still drawing when Alt+Tabbing
2021-06-17 12:29:13 +02:00
Rémi Verschelde
b3e333bcf2
Merge pull request #48331 from Faless/net/4.x_enet_relay_lax
...
[Net] ENet non-relaying server now process broadcasts.
2021-06-17 12:26:54 +02:00
Rémi Verschelde
272a16d8ce
Merge pull request #49667 from Riteo/remove-grid-map-lock-view
...
Remove GridMap's "Lock View" option and a related method.
2021-06-17 01:03:17 +02:00
K. S. Ernest (iFire) Lee
479737538b
Merge pull request #49401 from fire/8-weights
...
Fix 8 bone weights in glTF2
2021-06-16 07:43:42 -07:00
Aaron Franke
bd6ed3fb09
Allow multiplying Transforms and Basis by numbers
2021-06-15 22:26:29 -04:00
Riteo Siuga
7cb3476a1c
Remove GridMap's "Lock View" option and a related method.
...
Apparently this feature utilized a completely commented out 7+ years old
method, effectively doing nothing. Since it was designed with a completely
different editor design in mind it is pretty much incompatible and as such
it's best to remove it for now.
2021-06-16 04:14:37 +02:00
Umang Kalra
5e8d31ef0e
Fixes missing descriptions in search window of visualscript
2021-06-15 20:30:54 +05:30
Rémi Verschelde
fed31b1827
Merge pull request #49616 from BastiaanOlij/more_rename_transform
...
Adding some more missing renames for Transform3D and Quaternion
2021-06-15 16:50:52 +02:00
Bastiaan Olij
2161fd117b
Adding some more missing renames for Transform3D and Quaternion
2021-06-15 16:01:50 +02:00
Rémi Verschelde
cbcdda60c0
Merge pull request #49570 from RandomShaper/fix_slow_scene_io
2021-06-15 14:51:24 +02:00
Rémi Verschelde
72f39e31b1
Merge pull request #49593 from bruvzg/tga_loader_fixes
...
Fix loading RLE compressed TGAs and invalid memory reads.
2021-06-15 00:08:35 +02:00
Rémi Verschelde
f7fa5a0e3a
Merge pull request #49600 from vnen/gdnative-api-generator-var-writer
...
GDNative: Use VariantWriter for the API JSON generator
2021-06-14 18:43:54 +02:00
George Marques
49ce5e69ee
Fix default value binding in VisualScriptFunctionState
2021-06-14 12:26:05 -03:00
George Marques
ad7141703e
GDNative: Use VariantWriter for the API JSON generator
...
Instead of the String representation, which can be finicky to work with.
VariantWriter is more robust since changes to it affects the whole
system thus it's changed less often and it's never ambiguous.
2021-06-14 10:30:58 -03:00
bruvzg
25cd29ae66
Fix loading RLE compressed TGA files.
...
Fix memory reads outside of input buffer when loading invalid TGA files.
2021-06-14 13:55:39 +03:00
Haoyu Qiu
37db8d6184
Fix crash when freeing GradientTexture and NoiseTexture
2021-06-14 12:32:19 +08:00
Julien Nguyen
d6ae7edd80
Fix "super" call when having at least one argument
2021-06-13 17:46:03 +02:00
Bastiaan Olij
15c1a76361
Add stereoscopic rendering through multiview
2021-06-13 22:52:20 +10:00
Pedro J. Estébanez
2ca6b9c610
Fix slow load/save of scenes with many instances of the same script
2021-06-13 13:32:44 +02:00
Rémi Verschelde
600b4c9c7b
Merge pull request #34668 from aaronfranke/to-string
...
[Core] Reformat structure string operators
2021-06-13 11:58:24 +02:00
Pedro J. Estébanez
f59488e94e
Improve & fix Mono build
...
- Fix C++ compile errors about pending variable renames after the `Reference` to `RefCount` change.
- Fix C# compile errors due to the recent rename of `EnablePlugin()` and `Build()`, which are now underscore-prefixed in bindings.
- Additional rename: `godot_icall_Reference_Dtor` to `godot_icall_RefCounted_Dtor`.
2021-06-13 11:21:14 +02:00
Rémi Verschelde
6d98f84abb
Merge pull request #48746 from KoBeWi/bane_of_all_virtual_compatibility
...
Consistently prefix bound virtual methods with _
2021-06-12 23:00:40 +02:00
Rémi Verschelde
ac73059b56
Merge pull request #49123 from aaronfranke/it-is-time
...
Add a Time singleton
2021-06-12 22:55:25 +02:00
kobewi
7ff135b015
Consistently prefix bound virtual methods with _
2021-06-12 00:55:52 +02:00
Rémi Verschelde
530e069bc3
Merge pull request #49312 from RandomShaper/reference_to_ref_count
...
Rename `Reference` to `RefCounted`
2021-06-11 19:46:25 +02:00
Rémi Verschelde
50d1e0ea99
Merge pull request #47835 from mortarroad/master-lossless-webp
...
Implement lossless WebP encoding
2021-06-11 19:34:36 +02:00
Pedro J. Estébanez
04688b92ff
Rename Reference to RefCounted
2021-06-11 18:48:42 +02:00
Morris Tabor
1bc1e94208
Implement lossless WebP encoding
2021-06-11 18:46:04 +02:00
Aaron Franke
554c776e08
Reformat structure string operators
...
The order of numbers is not changed except for Transform2D. All logic is done inside of their structures (and not in Variant).
For the number of decimals printed, they now use String::num_real which works best with real_t, except for Color which is fixed at 4 decimals (this is a reliable number of float digits when converting from 16-bpc so it seems like a good choice)
2021-06-11 10:53:20 -04:00
Rémi Verschelde
8d4046929c
Merge pull request #49511 from akien-mga/core-diraccess-fileaccess-io
...
Core: Move DirAccess and FileAccess to `core/io`
2021-06-11 16:51:10 +02:00
Rémi Verschelde
6b0183ec89
Merge pull request #49279 from Calinou/rename-string-is-abs-path-method
...
Rename `String.is_abs_path()` to `String.is_absolute_path()`
2021-06-11 15:58:16 +02:00
Rémi Verschelde
6107d9e180
Merge pull request #34566 from Heikki00/34541_to_json_precision
...
Increased String::num default decimal precision
2021-06-11 15:56:59 +02:00
Aaron Franke
f64fea1b23
Add Time singleton
2021-06-11 09:32:39 -04:00
Rémi Verschelde
9e328bb5b7
Core: Move DirAccess and FileAccess to core/io
...
File handling APIs are typically considered part of I/O, and we did have most
`FileAccess` implementations in `core/io` already.
2021-06-11 14:52:39 +02:00
Rémi Verschelde
1f69213175
Merge pull request #48253 from lyuma/fix_gdscript_export
...
Fix @export and prevent non-exportable References from being exported.
2021-06-11 14:24:31 +02:00
Rémi Verschelde
80e5997154
Merge pull request #49499 from cptchuckles/fix-var2str-sigil
...
Let var2str display StringName with correct sigil
2021-06-11 12:45:54 +02:00
Lyuma
771190a9db
Fix regression from 160c260
causing export of non-@export properties.
2021-06-10 20:35:58 -07:00
Jonathan Gollnick
6710ad1737
Let var2str display StringName with correct sigil
2021-06-10 16:30:28 -05:00
bruvzg
e624e570bc
[CTL] Improve font fallback order selection.
2021-06-10 22:25:32 +03:00