Commit Graph
12097 Commits
Author SHA1 Message Date
Rémi Verschelde f8ab79e68a Zero initialize all pointer class and struct members
This prevents the pitfall of UB when checking if they have been
assigned something valid by comparing to nullptr.
2022-04-04 19:49:50 +02:00
Rémi VerscheldeandGitHub 53317bbe14 Merge pull request #59866 from m4gr3d/update_default_display_scale_main 2022-04-04 19:31:37 +02:00
Fredia Huya-Kouadio 8eabf77f54 Update the editor display scale based on the device's scaled density 2022-04-04 09:23:43 -07:00
Rémi VerscheldeandGitHub f1592cb3da Merge pull request #58010 from jmb462/fix-TextEdit-v_scroll_speed 2022-04-04 13:50:52 +02:00
jmb462 0d17903bd5 Fix TextEdit v_scroll_speed invalid values breaks wheel scrolling 2022-04-03 21:07:39 +02:00
Michael Alexsander 1062bc9884 Fix creation and reopening of built-in scripts 2022-04-03 15:34:21 -03:00
Rémi VerscheldeandGitHub c630c2001d Merge pull request #59633 from EricEzaM/better-code-complete-update
Improve sorting of Code Completion options.
2022-04-03 12:34:00 +02:00
Eric M cc6a181ed8 Action Map Editor fixes and improvements
Multiple fixes:
* Fixed device not being updated correctly (changing the device dropdown did not actually change the underlying event's device)
* Device selection now defaults to `All Devices`
* Device is now displayed in the text shown in the input event editor, and in the action list.
* There was code running twice previously because of the following interaction: 1) input via "Listen for Input" tab. 2) `_set_event` gets called. 3) input list tree selection gets updated to match the listened event. 4) tree "item_selection" signal is emitted. 5) eventually `_set_event` is called again.
* The only reason this was not an infinite loop is because reselection is disabled on the tree. So, the code runs twice - not a big deal, but it is unnecessary processing and it could cause an issue in the future. If someone turns on reselection on the tree, the whole thing comes crashing down. This should prevent that scenario and make the code a bit safer and more robust.
2022-04-01 21:34:09 +10:00
Eric M 4ab605d14d Improve sorting of Code Completion options.
Done by ordering options by their location in the code - e.g. local, parent class, global, etc.
2022-04-01 20:39:09 +10:00
Rémi VerscheldeandGitHub 4263f02f28 Merge pull request #59764 from reduz/blender-import-autodetect 2022-04-01 11:42:05 +02:00
e32215fbad Add Blender install autodetection and configuration.
This PR is a continuation to #54886

* Changed Blender path editor setting from binary to installation.
* Add a class to query whether the format is supported.
* This class allows to create proper editors to configure support.

**NOTE**: This PR only provides autodetection on Linux. Code needs to be added for Windows and MacOS to autodetect the Blender installation.

Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
Co-authored-by: Pedro J. Estébanez <pedrojrulez@gmail.com>
2022-04-01 11:01:12 +02:00
Haoyu Qiu 2f20ff0ed6 Extract theme property names for localization 2022-04-01 11:35:22 +08:00
kobewi 004ced89aa Fix name of the created static trimesh body 2022-03-31 18:02:18 +02:00
Haoyu Qiu c7e06e2202 Clip animation track keyframe rects 2022-03-31 18:39:04 +08:00
Rémi VerscheldeandGitHub b7850bb1e8 Merge pull request #58395 from Geometror/editor-node-data-cleanup 2022-03-30 23:41:36 +02:00
Hendrik BruckerandEric M 314430b868 Cleanup EditorNode and EditorData
Co-authored-by: Eric M <itsjusteza@gmail.com>
2022-03-30 20:12:26 +02:00
Haoyu Qiu 39245c8216 Strip feature tag manually when extracting property paths 2022-03-30 20:29:43 +08:00
Haoyu Qiu 0a9f97f423 Add more patterns for property path extraction 2022-03-30 18:21:46 +08:00
reduz 45f74ceb85 Add PortableCompressedTexture
* Resource that allows saving textures embedded in scenes or standalone.
* Supports only formats that are portable: Lossy, Lossles or BasisUniversal

This is something I wanted to add for a long time. I made it now because @fire
requires it for importing GLTF2 files with embedded textures, but also this
will allow saving Godot scenes as standalone binary files that will run
in all platforms (because textures will load everywhere).

This is ideal when you want to distribute individual standalone assets online
in games that can be built from Godot scenes.
2022-03-30 10:39:41 +02:00
Rémi VerscheldeandGitHub f6ef63635f Merge pull request #59659 from fountainment/fix_callable_bind_usage
Fix Callable::bind usage in connections_dialog.h and packed_scene.cpp
2022-03-30 09:00:07 +02:00
Rémi VerscheldeandGitHub a06b94a1c1 Merge pull request #59677 from fire-forge/debugger-capitalize
Process monitor and profiler item names in the Debugger
2022-03-30 08:58:21 +02:00
Rémi VerscheldeandGitHub 5c2e858790 Merge pull request #59679 from marstaik/upstream_fix_init
Fix lack of ProjectManager nullptr initializations
2022-03-29 21:48:18 +02:00
Marios Staikopoulos 7af275e2d5 Fix lack of ProjectManager nullptr initializations
Initialize all pointers to nullptr, fixes a crash with asset_library
caused by uninitialized memory.
2022-03-29 11:17:24 -07:00
FireForge efd9b8bc29 Capitalize names in the debugger 2022-03-29 09:07:08 -05:00
Rémi VerscheldeandGitHub 01a3b84545 Merge pull request #59558 from V-Sekai/primitive-indicies 2022-03-29 14:43:26 +02:00
Rémi VerscheldeandGitHub 88299c1589 Merge pull request #59496 from KoBeWi/inspector_teleport 2022-03-29 13:26:49 +02:00
Haoyu Qiu c17d9f05f8 Simplify FBX importer project settings registering 2022-03-29 15:00:43 +08:00
Rémi VerscheldeandGitHub 29a946ee91 Merge pull request #59374 from timothyqiu/extract-refactor-master
Refactor editor `extract.py`
2022-03-29 08:44:37 +02:00
Yuri Roubinsky 509598e8c0 Remove SHADOW_ATTENUATION spatial light shader built-in 2022-03-29 08:43:31 +03:00
C.Even 619d9d143b Fix Callable::bind usage in connections_dialog.h and packed_scene.cpp
* Callable::bind takes an array of pointers to Variant
* Fixes #57057
2022-03-29 12:15:36 +08:00
Rémi Verschelde a7a3ff6940 i18n: Sync editor translation template after #59349
(cherry picked from commit 15dc747de8)
2022-03-29 01:23:03 +02:00
Rémi Verschelde c5192d57c6 i18n: Sync editor translations with Weblate
(cherry picked from commit 0db753ef54)
2022-03-29 01:22:58 +02:00
Rémi VerscheldeandGitHub fd0716cba9 Merge pull request #58160 from m4gr3d/android_editor 2022-03-29 00:04:42 +02:00
5711037bf6 Android port of the Godot Editor
These set of changes focus primarily on getting the core logic and overall Godot Editor UI and functionality up and running natively on Android devices.
UI tweaks / cleanup / polish, as well configuration for Android specific functionality / restrictions will be addressed in follow-up PRs iteratively based on feedback.

Co-authored-by: thebestnom <shoval.arad@gmail.com>
2022-03-28 14:04:51 -07:00
Rémi VerscheldeandGitHub f3bd700767 Merge pull request #59619 from Chaosus/vs_input_desc 2022-03-28 22:32:11 +02:00
FireForge 88b09694e7 Fix inspector group name capitalization 2022-03-28 14:02:06 -05:00
Yuri Roubinsky 9edbdc4f36 Add refs to shading language to the desciption of input nodes in vshader 2022-03-28 22:01:10 +03:00
Rémi VerscheldeandGitHub 74b07dd194 Merge pull request #59426 from timothyqiu/name-style-master 2022-03-28 14:19:47 +02:00
Rémi VerscheldeandGitHub 143d13717b Merge pull request #59553 from reduz/script-extension-support 2022-03-28 13:35:21 +02:00
Haoyu Qiu ccde2bf66f Add property name style toggle to Inspector 2022-03-28 18:52:09 +08:00
Rémi VerscheldeandGitHub 6b2481fcfe Merge pull request #59565 from SirQuartz/master 2022-03-28 12:28:43 +02:00
Rémi VerscheldeandGitHub 8e7d2826d8 Merge pull request #59453 from DanielKriz/master 2022-03-28 12:20:15 +02:00
Nicholas HuelinandRémi Verschelde 01ca9d3eec Hide "Normal Map" import option when using lossless compression on Texture
This pull request resolves an issue where images being imported with lossless compression allowed you to select a normal map, but the normal map only applies if you're using VRAM compression. Thereby making it redundant to appear when using lossless compression. This pull request hides the normal map option when lossless compression is selected.

Resolves: #59435
2022-03-28 11:36:52 +02:00
Rémi VerscheldeandGitHub b3c35abf92 Merge pull request #59614 from timothyqiu/debug-colors-master 2022-03-28 10:18:40 +02:00
Rémi VerscheldeandGitHub 00e9170812 Merge pull request #59574 from Sauermann/proposal-rename-warp-mouse
Rename warp mouse functions to warp_mouse
2022-03-28 08:52:02 +02:00
Haoyu Qiu af3a5ea7ea Update SceneTree debug colors when settings changed 2022-03-28 10:49:18 +08:00
Rémi VerscheldeandGitHub a0071029f2 Merge pull request #59603 from YeldhamDev/meta_regression_fix
Fix "Script Create" dialog errors with metadata
2022-03-28 00:41:04 +02:00
Rémi VerscheldeandGitHub bff6dc4fb9 Merge pull request #59599 from YeldhamDev/node_picking_lawyer
Fix errors when locking nodes
2022-03-28 00:19:01 +02:00
Michael Alexsander bb5198a5ac Fix "Script Create" dialog errors with metadata 2022-03-27 18:41:41 -03:00
Michael Alexsander c331a3a614 Fix errors when locking nodes 2022-03-27 16:10:57 -03:00