summaryrefslogtreecommitdiffstats
path: root/editor/editor_node.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Keep the bottom panel visible when enabling the distraction-free modeHugo Locurcio2020-06-261-2/+0
| | | | | | | | | | | | - Document the `EditorInterface.distraction_free_mode` property. This closes https://github.com/godotengine/godot-proposals/issues/951.
* | Addition of SDFGI for open world global illuminationJuan Linietsky2020-06-261-1/+7
| | | | | | | | Move GI to a deferred pass
* | Don't use arbitrary theme editor icons for scripts with the same nameAndrii Doroshenko (Xrayez)2020-06-251-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing theme editor icon could be unintentionally set for any global class with matching name (`Group` icon, `Group` class_name etc), which would only show up in the "Create Dialog" context, but not the scene tree dock. This change prevents this behavior, and ensures that the icon can be actually overidden by explicit icon path in `class_name`, if there's any custom icon to begin with. The correct built-in type's icon is fetched for child classes if there are no custom icons detected throughout base classes as well, so it isn't left empty for those cases.
* | Optimize class icon loadingAndrii Doroshenko (Xrayez)2020-06-241-9/+4
| | | | | | | | | | | | | | | | | | | | `get_global_class_name` for `GDScriptLanguage` is slow because it forces to parse an entire script each time. This patch ensures that the icon is actually fetched from the EditorData where they are loaded beforehand. This change also makes the behavior consistent with the existing `get_object_icon` method in EditorNode.
* | Remove ToolButton in favor of ButtonHugo Locurcio2020-06-191-17/+29
| | | | | | | | | | | | | | | | | | | | | | ToolButton has no redeeming differences with Button; it's just a Button with the Flat property enabled by default. Removing it avoids some confusion when creating GUIs. Existing ToolButtons will be converted to Buttons, but the Flat property won't be enabled automatically. This closes https://github.com/godotengine/godot-proposals/issues/1081.
* | Tweak the invalid preset error message to mention `export_presets.cfg`Hugo Locurcio2020-06-091-1/+3
| |
* | PackedScene: Prevent crash when root node has `parent` attributeRémi Verschelde2020-06-081-7/+7
| | | | | | | | | | | | | | | | | | | | The crash happens further down when setting an invalid owner in `Node::_set_owner_nocheck` but I couldn't figure out how to fix it. But here the proper fix is to catch the invalid scene file early on and fail loading it. Part of #17372.
* | Enable text selection in execute output of EditorNodeMarcus Brummer2020-06-041-0/+1
| |
* | Add a getter and property for the editor distraction-free modeHugo Locurcio2020-06-031-1/+1
| |
* | Merge pull request #38451 from eduardonunesp/feature/command-comma-preferencesRémi Verschelde2020-05-161-1/+4
|\ \ | | | | | | Using command + comma on macOS as default shortcut for editor settings
| * | Using command + comma on macOS as default shortcut for editor settingsEduardo Nunes Pereira2020-05-111-1/+4
| | |
* | | Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-138/+258
| | | | | | | | | | | | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* | | Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* | | Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-361/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* | | Port member initialization from constructor to declaration (C++11)Rémi Verschelde2020-05-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using `clang-tidy`'s `modernize-use-default-member-init` check and manual review of the changes, and some extra manual changes that `clang-tidy` failed to do. Also went manually through all of `core` to find occurrences that `clang-tidy` couldn't handle, especially all initializations done in a constructor without using initializer lists.
* | | Merge pull request #38637 from Calinou/editor-rename-revert-scene-bindRémi Verschelde2020-05-131-4/+5
|\ \ \ | | | | | | | | Rename the editor action "Revert Scene" to "Reload Saved Scene"
| * | | Rename the editor action "Revert Scene" to "Reload Saved Scene"Hugo Locurcio2020-05-121-4/+5
| |/ / | | | | | | | | | | | | | | | | | | This option can be used to workaround various issues with stuff not reloading properly when changes are made. The option was renamed to clarify the fact that it actually reloads the scene saved on the filesystem.
* | | Support multiple debug protocols.Fabio Alessandrelli2020-05-121-17/+22
| | |
* | | New lightmapperJuan Linietsky2020-05-101-4/+12
|/ / | | | | | | | | | | | | -Added LocalVector (needed it) -Added stb_rect_pack (It's pretty cool, we could probably use it for other stuff too) -Fixes and changes all around the place -Added library for 128 bits fixed point (required for Delaunay3D)
* | Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-101-1/+2
| | | | | | | | | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* | Merge pull request #37717 from qarmin/world_fixRémi Verschelde2020-05-041-1/+1
|\ \ | |/ |/| Change non-existent World to World3D
| * Change non-existent World to World3Dqarmin2020-04-181-1/+1
| |
* | Merge pull request #36427 from nekomatata/scene-thumbnail-flippedRémi Verschelde2020-04-281-2/+0
|\ \ | | | | | | Fixed flipped scene preview thumbnail
| * | Fixed flipped scene preview thumbnailPouleyKetchoupp2020-02-211-2/+0
| | | | | | | | | | | | No need to flip the image generated from the viewport texture anymore.
* | | Rename InputFilter back to InputRémi Verschelde2020-04-281-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It changed name as part of the DisplayServer and input refactoring in #37317, with the rationale that input no longer goes through the main loop, so the previous Input singleton now only does filtering. But the gains in consistency are quite limited in the renaming, and it breaks compatibility for all scripts and tutorials that access the Input singleton via the scripting language. A temporary option was suggested to keep the scripting singleton named `Input` even if its type is `InputFilter`, but that adds inconsistency and breaks C#. Fixes godotengine/godot-proposals#639. Fixes #37319. Fixes #37690.
* | | Exposed RenderingDevice to script APIJuan Linietsky2020-04-201-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also added an easier way to load native GLSL shaders. Extras: Had to fix no-cache for subresources in resource loader, it was not properly working, making shaders not properly reload. Note: The precommit hooks are broken because they don't seem to support enums from one class being used in another. Feel free to fix this after merging this PR.
* | | Ability to create local RenderingDevice instances.Juan Linietsky2020-04-181-0/+1
| |/ |/|
* | Implement global and per instance shader uniforms.Juan Linietsky2020-04-171-0/+5
| | | | | | | | | | | | | | | | Adds two keywords to shader language for uniforms: -'global' -'instance' This allows them to reference values outside the material.
* | Merge pull request #37749 from clayjohn/Vulkan-improved-ssRémi Verschelde2020-04-131-2/+4
|\ \ | | | | | | Add vogel filter and settings to soft shadows
| * | Add proper quality settings to soft shadowsclayjohn2020-04-101-2/+4
| | |
* | | Implement MSAAJuan Linietsky2020-04-121-4/+4
|/ /
* | Refactored shadowmapping.Juan Linietsky2020-04-081-0/+2
| | | | | | | | | | | | | | | | | | - Made shadow bias size independent, so it will remain when changing light or camera size. - Implemented normal offset bias, which greatly enhances quality. - Added transmission to subsurface scattering - Reimplemented shadow filter modes Closes #17260
* | Merge pull request #37570 from reduz/implement-sssRémi Verschelde2020-04-041-0/+5
|\ \ | | | | | | Re-implement subsurface scattering.
| * | Re-implement subsurface scattering.Juan Linietsky2020-04-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | The size settings are more "just works", with default scale and depth scale values that don't need much tweaking. Additionally, a "skin" mode was added so skin looks better. EDIT: Cleaned up SSR filter shader a bit.
* | | Take borders into account with floating dock initial position/sizeMichael Alexsander2020-04-041-6/+7
| | |
* | | Merge pull request #37363 from YeldhamDev/floating_dock_enhancementsRémi Verschelde2020-04-031-4/+16
|\ \ \ | |/ / |/| | General enhancements to floating docks
| * | General enhancements to floating docksMichael Alexsander2020-03-271-4/+16
| | |
* | | Merge pull request #37512 from reduz/implement-ssrRémi Verschelde2020-04-021-1/+2
|\ \ \ | | | | | | | | Re-Added screen space reflection.
| * | | Re-Added screen space reflection.Juan Linietsky2020-04-021-1/+2
| | | |
* | | | Merge pull request #35720 from Calinou/remove-request-docs-buttonRémi Verschelde2020-04-021-3/+9
|\ \ \ \ | | | | | | | | | | Remove Request Docs button in the script editor due to various issues
| * | | | Remove Request Docs button in the script editor due to various issuesHugo Locurcio2020-04-021-3/+9
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Request Docs button is partly responsible for layout overflow issues on narrow displays, such as #31133. It also tended to attract spam and low-effort issues that were difficult to act upon. A "Send Docs Feedback" menu option has been added to replace it.
* / / / Replace NULL with nullptrlupoDharkael2020-04-021-43/+43
|/ / /
* | | Move glow upscale quality to a global setting, for consistencyJuan Linietsky2020-03-301-0/+3
| | |
* | | Renaming of servers for coherency.Juan Linietsky2020-03-271-17/+17
|/ / | | | | | | | | | | | | | | | | | | VisualServer -> RenderingServer PhysicsServer -> PhysicsServer3D Physics2DServer -> PhysicsServer2D NavigationServer -> NavigationServer3D Navigation2DServer -> NavigationServer2D Also renamed corresponding files.
* | Rename more 2D and 3D nodes to follow conventionRémi Verschelde2020-03-271-23/+23
| | | | | | | | Rename editor plugins to match the new node names.
* | Renamed 2D and 3D nodes to make their types explicitJuan Linietsky2020-03-271-6/+6
| | | | | | | | Fixes #30736.
* | Add macOS DisplayServer implementation.bruvzg2020-03-261-16/+18
| | | | | | | | Change global menu to use Callable, add support for check items and submenus.
* | Open sub-windows as embedded if the OS does not support themJuan Linietsky2020-03-261-4/+1
| |
* | Popups are now windows also (broken!)Juan Linietsky2020-03-261-96/+96
| |
* | Working multiple window support, including editorJuan Linietsky2020-03-261-40/+107
| |