Commit Graph

59045 Commits

Author SHA1 Message Date
bruvzg 9456454109 Fix translation with multiple sources for the same language.
Remove unnecessary locale length checks.
Add "C" -> "en" locale remap.
2022-01-24 18:58:16 +02:00
Rémi Verschelde fc09d783f4 Merge pull request #57122 from Faless/net/4.x_http_request_leak 2022-01-24 17:01:08 +01:00
Rémi Verschelde 61b7962327 Merge pull request #57123 from JFonS/shadow_atlas_fixes 2022-01-24 17:00:56 +01:00
Rémi Verschelde 233699f9e7 Merge pull request #57103 from fabriceci/rename-free-mode-floating 2022-01-24 16:25:28 +01:00
jfons 238862bddb Minor fixes to shadow atlases:
* Erase shadow owner *before* setting it to RID().
* Add default texture in shadow atlas debug view to avoid error spam when no atlas is present.
* Fix typo.
2022-01-24 15:55:32 +01:00
bruvzg cba8280515 [Windows] Add support for handling network share paths. 2022-01-24 16:22:59 +02:00
fabriceci 856142a97d rename free mode to floating mode 2022-01-24 15:19:43 +01:00
Fabio Alessandrelli 17d4d3839e [Net] Fix HTTPRequest memory leak in compressed responses.
When accept_gzip = true.
2022-01-24 14:24:45 +01:00
kobewi d7f51dd2ec Better clarify map_to_world() description 2022-01-24 14:13:40 +01:00
Nathan Franke dc1c4cfbfa Fix action exact match 2022-01-24 05:55:37 -06:00
Rémi Verschelde 6a3ff8fa1f Merge pull request #57112 from mhilbrunner/docs-fixes-main 2022-01-24 12:03:04 +01:00
Rémi Verschelde e8789132b4 Merge pull request #57105 from rafallus/regression/3d_disabled 2022-01-24 11:41:15 +01:00
Max Hilbrunner 26da72eb4b Fix make_rst.py on Windows 2022-01-24 10:30:07 +01:00
Rémi Verschelde 57a057f7ff Merge pull request #56754 from madmiraal/fix-45592 2022-01-24 10:05:42 +01:00
Rémi Verschelde b56d5b6e2f Merge pull request #57111 from bruvzg/help_resize 2022-01-24 10:03:45 +01:00
Yuri Roubinsky 0d4b86a30c Merge pull request #57107 from Chaosus/shader_fix_completion 2022-01-24 11:53:11 +03:00
Rémi Verschelde 06abfd8c13 Merge pull request #57100 from Paulb23/textedit-placeholder 2022-01-24 09:43:33 +01:00
bruvzg f13db28a5c [Editor] Do not update editor help theme, if calculated margin hasn't changed. 2022-01-24 09:51:35 +02:00
Yuri Roubinsky 0e66587dbf Remove incorrect items from completion of main functions in shader 2022-01-24 10:37:47 +03:00
rafallus 44f6fe4be4 Bring reusable variables out of while loop 2022-01-23 19:39:00 -06:00
Preslavb 6f1089af86 Fix selection being deleted and indentation not being accounted for 2022-01-23 23:14:35 +00:00
clayjohn 430d5d64aa Update Sky lights in sky setup function 2022-01-23 15:06:49 -08:00
Rémi Verschelde 31a7ddbf83 Merge pull request #57101 from akien-mga/basebutton-pressed-conflict 2022-01-23 23:16:52 +01:00
Rémi Verschelde bd4d57ede2 BaseButton: Rename pressed property to button_pressed
This fixes a conflict with the `pressed` signal.

The new name is temporary and only intended to solve the conflict for upcoming
alpha builds. Discussions are still ongoing regarding the BaseButton API and
how to rename and refactor more of its properties, signals and methods to have
a clearer API in 4.0.
2022-01-23 22:15:09 +01:00
Rémi Verschelde 81c28dd706 Merge pull request #57096 from lyuma/fix-3d-textures 2022-01-23 21:39:05 +01:00
Paulb23 09212ba151 Add Placeholder to TextEdit 2022-01-23 20:19:36 +00:00
Lyuma e8da21dc6b etcpak: Workaround multiple-of-4 requirement for 3D texture mipmaps. 2022-01-23 11:32:05 -08:00
Rémi Verschelde dd6e5b3eaa Merge pull request #57090 from bruvzg/rtl_fix_missing_line_sep
[RTL] Fix missing line separation in the paragraph offset and click calculation.
2022-01-23 19:49:55 +01:00
Yuri Roubinsky dc5fbfdbdc Merge pull request #57091 from Chaosus/fix_unused_localvar_warnings 2022-01-23 21:25:37 +03:00
Yuri Roubinsky 3ca57e5157 Fix incorrect unused local var warning in shader blocks 2022-01-23 20:22:31 +03:00
bruvzg 268bab077f [RTL] Fix missing line separation in the paragraph offset and click calculation. 2022-01-23 19:09:14 +02:00
Rémi Verschelde dda6d2674a Merge pull request #57082 from madmiraal/fix-50802 2022-01-23 17:27:10 +01:00
Rémi Verschelde eb5aa3218f Merge pull request #57029 from timothyqiu/disable-script-editor-menu 2022-01-23 16:04:46 +01:00
Rémi Verschelde a673e18d34 Merge pull request #57080 from KoBeWi/ULTIMATER_PANNING 2022-01-23 16:03:35 +01:00
kobewi 98692d68c3 Minor tweaks and fixes to panning 2022-01-23 13:49:53 +01:00
Igor Kordiukiewicz 6c3b6664b5 String.Capitalize() in C# now matches the behaviour of String::capitalize() in C++ 2022-01-23 13:24:04 +01:00
Rémi Verschelde c3d28ffa74 Merge pull request #57012 from Calinou/editor-add-new-script-textfile-shortcuts 2022-01-23 12:55:58 +01:00
Rémi Verschelde 904bc403a0 Merge pull request #56983 from Calinou/doc-softdynamicbody3d-no-gameplay 2022-01-23 12:54:31 +01:00
Marcel Admiraal d009aa4d02 Fix mouse position not being scaled when window size is changed 2022-01-23 11:53:58 +00:00
Rémi Verschelde 07557be340 Merge pull request #57079 from bruvzg/calt_disable 2022-01-23 12:41:07 +01:00
bruvzg 3940bf586b [Editor] Disable contextual alternates (coding ligatures) outside of code editor. 2022-01-23 11:09:10 +02:00
Rémi Verschelde ce42ab238a Merge pull request #56931 from lyuma/etcpak_po2
Enforce mult-of-4 requirements on etcpak input.
2022-01-23 09:31:35 +01:00
Rémi Verschelde 2f277994d2 Merge pull request #55493 from V-Sekai/gdscript-crash
GDScript cache crashfix.
2022-01-23 09:31:08 +01:00
Fabio Alessandrelli 3f93528483 Merge pull request #57074 from Faless/net/4.x_http_client_64
[Net] Fix get_response_body_length for large files.
2022-01-23 04:42:20 +01:00
Fabio Alessandrelli 18c2e734ac Merge pull request #56977 from Calinou/web-editor-add-local-web-server
Add local web server configuration designed for web editor development
2022-01-23 04:41:32 +01:00
Ryan Roden-Corrent 58e8e5f219 Implement blender-style 3D transform tools.
See godotengine/godot-proposals#1215.

This adds shortcuts for blender-inspired transforms, where you can press
the key and immediately be transforming an object without holding the
mouse. Clicking commits the transformation, ESC aborts it.

This is inspired by Blender's G(rab)/R(otate)/S(cale) shortcuts, but I
decided not to add default bindings as `S` is already bound to the
regular scale tool, and it might be confusing to only bind some of them.

While actively using a transform tool, you can press X/Y/Z to lock the
transform to an axis or (shift)+X/Y/Z to constrain the transform to a
plane. These keys are only processed if you have a transform tool
(translate/rotate/scale) active _and_ the mouse button is held.

Pressing XX/YY/ZZ will lock the transform to a local (rather than
global) axis.

This is achieved by temporarily toggling the local transform button. I
did this (vs handling it in the transform functions) for 3 reasons:

- Transform logic for translate/rotate (but not scale) appears to be
  tightly coupled to the gizmo
- This ensures the gizmo changes to indicate we're transforming
  locally/globally
- Toggling the button state in the UI also gives the user feedback about
  the nature of the transform.

The original state of the button is reset when the transform completes.

Pressing the `spatial_editor/cancel_transform` shortcut key during a
transform operation will cancel the transform and reset the objects back
to their original transforms.

This functionality was already accessible by pressing RMB during a
transform, however:

- ESC is more familiar to blender users, and a more common "cancel" key
  in general.
- Given you must hold LMB during a transform, pressing RMB as well is
  clumsy if not impossible (on a laptop trackpad).
2022-01-22 20:55:39 -05:00
K. S. Ernest (iFire) Lee b69b526b7c GDScript cache crashfix. 2022-01-22 17:42:54 -08:00
Lyuma b1b20f5f91 Pad etcpak input to 4x4 blocks. Fixes #49981 2022-01-22 17:20:17 -08:00
Fabio Alessandrelli 01e5e98312 [Net] Fix get_response_body_length for large files.
Parsing was fixed, but not the return value for the exposed getter.
2022-01-23 01:30:35 +01:00
Rémi Verschelde e363f404a5 Merge pull request #57000 from KoBeWi/UNLIMITED_PANNING 2022-01-23 00:47:52 +01:00