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
Rémi Verschelde
58c1235111
Merge pull request #49265 from KoBeWi/keepfreplace_2_keepers_of_replace
...
Move FindReplaceBar out of CodeTextEditor
2021-06-09 21:07:27 +02:00
Rémi Verschelde
0818a466c0
Merge pull request #49462 from TokageItLab/update-property-selector-icon-list
...
update property selector's icon list
2021-06-09 17:54:59 +02:00
Silc 'Tokage' Renew
67689dac7b
update property selector's icon list and rename Quat.svg to Quaternion.svg
2021-06-09 23:50:29 +09:00
Владислав Прусаков
6449c5f246
Fix equal operation for typed enums
2021-06-09 02:52:21 +03:00
kobewi
da6aebeb4c
Move FindReplaceBar out of CodeTextEditor
2021-06-08 23:23:07 +02:00
Jonas Bernemann
3b18aa4910
Rename missing shortcut names in visual script editor
...
With the change of the shortcuts for common actions like delete, copy
and paste the delete menu items in the visual script editor for members
where missing because of a missing shortcut.
2021-06-08 20:03:19 +02:00
K. S. Ernest (iFire) Lee
291e735972
Fix 8 bone weights in glTF2
...
Don't spam in glTF2 import either.
Clear() in SurfaceTool does not keep 8 weights.
2021-06-07 14:33:44 -07:00
Rémi Verschelde
69e6d65295
Merge pull request #49367 from Calinou/gdscript-highligher-add-annotations
...
Highlight annotations in the GDScript syntax highlighter
2021-06-07 17:20:11 +02:00
Rémi Verschelde
896aa94283
Merge pull request #49221 from Faless/mp/4.x_rpc_refactor
...
[Net] Refactor RPCs, remove RSETs
2021-06-07 17:00:08 +02:00
Rémi Verschelde
c1c76850cb
Style: Cleanup uses of double spaces between words
...
Or after punctuation. Tried to leave third-party stuff alone, unless it has
been heavily modified for Godot.
2021-06-07 11:03:08 +02:00
Hugo Locurcio
32e97cb805
Highlight annotations in the GDScript syntax highlighter
...
By default, a orange color is used to highlight annotations in the
script editor.
2021-06-06 21:33:23 +02:00
Yuri Roubinsky
e02e50505c
Fixed color for node headers in visual scripts
2021-06-06 21:20:05 +03:00
Rémi Verschelde
6f7d45d210
Merge pull request #45364 from madmiraal/rename-quat
...
Rename Quat to Quaternion
2021-06-05 13:32:08 +02:00
Rémi Verschelde
537d8899e9
Merge pull request #49319 from madmiraal/add-missing-mono-overrides
...
Add missing override keyword to CSharpLanguage::is_control_flow_keyword()
2021-06-05 13:30:29 +02:00
PouleyKetchoupp
ee4b756a51
More explanatory names for RigidBody modes
...
MODE_DYNAMIC instead of MODE_RIGID
MODE_DYNAMIC_LOCKED instead of MODE_CHARACTER
No more special case for sleeping behavior for MODE_DYNAMIC_LOCKED
(MODE_CHARACTER was forcing the body not to sleep, which is redundant
with can_sleep and wasn't done in Bullet).
2021-06-04 11:40:36 -07:00
Marcel Admiraal
beae6527e0
Add missing override keyword to CSharpLanguage::is_control_flow_keyword()
2021-06-04 18:39:30 +01:00
Marcel Admiraal
8acd13a456
Rename Quat to Quaternion
2021-06-04 18:14:32 +01:00
Rémi Verschelde
5dc923d386
Merge pull request #49297 from aaronfranke/anim-type-tr3d
...
Rename Animation TYPE_TRANSFORM to TYPE_TRANSFORM3D
2021-06-04 14:11:03 +02:00
Bastiaan Olij
3ead536e26
Rename GODOT_VARIANT_TYPE_TRANSFORM to GODOT_VARIANT_TYPE_TRANSFORM3D
2021-06-04 21:24:15 +10:00
Aaron Franke
125d1a7cd3
Rename Animation TYPE_TRANSFORM to TYPE_TRANSFORM3D
2021-06-03 21:11:54 -04:00
Aaron Franke
acd695060b
Disable 3D-only modules when 3D is disabled
2021-06-03 17:45:28 -04:00
Rémi Verschelde
5d9cab3aeb
Merge pull request #38430 from aaronfranke/transform3d
2021-06-03 23:07:21 +02:00
Aaron Franke
2e13e3ed4a
Allow clamping vectors and colors
2021-06-03 12:05:20 -04:00
Aaron Franke
94bc0bd919
Rename Vector2 clamped to limit_length and add limit_length to Vector3
2021-06-03 12:04:57 -04:00
Hugo Locurcio
5ea1c75d63
Rename `String.is_abs_path()` to `String.is_absolute_path()`
...
This is more consistent with `NodePath.is_absolute()`.
2021-06-03 16:00:06 +02:00
Aaron Franke
0ac4051c00
Update documentation for Transform3D
2021-06-03 07:30:01 -04:00
Aaron Franke
39e28c49ed
Rename Transform to Transform3D in GDNative
2021-06-03 07:30:01 -04:00
Aaron Franke
a3c29ed899
Rename files and the exposed name for Transform3D
2021-06-03 07:30:01 -04:00
Aaron Franke
08a85352fb
Rename Variant TRANSFORM to TRANSFORM3D
...
Also _transform to _transform3d
2021-06-03 07:30:01 -04:00
Aaron Franke
de3f6699a5
Rename Transform to Transform3D in core
2021-06-03 07:30:01 -04:00
Fabio Alessandrelli
d779b5aa3e
[Net] Refactor RPCs, remove RSETs
...
In this PR:
- Removed rset
- rpc_config can now optionally configure transfer mode
(reliable/unreliable/ordered) and channel (channels are not actually
implemented yet.)
- Refactor how the RPC id is computed to minimize the logic in Node and
scripts that now only needs a single `get_rpc_methods` function.
2021-06-01 17:24:21 +02:00
Fabio Alessandrelli
ae04dac2db
Remove server platform
2021-06-01 16:27:54 +02:00
Rémi Verschelde
59b524ae4c
Merge pull request #49067 from JFonS/fix_gcc_warnings
...
Fix some warnings raised by GCC-11.1
2021-06-01 10:47:37 +02:00
Rémi Verschelde
e615060cd6
Merge pull request #49132 from Calinou/editor-syntax-themes-rename-default
...
Rename the bundled text editor themes for consistency with themes
2021-05-31 14:47:49 +02:00
Hugo Locurcio
1704be0a44
Rename the bundled text editor themes for consistency with themes
...
The Adaptive text editor theme is the default, and has therefore
been renamed Default for consistency with the Default theme preset.
It keeps its automatic dark/light switch status.
The Default text editor theme was actually a legacy Godot 2-style theme,
so it has been renamed to Godot 2 to match the theme preset.
Its background color has been changed to be a constant opaque color,
since the new editor theme made the theme look less good on a translucent
background. The previous background color on light theme also lacked
contrast.
2021-05-31 14:02:13 +02:00
Rémi Verschelde
3c7f09bfeb
Merge pull request #49194 from madmiraal/fix-43544
...
Fix UV mapping on CSGSphere
2021-05-31 13:05:48 +02:00
Rémi Verschelde
652a9debad
Merge pull request #49191 from pfertyk/issue-46020-pluginscript-instance-has-crashes-godot
...
Check for _language in PluginScript.instance_has
2021-05-31 12:46:07 +02:00
reduz
0d2e02945b
Implement shader caching
...
* Shader compilation is now cached. Subsequent loads take less than a millisecond.
* Improved game, editor and project manager startup time.
* Editor uses .godot/shader_cache to store shaders.
* Game uses user://shader_cache
* Project manager uses $config_dir/shader_cache
* Options to tweak shader caching in project settings.
* Editor path configuration moved from EditorSettings to new class, EditorPaths, so it can be available early on (before shaders are compiled).
* Reworked ShaderCompilerRD to ensure deterministic shader code creation (else shader may change and cache will be invalidated).
* Added shader compression with SMOLV: https://github.com/aras-p/smol-v
2021-05-31 10:13:09 +02:00
Rémi Verschelde
39df47b88f
Merge pull request #48915 from lyuma/gltf_mesh_nodes_bones
...
gltf: Fix mesh nodes which are also bones.
2021-05-31 09:55:05 +02:00
Paweł Fertyk
4b25892501
Check for _language in PluginScript.instance_has
2021-05-30 22:21:26 +02:00
Marcel Admiraal
3dc1a2951b
Fix UV mapping on CSGSphere
2021-05-29 19:14:52 +01:00
Heikki Simojoki
09a905ca80
Increase String::num default decimal precision
...
Fixes #34541
Renamed MAX_DIGITS to MAX_DECIMALS, since it only changes the
amount of digits after the decimal point.
Increased MAX_DECIMALS to 32, and made String::num use
MAX_DECIMALS consistently. If -1 is passed as
decimal precision to String::num, it now gets changed to
the correct precision based on the number's magnitude,
instead of using printf default(which is 6)
String::num_real also calculates the correct precision now.
Also made the types used in floating-point math more
consistent in a few places.
2021-05-29 11:24:57 -04:00
Yuri Roubinsky
b63f9b5961
Merge pull request #48964 from DavidCambre/VisualScript_Missing_SequencePort_Seed
2021-05-29 07:27:38 +03:00
Lyuma
e839a3291b
gltf: Fix mesh nodes which are also bones.
...
Fix issue when two skeletons end up directly parented.
Prevent animating TRS for skinned Mesh node.
Fix animating weights on meshes with targets but no weights.
2021-05-27 19:33:01 -07:00
Rémi Verschelde
364ea7f280
Merge pull request #49114 from vnen/gdscript-fix-self-function-type-check
...
GDScript: Fix function signature check for self calls
2021-05-26 20:59:17 +02:00
Rémi Verschelde
78bbb2cae1
Merge pull request #49112 from vnen/gdscript-assign-type-check
...
GDScript: Use analyzer data to decide assignment conversion
2021-05-26 20:34:43 +02:00
George Marques
a23fc45727
GDScript: Fix function signature check for self calls
2021-05-26 15:33:18 -03:00
George Marques
c7459e3855
GDScript: Use analyzer data to decide assignment conversion
...
Since there might be tricky cases in the analyzer (in the case of unsafe
lines) which would need to be properly checked again. Instead, this
splits the code generator in two functions and use information set by
the analyzer to tell which function to use, without a need to re-check.
2021-05-26 14:09:00 -03:00
jfons
f8e34209af
Fix some warnings raised by GCC-11.1
2021-05-25 17:23:53 +02:00
Marcel Admiraal
da5d7db610
Rename File::get_len() get_length()
2021-05-25 11:54:28 +01:00
Rémi Verschelde
215e43242c
Merge pull request #49037 from vnen/fix-callable-freed-crash
2021-05-24 19:52:32 +02:00
George Marques
ea44744e2d
Make Callable not crash on call when the object has been freed
...
Also add a GDScript test for this case.
2021-05-24 14:23:02 -03:00
Rémi Verschelde
c321f6ff47
Merge pull request #48644 from Calinou/editor-increase-icon-saturation
...
Increase icon saturation by 30% for all editor icons
2021-05-24 19:20:09 +02:00
George Marques
ffdb3cccd2
GDScript: Fix error handler for tests
...
This changes the error message to be more clear on the output files and
also fixes an issue with the relative path of the offending file that
was not trimmed correctly.
2021-05-24 14:17:20 -03:00
Rémi Verschelde
65eff1cfdd
Merge pull request #46866 from bruvzg/symlinks_and_macos_gdn_framework_export_4
2021-05-24 15:14:02 +02:00
bruvzg
a1cb6f07a1
Add GDNative Framework loading and export support.
2021-05-24 12:49:05 +03:00
Rémi Verschelde
de4c17f716
Merge pull request #48916 from mortarroad/master-convex-hull-ported
...
Replace QuickHull with Bullet's convex hull computer.
2021-05-22 23:22:48 +02:00
Morris Tabor
d1bc88d426
Replace QuickHull with Bullet's convex hull computer.
...
The code is based on the current version of thirdparty/vhacd and modified to use Godot's types and code style.
Additional changes:
- extended PagedAllocator to allow leaked objects
- applied patch from https://github.com/bulletphysics/bullet3/pull/3037
2021-05-22 22:35:42 +02:00
K. S. Ernest (iFire) Lee
fc8ea1d828
Update with experimental mesh optimizer.
...
Normals being optimized has better quality now.
Test simplify once and then use a slightly less tolerant
error for the target error.
2021-05-22 08:58:50 -07:00
David Cambré
d7205ef1d0
The built in function math/seed was missing the sequenceport.
2021-05-22 14:01:35 +02:00
Aaron Franke
aa65c91618
Rename Vector2 Perpendicular to Orthogonal in C#
2021-05-21 21:02:38 -04:00
Rémi Verschelde
3ee034451a
Merge pull request #48885 from JFonS/upgrade_embree
...
Upgrade Embree to the latest official release (3.13.0).
2021-05-21 18:30:02 +02:00
jfons
767e374dce
Upgrade Embree to the latest official release.
...
Since Embree v3.13.0 supports AARCH64, switch back to the
official repo instead of using Embree-aarch64.
`thirdparty/embree/patches/godot-changes.patch` should now contain
an accurate diff of the changes done to the library.
2021-05-21 17:00:24 +02:00
Rémi Verschelde
82f688ce9b
Merge pull request #48913 from lyuma/gltf_named_binds_dedup
...
Fix incorrect skin deduplication when using named binds
2021-05-21 11:19:11 +02:00
Lyuma
5a9eee6b1a
gltf: Fail gracefully when a mesh instance fails.
2021-05-20 20:28:32 -07:00
Lyuma
60f620411e
Fix incorrect skin deduplication when using named binds
2021-05-20 20:26:11 -07:00
Rémi Verschelde
37a417e838
Merge pull request #48904 from fire/gltf-img-failure
...
When one invalid image fails, it should only fail that single image.
2021-05-21 00:32:48 +02:00
K. S. Ernest (iFire) Lee
a81f4dd5a7
When one invalid image fails, it should only fail that single image.
...
Move to a more graceful degradation 3d asset import model.
2021-05-20 14:30:19 -07:00
Tomasz Chabora
b1859510ab
Change behavior of String.right
2021-05-20 23:07:57 +02:00
Rémi Verschelde
78d85de13b
Merge pull request #48805 from radishes/noise-image-offset
...
Add support for generating noise images with an offset
2021-05-20 21:00:38 +02:00
Casey Foote
97c8d9f348
Add support for generating noise images with an offset.
2021-05-20 08:20:23 -07:00
Rémi Verschelde
4219a4cb6f
Fix typos with codespell
...
Using codespell 2.0.0.
Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
fave
findn
GIRD
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF
$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2021-05-20 12:38:56 +02:00
Rémi Verschelde
169268ae20
Merge pull request #48657 from Calinou/test-add-gdscript
...
Add a unit test suite for GDScript
2021-05-19 20:49:03 +02:00
Yuri Roubinsky
7b261d1cb7
Show colored rects for autocompletion of Color constants in functions
2021-05-19 14:40:03 +03:00
Rémi Verschelde
95bb7207f3
Merge pull request #46773 from trollodel/TreeItem+
...
Improve TreeItem API and allow to move nodes
2021-05-18 10:49:45 +02:00
George Marques
cdb3726fe6
Merge pull request #48347 from Blackiris/fix-temporary-key-not-released
...
GDScript: Fix temporary value not released when used as a dictionary key
2021-05-17 18:50:25 -03:00
trollodel
bca0d36fe6
Improve TreeItem API and allow to move nodes
2021-05-17 22:06:46 +02:00
Rémi Verschelde
6c367f8e0d
Merge pull request #48168 from LightningAA/control-to-ctrl-4.0
2021-05-17 17:38:02 +02:00
Rémi Verschelde
2fcfc83da9
Merge pull request #48793 from vnen/gdscript-fix-temp-type-adjust
...
GDScript: Fix crash caused by uninitialized temp stack slots
2021-05-17 17:34:19 +02:00
George Marques
10a1f64968
GDScript: Fix crash caused by uninitialized temp stack slots
...
This adds initialization to every typed temporary stack slot at the
beginning of the function call instead of emitting instructions, since
those might be in a conditional branch and not be called.
2021-05-17 10:59:43 -03:00
Pedro J. Estébanez
469fa47e06
Make all file access 64-bit (uint64_t)
...
This changes the types of a big number of variables.
General rules:
- Using `uint64_t` in general. We also considered `int64_t` but eventually
settled on keeping it unsigned, which is also closer to what one would expect
with `size_t`/`off_t`.
- We only keep `int64_t` for `seek_end` (takes a negative offset from the end)
and for the `Variant` bindings, since `Variant::INT` is `int64_t`. This means
we only need to guard against passing negative values in `core_bind.cpp`.
- Using `uint32_t` integers for concepts not needing such a huge range, like
pages, blocks, etc.
In addition:
- Improve usage of integer types in some related places; namely, `DirAccess`,
core binds.
Note:
- On Windows, `_ftelli64` reports invalid values when using 32-bit MinGW with
version < 8.0. This was an upstream bug fixed in 8.0. It breaks support for
big files on 32-bit Windows builds made with that toolchain. We might add a
workaround.
Fixes #44363 .
Fixes godotengine/godot-proposals#400 .
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2021-05-17 15:06:19 +02:00
Rémi Verschelde
37c3b33253
Merge pull request #48605 from sent44/scripteditor_get_codeedit
...
Add `get_base_editor` to `ScriptEditorBase`
2021-05-16 23:06:01 +02:00
Rémi Verschelde
a7421612d0
Merge pull request #48767 from vnen/gdscript-builtin-static-methods
...
GDScript: Add support for builtin static method calls
2021-05-16 22:29:32 +02:00
George Marques
ec783dd885
GDScript: Add support for builtin static method calls
2021-05-16 11:54:33 -03:00
sent44
2b30728ebf
Add get_base_editor to ScriptEditorBase
2021-05-15 18:47:00 +07:00
Rémi Verschelde
a40a08827c
Merge pull request #46568 from akien-mga/basisu_20210130
...
basis_universal: Update to upstream commit from Apr 16, 2021
2021-05-13 14:55:49 +02:00
Hugo Locurcio
6c528e4fae
Add a unit test suite for GDScript
...
This tests run-time script loading.
2021-05-12 16:20:57 +02:00
Rémi Verschelde
ed11756d26
GDNative: Fix size mismatch on 32-bit platforms for Signal and Callable
...
Fixes #48645 .
2021-05-11 20:25:01 +02:00
Hugo Locurcio
7375a02015
Increase icon saturation by 30% for all editor icons
...
More saturated icons go better with the new editor theme.
These color changes only apply when using a dark theme.
The editor icon saturation can still be adjusted in the Editor Settings.
Setting the editor icon saturation setting to 0.77 should roughly match
the old icon saturation.
2021-05-11 18:15:31 +02:00
JFonS
1cab622e94
Add checks for __SSE2__ in the lightmap raycaster
...
(cherry picked from commit 20717990fd
)
2021-05-11 14:09:44 +02:00
Rémi Verschelde
31a9afb135
SCons: Disable embree-based modules on x86 (32-bit)
...
Fixes #48482 .
(cherry picked from commit e53422c8f9
)
2021-05-11 14:09:44 +02:00
Morris Tabor
89a8bbda0a
fix misaligned loads in bmp loader
2021-05-08 17:07:44 +02:00