Commit graph

5856 commits

Author SHA1 Message Date
Tomasz Chabora 843948b69d Show theme property descriptions in the inspector
(cherry picked from commit 7a0e813ffa)
2020-03-25 09:38:18 +01:00
Ignacio Etcheverry 110523fecc Expose FileSystemDock to the scripting API and fixed signals
Fixed FileSystemDock's `file_removed` and `folder_removed` signals not being
emitted because the emitted was using the wrong signal name.

(cherry picked from commit fe0b783e70)
2020-03-18 17:57:45 +01:00
Rémi Verschelde 69081c000d
Merge pull request #33098 from JFonS/viewport_rotation
Add rotation widget to 3D viewport
2020-03-17 16:29:44 +01:00
Rémi Verschelde 4a38ec3937
Merge pull request #36336 from m4gr3d/android_plugin_v2_for_godot_3_2
Re-architecture of the Godot Android plugin. [3.2]
2020-03-17 16:27:59 +01:00
Rémi Verschelde c01e840f03
Merge pull request #36639 from RandomShaper/imvu/improve_drives_ux_3.2
Improve UX of drive letters (3.2)
2020-03-17 16:27:33 +01:00
Pedro J. Estébanez 6105dfdac9 Improve UX of drive letters
Namely, move the drive dropdown to just the left of the path text box and don't include the former
in the latter.

This improves the UX on Windows.

In the UNIX case, since its concept of drives is (ab)used to provide shortcuts to useful paths, its
dropdown is kept at the original location.
2020-03-17 14:48:54 +01:00
Rémi Verschelde 0e36b11f9d i18n: Sync translations with Weblate 2020-03-16 10:45:42 +01:00
Rémi Verschelde df2a2ae0fc DocData: Fix serialization of Variant default values
Co-authored-by: Bojidar Marinov <bojidar.marinov.bg@gmail.com>
(cherry picked from commit 788765709d)
2020-03-09 11:36:57 +01:00
fhuya c3660bb4dc Re-architecture of the Godot Android plugin. 2020-03-09 10:30:02 +01:00
Rémi Verschelde 18e021b7cd i18n: Sync translations with Weblate 2020-03-09 10:03:42 +01:00
jfons 5b4251695a Add rotation widget to 3D viewport 2020-03-09 09:40:10 +01:00
Thakee Nathees 15057c9284 Fix EditorFolding crash when switching scenes
(cherry picked from commit 3275e8488b)
2020-03-06 23:51:26 +01:00
Aaron Franke 41e385cfac Document EditorPlugin get_plugin_icon and get_plugin_name
The return value's type hint is now accurate.

(cherry picked from commit 68d73ecf60)
2020-03-06 23:51:25 +01:00
Dominik 'dreamsComeTrue' Jasiński a2bc4f0b30 Take correct part of extension with File Dialog
Fixes #36697

(cherry picked from commit 319840bad1)
2020-03-04 12:40:15 +01:00
fhuya 7de67f6c48 Fix android template install validation.
(cherry picked from commit 5b80dc9a2a)
2020-03-04 12:40:15 +01:00
simpuid 621c20db90 Implement undo-redo feature for Parameter Paste in the Inspector
EditorData::undo_redo.add_do_property and EditorData::undo_redo.add_undo_property is used in EditorData::paste_object_params to implement this feature. It's action name is set to "Paste Params"

Changes made
* Removed the call for clearing the history on paste params case.
* Instead of directly setting the properties value, EditorData::undo_redo is used.

(cherry picked from commit f817ba8379)
2020-03-04 12:40:15 +01:00
Michael Alexsander 867ea694da Fix import changing disabling checking on multiple files
(cherry picked from commit d35386263f)
2020-03-04 12:40:15 +01:00
Richard Menzies 367048030b Fix wrong selection on cloning a line down in the editor
(cherry picked from commit 28f74327be)
2020-03-04 12:40:14 +01:00
Hugo Locurcio 6488570251 Fix a typo in the "Create Single Convex Collision Sibling" option
(cherry picked from commit 7348dfb5b7)
2020-03-04 12:40:14 +01:00
Maurizio Petrarota 53b4689979 Fixed TextureAtlas import.
(cherry picked from commit 744c1fafff)
2020-03-04 12:40:14 +01:00
Andrea Catania 30688769f4 Fixed editor crash when the animation player has no root assigned.
(cherry picked from commit c9b86d54bf)
2020-03-04 12:40:14 +01:00
Michael Alexsander 6e4aa5a580 Don't show a copy of the property's name in the inspector's tooltip if there's no description
(cherry picked from commit 28d3f85e64)
2020-03-04 12:40:14 +01:00
Michael Alexsander 6e300a0c49 Remove extra margin in the top of the debugger
(cherry picked from commit 5c5a2b7472)
2020-03-04 12:40:14 +01:00
Juan Linietsky 03c8e12d54 Add support for named binds in Skin.
Helps better reutilization of skeletons from Maya exported files.

(cherry picked from commit 9a34f39d32)
2020-03-04 12:40:14 +01:00
Hugo Locurcio 73240f81d0 Decrease the script editor's default split width to 70
This also makes its value change to match the editor scale.

(cherry picked from commit ac3c93077c)
2020-03-04 12:40:14 +01:00
Yuri Sizov 04b3e208fa Add a button to quickly repeat last search in files
(cherry picked from commit 8c80b602ac)
2020-03-04 09:52:55 +01:00
janglee 56437cddeb Make orthogonal view mode persistent in new scene
Fixes #36339.

(cherry picked from commit d3c580f0bc)
2020-02-20 07:59:45 +01:00
Rémi Verschelde 1c9132540f i18n: Sync translations with Weblate 2020-02-19 10:09:14 +01:00
Tomasz Chabora 15162906e4 Allow for continuous deletion/duplication of lines
(cherry picked from commit b23f141ba4)
2020-02-18 14:22:05 +01:00
Haoyu Qiu dcf158703e Fixes crash when pressing enter in ConnectDialog with nothing selected
(cherry picked from commit cf8eedb2f5)
2020-02-18 14:21:01 +01:00
Hugo Locurcio 06344ac10d Increase the width of the "Connections to method" dialog
This closes #36245.

(cherry picked from commit 5c659dd399)
2020-02-18 14:20:18 +01:00
SkyJJ 9091e8d839 Fix script icon not showing at startup bug
(cherry picked from commit 032b0e5899)
2020-02-18 14:19:25 +01:00
Michael Alexsander f6d2bbdeab Fix multiple issues with the "Import" dock
(cherry picked from commit bdd4d28081)
2020-02-18 14:18:09 +01:00
Rémi Verschelde fbaf3c26bf doc: Only encode version branch (x.y) in class header
This avoids a big diff on patch version updates.

(cherry picked from commit dacfdd8f33)
2020-02-14 20:20:12 +01:00
Rémi Verschelde 3dfedc0b4c i18n: Sync translation template with current source 2020-02-14 17:52:59 +01:00
Rémi Verschelde 74738806f3 i18n: Sync translations with Weblate 2020-02-14 17:51:56 +01:00
Haoyu Qiu 762578e7bc Fixes range hint for default_float_step
(cherry picked from commit dfe9825e00)
2020-02-14 16:32:33 +01:00
Hugo Locurcio 6edb5ac9e9 Optimize the editor icon generation
Icons are no longer upsampled when using an integer editor scale.
This makes some icons slightly less crisp, but the icons themselves
can be adjusted to mitigate this. When using a non-integer editor
scale setting, upsampling is kept as it improves crispness in a
far more visible manner.

When upsampling is disabled, this speeds up the theme generation
by about 100 ms on average, making the project manager and editor
start slightly faster. This also speeds up switching between themes.

(cherry picked from commit 9e3393a624)
2020-02-14 16:14:56 +01:00
Hugo Locurcio b90a5d4c80 Tweak the editor help comment color for better readability
(cherry picked from commit 99bfaa6c60)
2020-02-14 16:11:11 +01:00
Michael Alexsander ba15e5355b Fix problems with concave shapes in the TileSet editor
(cherry picked from commit eeb972faef)
2020-02-14 16:07:58 +01:00
Tomasz Chabora f0c89048d8 Allow to use arrow keys with TOOL_MOVE
(cherry picked from commit 18918b4efa)
2020-02-14 16:07:17 +01:00
Pedro J. Estébanez a8ae52e998 Ignore hidden files and directories in find in files
(cherry picked from commit aeff876868)
2020-02-14 16:05:50 +01:00
Pedro J. Estébanez 59b8f9b2da Make file system scan more robust
Previously, a change was missed if it happened while the scan was in progress and already past the affected location.

Also:
- Consider the scan changes thread on termination, in addition to the full scan one
- Add FS-reported hidden to the check for hidden by the editor file system

(cherry picked from commit 3017bdb7ce)
2020-02-14 16:05:36 +01:00
Hugo Locurcio e834e35ea8 Change the Pick Tile and Select default shortcuts in the TileMap editor
The new default keys were chosen to match common graphics editing
software. A modifier is no longer required to use the Select tool,
making it faster to use.

This closes #34170.

(cherry picked from commit 88213b54ba)
2020-02-14 16:04:39 +01:00
Haoyu Qiu c018d02cda Fixes broken scene created via New Resource
(cherry picked from commit 9cff286de1)
2020-02-14 16:04:23 +01:00
Hugo Locurcio 93b99f2c89 Update the zoom percentage when using Frame Selection in the 2D editor
This closes #36019.

(cherry picked from commit 3e95b79b65)
2020-02-14 16:03:49 +01:00
Yuri Roubinsky 77deae41fb Few enchancements for shader editor
(cherry picked from commit 24368206ca)
2020-02-14 16:00:45 +01:00
Michael Alexsander 1414a18916 Make some QOL improvements to move operations in the FileSystem dock
(cherry picked from commit 07a23e75fc)
2020-02-14 16:00:14 +01:00
Hugo Locurcio 262aff67db Allow existing hidden files/directories when creating a new project
For instance, this lets users initialize a Git repository
and still be able to create a project in the directory afterwards.

This closes https://github.com/godotengine/godot-proposals/issues/291.

(cherry picked from commit 34b747bac0)
2020-02-14 15:59:41 +01:00
Michael Alexsander 8030178e48 Fix built-in script creation loading existing scripts by mistake
(cherry picked from commit f7374cef84)
2020-02-14 15:58:53 +01:00
Haoyu Qiu 0a3bf2b627 Fixes add group in Group Editor dialog
Before this fix, new group can't be created if any existing group starts
with the new name.

(cherry picked from commit 421ea09195)
2020-02-14 15:58:36 +01:00
Hugo Locurcio 3eb9780179 Re-add a way to generate a single convex shape from the editor
It was removed after the implementation of VHACD. Generating a single
shape can lead to better performance, so it may still be desired.

This also adds tooltips for several options in the Mesh menu.

This closes #35692.

(cherry picked from commit 90af009f2e)
2020-02-14 15:58:03 +01:00
Haoyu Qiu 3c7a013d8d Adds pan and zoom gestures to TextureRegion editor
(cherry picked from commit d1b1edba84)
2020-02-14 15:57:18 +01:00
Eric Rybicki 63daa19538 Use a new approach to fix bone pose override not being reset when IK animation is stopped.
This reverts PR #35460 & commit 551c37167b.

(cherry picked from commit bb0358dd8d)
2020-02-14 15:55:47 +01:00
Hugo Locurcio 56336b4e24 Improve the batch rename dialog
- Use the editor-defined error, warning and success colors for
  preview texts.
- Make the "Regular Expressions" option into a CheckButton
  (as it does something as soon as it's toggled) and move it out
  of the Advanced Options submenu.
- Make it clearer that the error message originates from an invalid
  regular expression.
- Clarify what the number means in the regex error message.
- Tweak some strings' casing for consistency.

(cherry picked from commit ff135065f4)
2020-02-14 15:54:22 +01:00
Hugo Locurcio ca6ac71cdf Improve the Video RAM debugger UX
- Refresh tha tab automatically when switching to it.
- Disable the Refresh button if no project is currently being debugged.
- Scale the column widths on hiDPI displays.
- Rename the tab from "Video Mem" to "Video RAM" for consistency.

(cherry picked from commit 8f838f33b7)
2020-02-14 15:53:12 +01:00
Hugo Locurcio 725ff19636 Improve the AutoLoad editor UX
- Convert the default AutoLoad name to PascalCase when selecting a file.
- Disable the "Add" button if the path is empty or the name is invalid.
- Prefix the automatically-chosen name with "Global" if it would
  conflict with a built-in class.
- Replace the FileList icon with the Load icon as it better represents
  the action.

(cherry picked from commit 352be7dbcc)
2020-02-14 15:52:50 +01:00
gururise 68f013317b change step size of animation length EditSpinSlider to match minimum animation length
(cherry picked from commit caab6603d1)
2020-02-14 15:52:01 +01:00
Silvano Cerza e2ac4195b6 Improved search in settings dialogs
Settings search used to work only on properties, so if a searchbox text
was a substring of a category but not of a property the whole category
would be filtered out and no property would be shown.

Now the behaviour is changed so that when the searchbox text is a
substring of a category all its properties are shown too.

The previous behaviour is still present so that in case the searchbox
text is both a substring of a category and a property of another
category, all properties of the first category are shown and only the
property of the second category is shown.

(cherry picked from commit 84410f937e)
2020-02-14 15:51:37 +01:00
Haoyu Qiu 341740c0bf Centers icon vertically in project list
(cherry picked from commit c1011178c0)
2020-02-06 13:02:08 +01:00
Haoyu Qiu 012f8ffb36 Shortens minimum height of script editor windows
(cherry picked from commit 6785e199bb)
2020-02-06 13:02:08 +01:00
Hugo Locurcio 7487a2d11a Use the editor background color for the profiler graph
This leads to a better appearance compared to using pure black.

(cherry picked from commit fa2fda3244)
2020-02-06 13:02:08 +01:00
Hugo Locurcio 74bf8b2d50 Allow saving anywhere when exporting CSV measures from the profiler
Previously, the CSV file could only be saved in `res://`. Since this is
an editor tool, it makes sense to allow saving anywhere on
the filesystem.

(cherry picked from commit 81f33df84b)
2020-02-06 13:02:08 +01:00
Hugo Locurcio 6e56d04616 Display times as milliseconds in the profiler and performance monitors
Small values are easier to read as milliseconds compared to seconds.

(cherry picked from commit f1d9dbfb08)
2020-02-06 13:02:08 +01:00
Michael Alexsander 98b4ef274b Make ScriptCreateDialog's script valid message a bit more clearer
(cherry picked from commit 14e36c72b0)
2020-02-06 13:02:08 +01:00
Michael Alexsander 621821bf87 Make the replaced results appear in the matches counter
(cherry picked from commit 1c5cfb9bfd)
2020-02-06 13:02:07 +01:00
Michael Alexsander 6cb4ec2289 Clip warning text in the remote dock
(cherry picked from commit 0faadcae8f)
2020-02-06 13:02:07 +01:00
Haoyu Qiu ca537dea76 Fixes invalid read when using fill tool in empty tilemap 2020-01-27 20:39:49 +08:00
Rémi Verschelde f76009bbcf i18n: Sync translations with Weblate 2020-01-27 08:11:37 +01:00
Hugo Locurcio ad49425bd8
Don't show an Online Tutorials section if the class has no tutorials 2020-01-27 01:01:11 +01:00
Rémi Verschelde 4cee1cda5e
Merge pull request #35589 from akien-mga/doc-drop-category-property
doc: Drop unused 'category' property from header
2020-01-26 16:34:13 +01:00
Rémi Verschelde 09ced94dd4 doc: Do not expose Variant::NIL as a type in the class reference
Fix signals Variant arguments incorrectly listed as Nil.

Fixes #12520.
2020-01-26 16:08:11 +01:00
Rémi Verschelde 2d20fc39aa doc: Drop unused 'category' property from header
We already removed it from the online docs with #35132.

Currently it can only be "Built-In Types" (Variant types) or "Core"
(everything else), which is of limited use.

We might also want to consider dropping it from `ClassDB` altogether
in Godot 4.0.
2020-01-26 16:02:39 +01:00
Rémi Verschelde 98e5134059
Merge pull request #35526 from nekomatata/inspector-update-rename-node
Fixed Inspector update when a node is renamed
2020-01-24 21:52:12 +01:00
PouleyKetchoupp 9c4a6cf745 Fixed Inspector update when a node is renamed
Whenever any node is renamed, EditorNode::_edit_current() is called and it resets plugins used for current edited properties. This change forces the inspector to update even though the same object is edited, to make sure all plugins are restored properly from unfolded properties/resources/etc.

Fixes #32832
2020-01-24 18:12:05 +01:00
Rémi Verschelde 4dce3427ef
Merge pull request #35519 from yamgent/wrong-guideline-value
Fix wrong guideline values shown during dragging
2020-01-24 18:10:53 +01:00
Tan Wang Leng ee2f406c73 Fix wrong guideline values shown during dragging
Suppose that the user wants to use some guidelines in 2D mode. The
user has enabled "Use Pixel Snap", and configured the "Grid Step" to
1px.

On some zoom levels, when dragging the guidelines step by step, some
offsets shows the wrong value. The offsets that are wrong vary - it is
affected by the zoom level, so some zoom levels do not display this
problem.

For example, a user may see this while dragging the guideline:

0px   1px   1px   3px   4px   5px   5px   7px   8px

whereby 2px and 6px are missing.

This is due to a floating-point error. The values are printed as
(truncated) integers, but they are actually decimals, so they were
actually 1.9999 and 5.9999 for the missing cases.

Let's fix that by rounding up the values before printing them to get rid
of the errors.

This fixes #35010.
2020-01-24 23:52:43 +08:00
Hugo Locurcio a002b93d86
Add explanations for errors related to Vector/Quat normalization 2020-01-24 14:19:23 +01:00
Haoyu Qiu 0ca102d568 Fixes leak in Animation Track editor 2020-01-24 11:17:56 +08:00
Rémi Verschelde 8a7a216be5 i18n: Sync translations with Weblate 2020-01-23 23:19:54 +01:00
Haoyu Qiu b420618c46 Fixes scrollbar positions on HiDPI display
* TextureRegion editor
* Ploygon2D UV editor
2020-01-23 08:55:52 +08:00
Rémi Verschelde b255744e0f
Merge pull request #35449 from bojidar-bg/35439-scenetree-settings
Add settings from SceneTree in the documentation
2020-01-22 22:02:47 +01:00
Rémi Verschelde 37897dba80
Merge pull request #35406 from lawnjelly/ortho-shadow
Replace CameraMatrix::get_viewport_size with get_viewport_half_extents, shadow culling with ortho camera and other affected issues
2020-01-22 22:02:09 +01:00
Bojidar Marinov b4770c0a27
Add settings from SceneTree in the documentation
Fixes #35439
2020-01-22 22:37:56 +02:00
Rémi Verschelde 91b0be18dc
Merge pull request #35421 from williamd1k0/improve-top-animation-menu
Use an icon in the top Animation Key menu
2020-01-22 21:21:15 +01:00
William Tumeo cb3fcba99f Use an icon in the top Animation Key menu 2020-01-22 17:06:40 -03:00
lawnjelly eaf8e5ce52 Change CameraMatrix::get_viewport_size to get_viewport_half_extents
Fixes #26637.
Fixes #19900.

The viewport_size returned by get_viewport_size was previously incorrect, being half the correct value. The function is renamed to get_viewport_half_extents, and now returns a Vector2.

Code which called this function has also been modified accordingly.

This PR also fixes shadow culling when using ortho cameras, because the correct input for CameraMatrix::set_orthogonal should be the full HEIGHT from get_viewport_half_extents, and not half the width.

It also fixes state.ubo_data.viewport_size in rasterizer_scene_gles3.cpp to be the width and the height of the viewport in pixels as stated in the documentation, rather than the current value which is half the viewport extents in worldspace, presumed to be a bug.
2020-01-22 18:22:00 +00:00
Bojidar Marinov 387ee7d763
Get real default values for project settings in documentation
Also, ignore custom project settings and values for input/ entries

Fixes #34154
2020-01-22 15:57:10 +02:00
Hugo Locurcio 56aae0e8bc
Use a loading placeholder for project icons in the project manager
Now that projects are loaded asynchronously, some projects in the
list may be displayed before their icon is done loading. This is
especially common on slower hardware.

In such cases, this makes the project manager display a loading
placeholder instead of the default project icon.
2020-01-21 22:56:19 +01:00
Rémi Verschelde 4faaf6089a Remove unused #if 0'ed code 2020-01-21 21:41:54 +01:00
Rémi Verschelde d4ac0ca153
Merge pull request #35393 from YeldhamDev/plugin_script_syntax
Make script made via plugin creation obey syntax settings
2020-01-21 13:21:01 +01:00
Rémi Verschelde 423f15262f
Merge pull request #35399 from ericrybick/35367-signals-dock-size-jumps-when-selecting-nodes
Clip text in NodeDock toolbuttons to prevent dock size changes
2020-01-21 11:18:35 +01:00
Eric Rybicki 371b5a450a Clip text in NodeDock toolbuttons to prevent dock size changes
Fixes #35367
2020-01-21 10:23:09 +01:00
Rémi Verschelde 4bc98c105d
Merge pull request #35394 from ericrybick/fix-assetlib-thumbnail-overlay-
Fix asset library video play overlay not being centered on the thumbnail
2020-01-21 08:20:35 +01:00
Eric Rybicki 99346e9654 Fix asset library video play overlay not being centered on the thumbnail 2020-01-21 08:04:32 +01:00
Michael Alexsander 3a0dc52127 Make script made via plugin creation obey syntax settings 2020-01-21 02:05:56 -03:00
Haoyu Qiu 3042b4f4cb Fixes leak in Find in Files utility 2020-01-21 08:47:59 +08:00
Rémi Verschelde 709665b15d
Merge pull request #35379 from dankan1890/quick_fix
TextureRegionEditor: Corrected typo
2020-01-20 21:34:02 +01:00
dankan1890 a2170dcd40 TextureRegionEditor: Corrected typo 2020-01-20 20:58:42 +01:00
Michael Alexsander 324fe76afd Clip text in EditorPath button to avoid dock size changes 2020-01-20 14:25:27 -03:00