Commit graph

7486 commits

Author SHA1 Message Date
Rémi Verschelde 7ed2220928
Remove now unnecessary ResourceImporterCSV importer
Its only purpose was to prevent importing CSV files as translations, but it
would still import them as *nothing*, leading to workflow issues.

This is now properly fixed with #47268 which allows disabling the import for
specific files.
2021-03-23 15:49:30 +01:00
Juan Linietsky 4706297356 Remove FileSystem dock errors on unimported files
* Removes error shown when file is in 'keep' mode
* Display a warning when attempting to open the file
* Closes #47296
2021-03-23 11:33:07 -03:00
Rémi Verschelde 22716a1df2
Merge pull request #36004 from nathanfranke/fix-transparent-theme-color
Fix transparent editor theme being brighter
2021-03-23 13:25:38 +01:00
Rémi Verschelde 5238f1399d
Merge pull request #38054 from aaronfranke/enums
Rename many global enums relating to input
2021-03-23 13:00:24 +01:00
Rémi Verschelde ecfa2f8de2
Merge pull request #35320 from Calinou/edited-scene-extension-if-ambiguous
Display scene file extensions in the editor only if there's ambiguity
2021-03-23 12:58:07 +01:00
Tomasz Chabora eb4082b24a Add option to exclude selected resources on export 2021-03-23 12:49:19 +01:00
Aaron Franke 10d7fccb54
Rename ButtonList enum and members to MouseButton 2021-03-23 07:13:23 -04:00
Rémi Verschelde 70eff30c5f
Merge pull request #46823 from Calinou/editor-tweak-save-branch-as-scene-messages
Tweak error messages for the Save Branch as Scene editor option
2021-03-23 11:57:08 +01:00
Rémi Verschelde 300f86351e
Merge pull request #47287 from Shatur95/fix-duplicated-code
Move duplicated code into a function
2021-03-23 11:17:28 +01:00
Rémi Verschelde 939c4bbe3f
Merge pull request #47261 from KoBeWi/filterdropper
Allow to drop files on filtered scene tree
2021-03-23 10:34:13 +01:00
Shatur95 a1cfc1032c Move duplicated code into a function 2021-03-23 09:08:06 +02:00
bruvzg b202a0dd2a
FileDialog: add Back/Forward buttons, add message for inaccessible folders. 2021-03-23 08:03:41 +02:00
Rémi Verschelde 7acd62886d
Merge pull request #47263 from nekomatata/fix-physical-bone-gizmo
Fix PhysicalBone gizmo not showing
2021-03-23 00:13:09 +01:00
Rémi Verschelde 6a84ade316
Merge pull request #45234 from madmiraal/rename-phashtranslation
Rename PHashTranslation to OptimizedTranslation
2021-03-23 00:12:12 +01:00
Rémi Verschelde 89d3c787d4
Merge pull request #47271 from Shatur95/remove-hardcoded-names
Remove hardcoded names in generated objects
2021-03-22 23:41:36 +01:00
Shatur95 7762d4592d Remove hardcoded names in generated objects 2021-03-22 22:37:26 +02:00
Juan Linietsky 8d64f3bd76 Add a "keep" import mode to keep files as-is and export them. 2021-03-22 17:19:19 -03:00
PouleyKetchoupp 0e4c34ac65 Fix PhysicalBone gizmo not showing
The new CollisionObject gizmo used for custom shapes was used with
higher priority due to alphabetical order and was preventing physical
bones from being displayed in the editor.
2021-03-22 10:29:49 -07:00
kobewi 4e64c9fd4d Allow to drop files on filtered scene tree 2021-03-22 16:35:49 +01:00
Juan Linietsky 97a3a66220 Improved 3D Scene Importer
* Added option for importers to show an Advanced settings dialog
* Created advanced settings dialog for Scene Importer
* Cleaned up importers (remove many old/unused options)
* Added the ability to customize every node, material, mesh and animation individually
* Saving to animations and meshes to files is now a manual process, making it more predictable
* Added the ability for materials to be replaced by external files (or to be made external, up to you).
* When doubleclicking an impoted scene in the filesystem dock, it automatically shows the import settings instead of asking to open it.

WARNING: Lightmap UV unwrap is not working, it needs to be re-made.
2021-03-22 12:16:40 -03:00
Hugo Locurcio 4c8f458c90
Tweak error messages for the Save Branch as Scene editor option
See https://github.com/godotengine/godot-proposals/issues/2433.
2021-03-21 15:50:37 +01:00
Marcel Admiraal 755c70b871 Rename Array.invert() to Array.reverse()
Does the same internally for List and Vector<>, which includes all
PackedArray types.
2021-03-21 10:20:08 +00:00
Rémi Verschelde 48ee9cd690
Merge pull request #47123 from Calinou/tweak-3d-editor-grid-default-min-division
Tweak the 3D editor grid default to not go below subdivisions of 1 meter
2021-03-21 01:19:23 +01:00
Hugo Locurcio 3472c3f6ea
Tweak the 3D editor grid default to not go below subdivisions of 1 meter
Small subdivisions aren't useful that often and make it difficult for
people to get a sense of scale in 3D.
2021-03-21 00:41:12 +01:00
Rémi Verschelde 28ff1e2d96
Merge pull request #46938 from dreamsComeTrue/pick-track-improv
Make Animation's SceneTreeDialog filter nodes properly
2021-03-21 00:16:52 +01:00
Rémi Verschelde 17f77a74e1
Merge pull request #46758 from W4RH4WK/add-more-index-checks-collada-importer
Add additional index checks to COLLADA importer
2021-03-21 00:15:07 +01:00
Rémi Verschelde 9febc206fe
Merge pull request #46740 from KoBeWi/🎵🎵🎵
Fix audio player not resetting after wav finishes
2021-03-20 22:47:19 +01:00
Lightning_A 93f944b070 Add the ability to remove project contents from the remove project dialog 2021-03-20 15:34:37 -06:00
Hugo Locurcio 218d124755
Display scene file extensions in the editor only if there's ambiguity
This also simplifies the Editor Settings as the extension is now
automatically shown to avoid ambiguity.
2021-03-20 20:38:18 +01:00
kobewi daa62ccaa3 Fix audio player not resetting after wav finishes 2021-03-20 20:16:53 +01:00
Rémi Verschelde 6608d99291
Merge pull request #47001 from madmiraal/rename-sprite_2d-region_enabled
Rename Sprite.region_enabled getter and setter methods to match properties
2021-03-20 18:36:17 +01:00
Marcel Admiraal 07f1cd5ff8 Rename PHashTranslation to OptimizedTranslation 2021-03-20 10:02:47 +00:00
Haoyu Qiu 30842b2efe Fix project icon size in Project Manager 2021-03-20 17:32:38 +08:00
Michael Alexsander 77597ea47c Select non-perfect matches if necessary in the Search Help dialog 2021-03-19 18:49:21 -03:00
Dominik 'dreamsComeTrue' Jasiński 08a45ebfba Make Animation's SceneTreeDialog filter nodes properly 2021-03-19 22:30:32 +01:00
andybarcia 558b08e6d9 Fixes TileMap editor copy bug. 2021-03-19 12:09:28 +01:00
Lightning_A c562c6943f Remove current export template version from "Installed Versions"
**Not tested** (I don't have an easy way to test currently). Resolves https://github.com/godotengine/godot-proposals/issues/2394 .
2021-03-18 11:57:01 -06:00
Rémi Verschelde 224f5cab99
Merge pull request #46378 from reduz/static-method-in-variant-types
Add static method support to core Variant types
2021-03-16 15:44:04 +01:00
reduz ecfa570ccb Add static method support to core Variant types
* Properly exposed, including validated and variant call
* Bound static functions in String and Color
* Did not add support for scripting languages, will have to be added manually.
2021-03-16 10:53:05 -03:00
Rémi Verschelde d1d09bf8bc
i18n: Sync translations with Weblate
(cherry picked from commit 94a0fc47f7)
2021-03-16 11:42:02 +01:00
Haoyu Qiu eac806547f Fix AnimationTree editor crash when renaming node 2021-03-16 00:21:20 +08:00
Rémi Verschelde 5375da2fdb
Merge pull request #44333 from lupoDharkael/preferred-extension
Save resource: give .res less priority as preferred extension
2021-03-15 08:22:09 +01:00
Dominik 'dreamsComeTrue' Jasiński a99a671034 Reset ruler tool when switching tools with shortcuts
Fixes: #37056
2021-03-15 00:28:52 +01:00
Hugo Locurcio 79e31efd40
Use OS-specific terminology for "Move to Trash" in the editor filesystem
This closes https://github.com/godotengine/godot-proposals/issues/2460.
2021-03-14 21:18:58 +01:00
Marcel Admiraal 3dcdb84660 Rename Sprite.region_enabled getter and setter to match properties
Also renames Sprite2D.region_filter_clip property and its setter to
region_filter_clip_enabled and set_region_filter_clip_enabled.
2021-03-14 17:31:49 +00:00
Rémi Verschelde 2e2d533b48
Merge pull request #46971 from YeldhamDev/editinspec_theme_fix
Fix EditorInspector not updating its theme on rare occasions
2021-03-14 11:58:30 +01:00
Rémi Verschelde 55d9c31dcb
Merge pull request #46943 from jmb462/fix-editor-slider-grabber-zoomed-bad-position
Fix EditorSpinSlider grabber zoom issues (Fix #46632)
2021-03-14 11:35:46 +01:00
Rémi Verschelde 61155b5e29
Merge pull request #46942 from ray90514/debug
Fix Node can not be reselected
2021-03-14 11:34:02 +01:00
Rémi Verschelde df4019c0da
Merge pull request #46970 from jmb462/fix-crash-on-closing-empty-modified-scene
Fix crash on closing empty modified scene (Fix #46959)
2021-03-14 01:04:32 +01:00
Rémi Verschelde f381ea8bb6
Merge pull request #46985 from jmb462/Fix-Asset-Library-URL-editor-update
Fix Asset Library URLs not updating without restarting after been changed in editor settings (Fix #46977)
2021-03-14 00:20:38 +01:00
jmb462 6525d74623 Fix Asset Library URL not updating after been changed in editor settings
The changes made in this commit refresh the URL OptionButton when editor settings are modified.

No need to restart any more for the changes to appear in the Asset Library.

Fix #46977
2021-03-13 22:55:59 +01:00
Rémi Verschelde 21aabc4fe3
Merge pull request #46969 from Pop0p/fix_folder_stripedges
Remove whitespaces when creating folder
2021-03-13 22:22:27 +01:00
lupoDharkael f2e906496b Save resource: implement extension priority
give .res less priority and .tres more priority as preferred
extensions.
2021-03-13 22:09:17 +01:00
Rémi Verschelde 223a06955e
Merge pull request #46978 from jmb462/fix-hardcoded-maya-style-pan-key-modifier
Fix hardcoded Maya style navigation pan key modifier (Fix #46973)
2021-03-13 22:03:40 +01:00
Rémi Verschelde 0e3aae00d8
Merge pull request #46919 from nekomatata/soft-body-gizmo-fix
Fix pinned vertices in SoftBody editor gizmo
2021-03-13 21:52:38 +01:00
Rémi Verschelde 0444f5ac47
Merge pull request #46946 from Calinou/editor-sprite-frames-zoom-hidpi
Scale zoom values in the SpriteFrames editor for hiDPI displays
2021-03-13 21:49:43 +01:00
jmb462 31077d875e Fix hardcoded Maya style navigation pan key modifier
ALT key modifier was hardcoded is node_3d_editor_plugin.cpp and didn't take editor settings into account.

Fix #46973
2021-03-13 20:45:14 +01:00
Michael Alexsander efa3927b49 Fix EditorInspector not updating its theme on rare occasions 2021-03-13 15:08:16 -03:00
jmb462 281f5a4999 Fix always capitalized properties in sub-inspector
Fix #46961: 

This commit correctly initialize capitalization in sub-inspectors (like shaders's sub-inspector in the inspector panel) with the editor settings.
2021-03-13 18:42:59 +01:00
jmb462 49d5ec073f Fix crash on closing empty modified scene 2021-03-13 18:19:29 +01:00
Pop0p c8538153b0 trims_whitespaces_when_creating_folder_windows
When creating a Windows folder via a Godot's dialog, the extra spaces are not removed which causes problems with Windows. We now remove leading and trailing whitespace when creating a dir.
2021-03-13 17:09:25 +01:00
ray90514 b0c881392a Fix Node can not be reselected 2021-03-13 22:30:37 +08:00
Rémi Verschelde c4f32bced9
Merge pull request #46955 from mujpao/polygon2d-update-viewport
Update viewport after Polygon2D deselected
2021-03-13 14:42:20 +01:00
jmb462 919b097b9e fix-EditorSpinSlider-grabber-zoomed-position 2021-03-13 11:27:43 +01:00
sboronczyk 14658e3d10 Fix Create Plugin after GD Annotation Changes 2021-03-13 02:50:55 +01:00
mujpao 030703dd30 Update viewport after Polygon2D deselected 2021-03-12 17:22:46 -08:00
Hugo Locurcio e5c5b9570f
Scale zoom values in the SpriteFrames editor for hiDPI displays
This closes #46836.
2021-03-12 19:05:45 +01:00
Rémi Verschelde adf233ed04
Merge pull request #46918 from ray90514/debug
Fix Tree focus border disappears when Border Size is set to 0
2021-03-12 13:42:54 +01:00
ray90514 4c0ab07809 Fix Tree focus border disappears when Border Size is set to 0 2021-03-12 09:28:20 +08:00
PouleyKetchoupp 29e67101db Fix pinned vertices in SoftBody editor gizmo
The wrong vertices could be highlighted/selected due to generating a
debug triangle mesh to gather points, which can modify the order of
vertices.
2021-03-11 18:28:16 -07:00
mujpao 15656d4182 Fix crash when trying to export zero files.
Fixes crash that happened while exporting if zero files were selected
and adds more error handling to EditorExportPlatform class.
2021-03-11 13:30:04 -08:00
Rémi Verschelde 27dea9366f
Merge pull request #46510 from hilfazer/nested_scene_duplication_4_0
Support for duplication of nested instanced scenes
2021-03-11 21:39:43 +01:00
hilfazer 72134a7f2a Support for duplication of nested instanced scenes 2021-03-11 19:26:15 +01:00
Gilles Roudière ba1344408f Implement Navigation layers 2021-03-10 11:23:06 +01:00
Gilles Roudière a9dc53d152 Remove Navigation2D/3D nodes, and move the navigation map to the world resource 2021-03-10 11:23:06 +01:00
Rémi Verschelde 0bef220f0a
Merge pull request #46759 from qarmin/crashes_others
Fix crashes when manipulating nodes in editor
2021-03-09 17:19:07 +01:00
Rémi Verschelde 83b1acdc60
Merge pull request #45545 from abaire/relaxes_gltf_name_sanitization
Relaxes node name sanitization in gltf documents.
2021-03-09 14:54:33 +01:00
Rémi Verschelde 18bb36707f
Merge pull request #46110 from gongpha/colorbar-in-colorpicker
Add color interpolation bar on each channel in ColorPicker
2021-03-09 14:43:26 +01:00
Rémi Verschelde ca1db9626c
Merge pull request #46670 from Shatur95/fix-enable-created-plugin
Fix enabling of created plugin
2021-03-09 13:54:17 +01:00
Kongfa Waroros d295d53b4a Add interpolation bar on each channel in ColorPicker 2021-03-09 14:58:19 +07:00
Rémi Verschelde b6e97c10ad i18n: Sync translations with Weblate
(cherry picked from commit f1f472439e)
2021-03-08 17:51:58 +01:00
Rémi Verschelde 14f330c95e
Merge pull request #46771 from socket220/master
pop-up usability enhancement for support-level button
2021-03-08 16:02:09 +01:00
nemerle 7bbacb5ff6 fix incorrectly connected optimize_dialog signal 2021-03-08 11:14:45 +01:00
gatalskii efe05a166e mod: pop-up usability enhancement for support button
Now after choosing support level pop-up doesn't hide after each click
2021-03-07 22:51:40 +03:00
Hugo Locurcio 25c6acb702
Make the pagination buttons wider in the asset library browser
This makes the page number buttons easier to click.
2021-03-07 20:11:58 +01:00
Rafał Mikrut f81ecb498b Fix crashes when manipulating nodes in editor 2021-03-07 15:14:24 +01:00
Alex Hirsch 8faeb72f10 Add additional index checks to COLLADA importer
ref #46548
2021-03-07 14:53:01 +01:00
Rémi Verschelde 05248535f7
Merge pull request #46641 from KoBeWi/unsaved_forever
Don't save unchanged script upon closing
2021-03-06 21:06:06 +01:00
kobewi 12f5a5a701 Don't save unchanged script upon closing 2021-03-06 20:17:19 +01:00
Shatur95 c26b451afe Fix enabling of created plugin 2021-03-06 15:33:52 +02:00
Pedro J. Estébanez 565796518d Fix crash on cleanup of EditorFileServer 2021-03-06 13:29:40 +01:00
Ev1lbl0w 1f0b60c47d
Fix negative VRAM values 2021-03-05 21:48:20 +00:00
jmb462 068300c7c9 Adding Raycast3D custom debug shape thickness and color 2021-03-04 11:17:26 +01:00
Rémi Verschelde ec7053259b
Merge pull request #41437 from KoBeWi/put_it_here
Allow to create a node at specific position
2021-03-01 15:48:53 +01:00
Rémi Verschelde c2799893f4
Merge pull request #46544 from Chaosus/tilemap_signal_fix
Check before connecting `TileMapEditor::settings_changed`
2021-03-01 11:59:11 +01:00
Rémi Verschelde 4b1887fa28
Merge pull request #46535 from asmaloney/fix-gizmo-names
Fix Node3D gizmo names
2021-03-01 09:40:54 +01:00
Yuri Roubinsky 1e7662f972 Check before connecting TileMapEditor::settings_changed 2021-03-01 10:25:33 +03:00
Andy Maloney 14c50fdb94 Fix gizmo names
Commit 5ef62e546f renamed EditorNode3DGizmoPlugin "get_name" to "get_gizmo_name", but it wasn't done everywhere. Because EditorNode3DGizmoPlugin inherits from Resource, it was then using Resource::get_name() which resulted in null names.

Fixes godotengine/godot#46349
2021-02-28 20:52:53 -05:00
Oliver Dick 0559fc58d1 SceneTreeDock: Changed "Save Branch as Scene" to make use of Node::duplicate_from_editor, which is also used by "Duplicate" function of the SceneTreeDock
- Removed Node::duplicate_and_reown method as it is not used anymore
2021-02-28 17:19:01 +01:00
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
Tomasz Chabora 8df22a03c4 Allow to create a node at specific position 2021-02-26 14:40:28 +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
abaire 61cc1c8624 Relaxes Node naming constraints in glTF documents to match the Editor. 2021-02-24 08:22:27 -08: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
Yuri Roubinsky fe3051fcce Added Comment node to Visual Shaders 2021-02-21 12:40:17 +03: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