Commit graph

7281 commits

Author SHA1 Message Date
kobewi
af069109be Don't check modified time if file doesn't exist 2021-02-26 23:18:50 +01:00
Rémi Verschelde
7b685a1558
Merge pull request #46452 from hilfazer/click_mesh_instance_crash_40
Prevent crash when clicking Mesh in MeshInstance when is scene root
2021-02-26 21:00:12 +01:00
hilfazer
1810654369 Prevent crash when clicking Mesh in MeshInstance when is scene root 2021-02-26 19:28:09 +01:00
Rémi Verschelde
7bb0d39da4
Merge pull request #46327 from hilfazer/prevent_change_type_on_foreign_nodes
Prevent 'Change Type' on nodes from a foreign scene
2021-02-26 14:37:14 +01:00
kobewi
59e1c007a7 Save ProjectSettings on editor restart 2021-02-26 13:33:08 +01:00
hilfazer
e28cc34db8 Prevent 'Change Type' on nodes from an instanced scene 2021-02-26 07:18:21 +01:00
Vedat Günel
929da94e2c Add outline to dragged guide text 2021-02-26 03:12:50 +03:00
Michael Alexsander
f2ad7c5f12 Fix heap-use-after-free in Import Defaults Editor 2021-02-25 11:50:10 -03:00
Fredia Huya-Kouadio
eda18fcc1f Update the filtering logic to properly handle directories with .gdignore files. 2021-02-24 18:40:36 -08:00
Rémi Verschelde
757c151219
Merge pull request #46394 from YeldhamDev/import_defaults_fix
Fix import selector resetting in Import Defaults Editor
2021-02-24 22:53:44 +01:00
Michael Alexsander
4837766292 Fix capitalization of checkbox in Input Map Editor 2021-02-24 16:20:39 -03:00
Michael Alexsander
881d1984cf Fix import selector resetting in Import Defaults Editor 2021-02-24 16:05:43 -03:00
trollodel
85a776ddcd Allow CollisionObject3D to show collision shape meshes
Add an editor gizmo to CollisionObject3D.
CollisionShape3D no longer shows collision shapes directly.
2021-02-24 18:50:13 +01:00
Rémi Verschelde
049d654c49
Merge pull request #46354 from reduz/importer-defaults-editor
Added Import Defaults Editor in Project Settings
2021-02-24 13:19:05 +01:00
Rémi Verschelde
6d6a4fa1cf
Merge pull request #46342 from YeldhamDev/sun_preview_enhancements
Apply minor visual enhancements to the Sun/Env Preview
2021-02-24 11:20:36 +01:00
Rémi Verschelde
da551bbf2d
Merge pull request #46133 from aaronfranke/gray
Change fallback icon for abstract nodes to have a grayed out color
2021-02-24 11:17:49 +01:00
reduz
b6fce5d750 Added Import Defaults Editor in Project Settings
-Change importer defaults in project settings.
-Ability to change them or reset them.
2021-02-23 14:18:02 -03:00
Michael Alexsander
0bc7049099 Apply minor visual enhancements to the Sun/Env Preview 2021-02-23 11:21:26 -03:00
reduz
d6a9cff8b7 Add preview Sun and Environment
* Adds both a preview sun and preview environment to the 3D editor.
* They are valid as long as a DirectionalLight3D and WorldEnvironment are not in the scene.
* If any is added to the scene, the respective preview is disabled.
* Changed WorldEnvironment to better handle multiple node versions.
* Added a function in SceneTree to get the first node in a group.
* Fixed button minimum size to also consider font height if no text is there, this broke with the TextSever PR.
2021-02-22 16:56:29 -03:00
Rémi Verschelde
29f0ab0303 i18n: Sync translations with Weblate
(cherry picked from commit d0bc914491)
2021-02-22 11:06:33 +01:00
Rémi Verschelde
51d68919ff
Merge pull request #46263 from dalexeev/fix-help-shortcut-2
Fix "editor/editor_help" shortcut (again)
2021-02-22 10:37:15 +01:00
hilfazer
442e550114 Prevent selecting hidden nodes in 3D and Canvas Item editors 2021-02-21 11:58:31 +01:00
Danil Alexeev
c6435e1d47 Fix "editor/editor_help" shortcut (again) 2021-02-21 00:15:26 +03:00
Rémi Verschelde
dc1ae06557
Merge pull request #44864 from Calinou/editor-array-dictionary-increase-page-size
Increase the page size for array/dictionary editors to 20
2021-02-19 19:53:35 +01:00
Rémi Verschelde
04cb7e638c
Merge pull request #46191 from reduz/refactor-process-mode
Refactor Process Mode
2021-02-19 13:46:50 +01:00
Rémi Verschelde
13303dd56d
Merge pull request #46216 from Chaosus/fix_scenetree_timeout
Fix connecting signal to `SceneTreeEditor::update_timer`
2021-02-19 13:39:50 +01:00
Yuri Roubinsky
a82d231e06 Fix SceneTreeEditor::update_timer - timeout signal 2021-02-19 14:58:18 +03:00
Eric M
8d9256e13c Added Built-in Action editor to Editor Settings dialog.
Built-in actions can now be edited for the Editor too.
Also added usage of the new Event confifiguration dialog to for better UX.
2021-02-19 19:36:42 +10:00
Eric M
3db45ff198 New ActionMapEditor to replace InputMapEditor. Used in ProjectSettings.
Renamed to ActionMapEditor as it is more generic and can be used for more than just the InputMapEditor if required.
This also includes a new Event Configuration dialog (previously "Press A key...") which can be used to create and edit InputEvents for any use - like the Project Settings input map, or the Editor Settings shortcuts.
2021-02-19 19:36:42 +10:00
Rémi Verschelde
aeea4280a0
Merge pull request #38994 from nikibobi/fix-file-dialog-favorite
Fix file dialog filename cleared when selecting favorites
2021-02-19 09:46:17 +01:00
reduz
083aa9b95e Refactor Process Mode
Implements https://github.com/godotengine/godot-proposals/issues/1835#issuecomment-727186192

* PauseMode is now ProcessMode, containing the following states:
	```
	PROCESS_MODE_INHERIT, // same as parent node
	PROCESS_MODE_NORMAL, // process only if not paused
	PROCESS_MODE_PAUSE_ONLY, // process only if paused
	PROCESS_MODE_ALWAYS, // process always
	PROCESS_MODE_DISABLED, // never process
	```
* NOTIFICATION_PAUSED and NOTIFICATION_UNPAUSED are received effectively when the node is paused and unpaused (not any longer when pause mode is set in SceneTree).
* Renamed some nodes that used ProcessMode/process_mode to specify a callback type to ProcessCallback to avoid clashes.
2021-02-18 20:39:55 -03:00
Rémi Verschelde
310496a89f
Merge pull request #45617 from RandomShaper/modernize_atomics
Modernize atomics (and fix `volatile`)
2021-02-18 19:40:31 +01:00
Pedro J. Estébanez
8e128726f0 Modernize atomics
- Based on C++11's `atomic`
- Reworked `SafeRefCount` (based on the rewrite by @hpvb)
- Replaced free atomic functions by the new `SafeNumeric<T>`
- Replaced wrong cases of `volatile bool` by the new `SafeFlag`
- Platform-specific implementations no longer needed

Co-authored-by: Hein-Pieter van Braam-Stewart <hp@tmm.cx>
2021-02-18 17:12:46 +01:00
Eric M
49714b0963 Removed hardcoded shortcuts from /scene and converted to input actions
This removes hardcoded actions from things like LineEdit and TextEdit.

Previously, things like copy, paste, etc were all hardcoded to Ctrl+C, Ctrl+V, etc. They could not be changed. This allows the possibility of them being changed, by making them use the action map. This has the added benefit of greatly simplifying the input handling logic in those controls. The logic which was previously in a huge and hard to follow switch statement has been extracted to individual methods.
2021-02-18 16:22:51 +01:00
Eric M
074f53563d Added ability to override built-in actions for the editor
This adds the ability to add overrides for built-in actions (i.e. ui_*) in the editor. Also added a number of additional built-in actions for various text-related actions, gui-generic actions (like copy and paste) and graph-related actions (duplicate nodes), etc. Moved the definition of input actions to input_map, rather than in project_settings so the editor can make use of these actions as well.
2021-02-18 16:22:50 +01:00
reduz
64140eaf42 Reorganize Project Settings
-Advanced Settings toggle also hides advanced properties when disabled
-Simplified Advanced Bar (errors were just plain redundant)
-Reorganized rendering quality settings.
-Reorganized miscelaneous settings for clean up.
2021-02-18 11:23:34 -03:00
Rémi Verschelde
72f74eb29e
Merge pull request #45943 from KoBeWi/YEEEET
Remove Merge From Scene
2021-02-18 15:15:19 +01:00
Rémi Verschelde
4fe0f1161e
Merge pull request #46159 from gongpha/jr-_-fix-function-binding
Fixes function bindings
2021-02-18 13:25:09 +01:00
Rémi Verschelde
bdf3c578ff
Merge pull request #45950 from KoBeWi/naughty_resources
Fix internal resource detecting when pasting nodes
2021-02-18 12:05:54 +01:00
Kongfa Waroros
efc1eba974 Fixes function bindings 2021-02-18 14:47:06 +07:00
Aaron Franke
0efbd13d8a
Change fallback icon for abstract nodes to have a grayed out color 2021-02-17 13:06:03 -05:00
Rémi Verschelde
7f63d6e848
Merge pull request #46105 from Calinou/assetlib-retry-button-only-failure
Only display the assetlib Retry button if the download failed
2021-02-17 08:10:27 +01:00
Hugo Locurcio
508011a57f
Only display the assetlib Retry button if the download failed 2021-02-17 02:00:22 +01:00
Aaron Franke
7d9ad2b845
Use Vector3.UP as a default value for look_at's up vector 2021-02-16 18:33:23 -05:00
Rémi Verschelde
cb64f2d96b
i18n: Sync translations with Weblate
(cherry picked from commit 7d921c1d53)
2021-02-16 14:54:45 +01:00
Rémi Verschelde
c6c8f22fbe
Merge pull request #46072 from Calinou/add-gpu-particle-attractor-collision-icons
Add icons for the new GPU particle attractor and collision nodes
2021-02-16 12:20:50 +01:00
Hugo Locurcio
7279b4ee35
Add icons for the new GPU particle attractor and collision nodes 2021-02-15 22:15:48 +01:00
Eric M
26c29cc0d7 Improved PopupMenu visuals. Removed x-y margin, made it 'padding' instead. 2021-02-15 15:45:25 +10:00
Pedro J. Estébanez
20f48f0105 Fix SceneTreeEditor::_update_tree() binding 2021-02-14 22:32:42 +01:00
Rémi Verschelde
fc5e9828b4
Merge pull request #44071 from dalexeev/editor-about-logo
Change logo in the About dialog box (return Godot's teeth)
2021-02-14 17:37:26 +01:00