Commit Graph

33834 Commits

Author SHA1 Message Date
737f09895d Merge pull request #47131 from vnen/gdscript-export-fix
Fix a few issues with @export in GDScript
2021-03-30 15:12:04 +02:00
89637e45f8 Merge pull request #47493 from floppyhammer/fix-window-resizing-after-minimization-on-windows
Fix window resizing after minimization on Windows
2021-03-30 14:48:10 +02:00
7c14e987b4 Merge pull request #47492 from vnen/gdscript-typed-arrays
GDScript: Fix array type check on constants
2021-03-30 14:37:42 +02:00
18678fd11e Fix window resizing after minimization on Windows 2021-03-30 20:09:19 +08:00
5d9585d83b GDScript: Fix array type check on constants
They mistakenly pointing to the wrong union member (variable instead of
constant).
2021-03-30 09:09:13 -03:00
2b9be53243 GDScript: Implement export of typed arrays 2021-03-30 08:29:38 -03:00
160c260495 GDScript: Allow export of enum variables
Also fix the enum type in variables to be integer.
2021-03-30 08:29:38 -03:00
3e4ecd9669 GDScript: Show error on invalid initializer expression 2021-03-30 08:29:38 -03:00
577a17980d Move GDSript annotation application after type-checking
This ensures that annotations that rely on the datatype (such as
@export) can validated it timely, allowing compound expressions instead
of only literal values.
2021-03-30 08:29:36 -03:00
655a913e22 Merge pull request #47486 from bruvzg/rtl_effects
RichTextLabel: On custom effect change, parse bbcode only if it's enabled and not empty.
2021-03-30 09:58:23 +02:00
9f73abfa9f RichTextLabel: On custom effect change, parse bbcode only if it's enabled and not empty. 2021-03-30 10:20:39 +03:00
5f49e0c7ef Merge pull request #47470 from rafallus/fix/quat-mult
Fix Quat multiplication
2021-03-30 08:23:50 +02:00
db31445b90 i18n: Sync translations with Weblate
(cherry picked from commit cca2637b9b)
2021-03-30 00:04:54 +02:00
9196722935 Fix Quat multiplication
x, y, z values were updated too early
2021-03-29 13:57:34 -06:00
76a2e76468 Merge pull request #47466 from Faless/js/4.x_notification_call_fix
[HTML5] Fix WM notifications not being called.
2021-03-29 21:08:43 +02:00
01658adb30 [HTML5] Fix WM notifications not being called.
Regression from the library refactoring, binding and not calling is
pretty useless 'o_o.
2021-03-29 20:11:19 +02:00
2f2e4d6524 Merge pull request #47462 from Faless/js/4.x_init_no_promise
[HTML5] Fix Mono builds (old emcc?)
2021-03-29 19:03:20 +02:00
88f404f1ec Merge pull request #47458 from akien-mga/fbx-fix-bone-suffix
FBX: Fix first bone getting unnecessary '_1' suffix
2021-03-29 18:30:56 +02:00
ae3c9345cc [HTML5] Fix Mono builds (old emcc?)
Promise chaining the emscripten module `then` function breaks it badly,
causing an infinite loop.
I'm unsure about the source of the issue, but most likely at this point
is due to the old emscripten version (I remember very old html5 builds
having issue with promise chaining too).

With this commit, we no longer use the module as a promise, and
instantiate it using `Promise` objects directly for compatibility.
2021-03-29 18:15:22 +02:00
d71eed2865 FBX: Fix first bone getting unnecessary '_1' suffix
Fixes #43820.

Co-authored-by: Gordon MacPherson <gordon@gordonite.tech>
2021-03-29 17:25:12 +02:00
c6ff6707a4 Merge pull request #47457 from bruvzg/rtl_spacing
RichTextLabel: fix font extra spacing and style box size usage.
2021-03-29 17:07:38 +02:00
aba03110ba Merge pull request #46830 from vnen/gdscript-typed-arrays
GDScript typed arrays
2021-03-29 16:47:38 +02:00
9f4893c70b Use extra font spacing in the RichTextLabel line height calculation, and stylebox size in the minimum size calculation. 2021-03-29 17:26:53 +03:00
58d302dd5f Merge pull request #46844 from geekrelief/gdnative_unregister_script_fix
fixes #46839, ensure library_classes is cleared and free funcs are ca…
2021-03-29 16:11:11 +02:00
85e316a5d5 Add typed arrays to GDScript
- Use `Array[type]` for type-hints. e.g.:
  `var array: Array[int] = [1, 2, 3]`
- Array literals are typed if their storage is typed (variable
  asssignment of as argument in function all). Otherwise they are
  untyped.
2021-03-29 10:45:48 -03:00
a6d190ebc5 Merge pull request #47424 from DanielKriz/tests/path3d
add tests for path3d
2021-03-29 13:56:13 +02:00
bc29f4bca1 Merge pull request #47435 from madmiraal/rename-texture-get_data
Rename Texture.get_data() to get_image()
2021-03-29 10:41:22 +02:00
f07552ba92 add tests for path3d 2021-03-29 10:13:53 +02:00
b2eb838781 doc: Sync classref with current source 2021-03-29 09:51:33 +02:00
02471ba44d Merge pull request #47446 from bruvzg/macos_sign_exports_by_default
[macOS] Enable code signing by default, use ad-hoc signature if no identity specified.
2021-03-29 00:48:46 +02:00
09c8e69232 [macOS] Enable code signing by default, use ad-hoc signature if no identity specified. 2021-03-29 00:04:48 +03:00
b253aca53f Merge pull request #47351 from volzhs/graphedit-boxselection
Fix drawing boxselection on GraphEdit
2021-03-28 20:56:07 +02:00
bf0ec13fee Merge pull request #47428 from Calinou/doc-giprobe-sdfgi-leaks
Document how to avoid light leaks with GIProbe and SDFGI
2021-03-28 14:16:49 +02:00
b9d941b22c Merge pull request #47413 from skyace65/DirectoryWarning
Add a warning on using directory to access of imported files
2021-03-28 14:07:20 +02:00
fd30c36985 Rename Texture.get_data() to get_image() 2021-03-28 13:00:46 +01:00
f8442b97bf Merge pull request #47420 from touilleMan/pluginscript-support-to_string
Add support for _to_string virtual function overwrite in Pluginscript
2021-03-28 01:54:00 +01:00
217192b9e0 Document how to avoid light leaks with GIProbe and SDFGI 2021-03-28 01:05:01 +01:00
4378ef0bb7 Add a warning on using directory to access of imported files 2021-03-27 16:19:15 -04:00
9761bab753 Add support for _to_string virtual function overwrite in Pluginscript 2021-03-27 21:13:51 +01:00
a82765a464 Merge pull request #47403 from likeich/project_man_scale_fix
Fix project manager window size scaling
2021-03-27 08:46:16 +01:00
918f50c04c Fixes project manager window size scaling
This is a workaround fix for a Vector2i multiplication regression issue that prevents the project manager window size from scaling correctly. This calculates the new window size x and y values separately.
2021-03-26 21:27:43 -04:00
5cdd4ee8bc Merge pull request #47396 from reduz/optimize-channel-detection
Optimize image channel detection
2021-03-26 22:12:53 +01:00
4763835c11 Optimize image channel detection
Speeds up compression
2021-03-26 15:44:00 -03:00
2bd89ac249 Merge pull request #44695 from madmiraal/fix-44632
Remove all elements from monitored_bodies and monitored_areas when processed
2021-03-26 16:34:02 +01:00
c9dece3b86 Merge pull request #47385 from KoBeWi/open_then_save
Save project after opening
2021-03-26 15:25:12 +01:00
76240515d8 Save project after opening 2021-03-26 14:10:41 +01:00
166a6d0ba2 Merge pull request #47331 from Calinou/html5-editor-opengraph
Add Open Graph metadata to the HTML5 editor
2021-03-26 13:42:34 +01:00
21f9cb29bd Merge pull request #47375 from rishabhabhani/master
Added null checks for mesh in resource importer
2021-03-26 09:27:00 +01:00
6bb1eb8212 Merge pull request #47374 from timothyqiu/check-section
Check section existance before getting keys
2021-03-26 09:20:36 +01:00
435c80490a added null checks for mesh in resource importer 2021-03-26 11:49:06 +05:30