Commit graph

7726 commits

Author SHA1 Message Date
kleonc
07d346dfa5 SpriteFramesEditor Minor fixes 2021-05-23 10:59:21 +02:00
amor
2c745e0e95 Mouse ptr reappears at drag start position 2021-05-23 10:48:26 +05:30
Hugo Locurcio
80f4e407b2
Add a keyboard shortcut to select the word under cursor in TextEdit
This also acts as a general-purpose "deselect" shortcut since pressing
it a second time will deselect text.

This is available both in the script editor and in TextEdit fields
in use, both in the editor and projects.

The Duplicate Line script editor shortcut was moved to Ctrl + Shift + D
since it conflicts with the new shortcut (Ctrl + D). The rationale for
doing so is that Duplicate Line is a less commonly used action, and
its behavior can be replicated by copying and pasting the current line
anyway. (With no selection active, the whole line will be copied.)
2021-05-22 23:47:43 +02:00
Rémi Verschelde
de4c17f716
Merge pull request #48916 from mortarroad/master-convex-hull-ported
Replace QuickHull with Bullet's convex hull computer.
2021-05-22 23:22:48 +02:00
Morris Tabor
d1bc88d426 Replace QuickHull with Bullet's convex hull computer.
The code is based on the current version of thirdparty/vhacd and modified to use Godot's types and code style.

Additional changes:
- extended PagedAllocator to allow leaked objects
- applied patch from https://github.com/bulletphysics/bullet3/pull/3037
2021-05-22 22:35:42 +02:00
Rémi Verschelde
234a101eb3
Merge pull request #44874 from Chaosus/shader_warnings
Basic warning support implementation for the Godot Shading Language.
2021-05-22 19:12:53 +02:00
Yuri Roubinsky
084648bd18 Basic warning support implementation for the Godot Shading Language. 2021-05-22 19:24:31 +03:00
Rémi Verschelde
846b3855b5
Merge pull request #47764 from fire/meshoptimizer-update
Meshoptimizer update / LOD Normals fix
2021-05-22 18:16:39 +02:00
Rémi Verschelde
97d433a272
Merge pull request #48970 from EricEzaM/more-editor-log-fixes
Fixed editor log collapsing of duplicate messages not working
2021-05-22 18:01:51 +02:00
K. S. Ernest (iFire) Lee
fc8ea1d828 Update with experimental mesh optimizer.
Normals being optimized has better quality now.

Test simplify once and then use a slightly less tolerant 
error for the target error.
2021-05-22 08:58:50 -07:00
EricEzaM
a6ff00d8be Fixed editor log collapsing of duplcate messages not working 2021-05-23 00:14:56 +10:00
Paulb23
00e10a842f Add custom background line colour to TextEdit and remove marked lines 2021-05-22 14:41:55 +01:00
Rémi Verschelde
1cc8cc96cb
Merge pull request #48954 from Calinou/editor-tweak-checked-checkbox-appearance
Tweak pressed CheckBox appearance in the editor
2021-05-22 13:42:48 +02:00
Rémi Verschelde
5d2d24202d
Merge pull request #48927 from KoBeWi/I_fixed_your_left
Fix usage of String.left()
2021-05-22 13:09:34 +02:00
Yuri Roubinsky
7f5b074b4b Fixes non-atomary action of dragging resources on visual shader graph 2021-05-22 08:16:56 +03:00
Hugo Locurcio
0d27c4d809
Tweak pressed CheckBox appearance in the editor
This uses the accent color to match pressed CheckButtons after they
were updated. Checked checkboxes are now more prominent in the user's
peripheral vision, which can be useful at times. This also matches
how checkboxes look in most operating systems and web browsers.
2021-05-22 03:45:01 +02:00
Rémi Verschelde
3b3a55ca04
Merge pull request #48918 from groud/fix_tilemap_y_sort
Fixes TileSet Y-sort not working and TileSet not saving correctly
2021-05-22 00:26:36 +02:00
kobewi
ea9660e1cf Fix usage of String.left() 2021-05-21 23:01:44 +02:00
Rémi Verschelde
e773bf56ed
Merge pull request #48917 from timothyqiu/metrics-csv
Fix editor crash when exporting profiler data
2021-05-21 13:22:03 +02:00
Rémi Verschelde
4eab92104c
Merge pull request #48671 from Calinou/connect-dialog-extra-bind-arguments
List "Argument" for each extra bind argument in the connect dialog
2021-05-21 12:36:23 +02:00
Rémi Verschelde
edd88949be
Merge pull request #48747 from Calinou/editor-find-in-files-tweak-highlight-color
Tweak highlight color in the editor Find in Files dialog
2021-05-21 12:28:45 +02:00
Rémi Verschelde
d3ba922ba8
Merge pull request #48854 from pycbouh/editor-reuse-resource-picker
Use `EditorResourcePicker` in the Inspector
2021-05-21 12:03:27 +02:00
Gilles Roudière
7d80480b72 Fixes TileSet Y-sort not working and TileSet not saving correctly 2021-05-21 10:13:37 +02:00
Haoyu Qiu
be79bdc8ab Fix editor crash when exporting profiler data 2021-05-21 15:47:23 +08:00
Tomasz Chabora
b1859510ab Change behavior of String.right 2021-05-20 23:07:57 +02:00
Rémi Verschelde
28c7e28403
Merge pull request #48895 from JFonS/fix_viewport_rotation_control
Fix swapped front/rear directions in viewport rotation control.
2021-05-20 20:54:40 +02:00
jfons
e70e33ddcf Fix swapped front/rear directions in viewport rotation control. 2021-05-20 16:28:38 +02:00
Rémi Verschelde
f2d55f3c0f
Merge pull request #48863 from Ev1lbl0w/bugfix-zip_import
Fix zip_root not being defined when importing by drag&drop
2021-05-20 14:34:04 +02:00
Rémi Verschelde
a6a75e2c09
Merge pull request #48812 from groud/tilemap_scenes_painting
Implement scenes tiles in TileMaps
2021-05-20 14:32:40 +02:00
Rémi Verschelde
342f3efc7e
Merge pull request #48882 from aaronfranke/approx-use-double
Make is_equal_approx have explicit float and double versions
2021-05-20 14:17:58 +02:00
Gilles Roudière
d8bb53cd21 Implement scenes tiles in TileMaps 2021-05-20 13:12:03 +02:00
Rémi Verschelde
4219a4cb6f
Fix typos with codespell
Using codespell 2.0.0.

Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
fave
findn
GIRD
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF

$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2021-05-20 12:38:56 +02:00
Aaron Franke
b5b6d3a8ec
Make is_equal_approx have explicit float and double versions 2021-05-20 06:18:11 -04:00
Yuri Roubinsky
f100fb9f10 Updates script list colors after theme is changed 2021-05-20 09:02:59 +03:00
Ev1lbl0w
056deefa55
Fix zip_root not being defined when importing by drag&drop 2021-05-19 22:43:54 +01:00
Yuri Sizov
e9206a55ea Use EditorResourcePicker in the Inspector 2021-05-19 21:39:15 +03:00
Yuri Roubinsky
a1657b0356 Prevents VisualShaderNodeComment from overlapping its content 2021-05-19 11:57:11 +03:00
Hugo Locurcio
16876bec76
Fix crash when trying to save with no scenes and scripts open
This could occur when attempting to save project settings when
no scenes or scripts are open (which is common in a brand new project).
2021-05-18 19:48:38 +02:00
Rémi Verschelde
2076580080
i18n: Sync translations with Weblate
(cherry picked from commit bcedd09742)
2021-05-18 12:09:50 +02:00
Rémi Verschelde
35edb77d1f
Merge pull request #37796 from Gogsi/master
Improve consistency in file order
2021-05-18 11:45:05 +02:00
Georgi Genkov
a8c83a7b35 Change EditorFileSystem and ScriptEditor file sorting order to improve consistency.
Fixes #37721.
2021-05-18 10:42:06 +02:00
trollodel
bca0d36fe6 Improve TreeItem API and allow to move nodes 2021-05-17 22:06:46 +02:00
Rémi Verschelde
6c367f8e0d
Merge pull request #48168 from LightningAA/control-to-ctrl-4.0 2021-05-17 17:38:02 +02:00
Rémi Verschelde
fead3fff17
Merge pull request #47260 from pycbouh/editor-resource-picker 2021-05-17 17:33:59 +02:00
Rémi Verschelde
b0a51bf9fe
Merge pull request #48768 from akien-mga/file-access-64-bit-4.0
Make all file access 64-bit (`uint64_t`)
2021-05-17 16:02:12 +02:00
Rémi Verschelde
45e0f9fd52
Merge pull request #48791 from foxydevloper/fix-sort-translations
Make Sort by X strings translatable
2021-05-17 15:55:16 +02:00
Hugo Locurcio
d211c05111
Use a DynamicFont for the default project theme
This makes font oversampling work out of the box, while also increasing
the supported character set's size. The default font is now larger
as well to better fit today's screen resolutions.

The OpenSans SemiBold font was chosen for two reasons:

- Small file size, yet its character set supports Latin-1 and Cyrillic
  text.
- A heavier font weight looks better in most "game" scenarios and is
  more readable against mixed-color backgrounds.

This is considered a breaking change as it changes the default font's
metrics, which will likely affect how Control nodes are laid out in
scenes (unless a custom font is in use).
2021-05-17 15:19:13 +02:00
Pedro J. Estébanez
469fa47e06
Make all file access 64-bit (uint64_t)
This changes the types of a big number of variables.

General rules:
- Using `uint64_t` in general. We also considered `int64_t` but eventually
  settled on keeping it unsigned, which is also closer to what one would expect
  with `size_t`/`off_t`.
- We only keep `int64_t` for `seek_end` (takes a negative offset from the end)
  and for the `Variant` bindings, since `Variant::INT` is `int64_t`. This means
  we only need to guard against passing negative values in `core_bind.cpp`.
- Using `uint32_t` integers for concepts not needing such a huge range, like
  pages, blocks, etc.

In addition:
- Improve usage of integer types in some related places; namely, `DirAccess`,
  core binds.

Note:
- On Windows, `_ftelli64` reports invalid values when using 32-bit MinGW with
  version < 8.0. This was an upstream bug fixed in 8.0. It breaks support for
  big files on 32-bit Windows builds made with that toolchain. We might add a
  workaround.

Fixes #44363.
Fixes godotengine/godot-proposals#400.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2021-05-17 15:06:19 +02:00
pycbouh
e8f15f7996 Add EditorResourcePicker control based on the Inspector editor for Resources
Fix formatting for the docs
2021-05-17 15:26:22 +03:00
kleonc
5a8314016a Fix crash after disabling plugin using set_force_draw_over_forwarding_enabled() 2021-05-17 11:01:15 +02:00
Rémi Verschelde
37c3b33253
Merge pull request #48605 from sent44/scripteditor_get_codeedit
Add `get_base_editor` to `ScriptEditorBase`
2021-05-16 23:06:01 +02:00
Hugo Locurcio
82570dec90
Tweak highlight color in the editor Find in Files dialog
The new color is more visible against dark backgrounds.
2021-05-16 00:30:06 +02:00
fox
0e3c05e157 Make Sort by X translatable 2021-05-15 12:59:57 -04:00
sent44
2b30728ebf Add get_base_editor to ScriptEditorBase 2021-05-15 18:47:00 +07:00
Rémi Verschelde
9b637faf65
Merge pull request #48724 from Calinou/editor-help-add-support-button
Add "Support Godot Development" option to the editor's Help menu
2021-05-15 12:11:23 +02:00
Rémi Verschelde
df2caeb1b6
Merge pull request #48707 from foxydevloper/filesystem_search_shortcut
Make shortcut focus searchbar in filesystem dock
2021-05-15 09:17:30 +02:00
Hugo Locurcio
3eae2f9c6d
Add "Support Godot Development" option to the editor's Help menu 2021-05-15 01:58:29 +02:00
Rémi Verschelde
82c4d43726
i18n: Sync translations with Weblate
(cherry picked from commit f6c29d1cf5)
2021-05-14 13:24:16 +02:00
Rémi Verschelde
de89a5f46c
Merge pull request #45716 from dalexeev/proposal-1545
Improve Project Settings Editor
2021-05-14 13:17:21 +02:00
Danil Alexeev
24a2b4dc97
Improve Project Settings Editor
Closes godotengine/godot-proposals#1545.
Closes godotengine/godot-proposals#2452.
2021-05-14 13:58:43 +03:00
Rémi Verschelde
5c81fbdc19
Merge pull request #48667 from pycbouh/editor-respect-custom-themes
Keep custom editor theme when changing editor settings
2021-05-14 10:31:52 +02:00
Rémi Verschelde
e6cd0056a8
Merge pull request #48584 from Zami77/remove-plugin-from-enabled-if-error
Remove plugin from enabled plugins, if there is an error
2021-05-14 10:30:31 +02:00
fox
22e2e4334e Make shortcut for focusing searchbar in filesystem dock 2021-05-13 20:13:17 -04:00
Rémi Verschelde
0f5fddbdc0
Merge pull request #48666 from LLschuster/master
text-editor: fix Clicking warning doesn't center around line #48639
2021-05-13 21:11:16 +02:00
llschuster
6b55ec2ca9 text-editor: fix Clicking warning doesn't center around line 2021-05-13 17:07:39 +02:00
Hugo Locurcio
994dd314e0
List "Argument" for each extra bind argument in the connect dialog
This makes the dialog more explicit.
2021-05-12 17:07:53 +02:00
Yuri Sizov
56aedcee17 Keep custom editor theme when changing editor settings 2021-05-12 16:08:21 +03:00
Yuri Sizov
31db95b048 Fix EditorPropertyEasing capturing drag events originated outside of it 2021-05-12 12:39:43 +03:00
Yuri Sizov
3a66c22e71 Add outlines and contrasting backgrounds to the editor UI elements 2021-05-12 01:45:56 +03:00
Hugo Locurcio
7375a02015
Increase icon saturation by 30% for all editor icons
More saturated icons go better with the new editor theme.

These color changes only apply when using a dark theme.

The editor icon saturation can still be adjusted in the Editor Settings.
Setting the editor icon saturation setting to 0.77 should roughly match
the old icon saturation.
2021-05-11 18:15:31 +02:00
Michael Alexsander
6dad72db69 Fix small issues with capitalization in the new TileMap editor 2021-05-10 18:08:07 -03:00
Daniel Lungaro
2bae31a4df Remove plugin from enabled if there's an error
inform user in warning message

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>

Refactor remove plugin from enabled
2021-05-09 13:51:09 -07:00
Rémi Verschelde
3e71009d74
Merge pull request #48534 from Calinou/editor-theme-allow-negative-contrast
Allow negative contrast values in the editor theme settings
2021-05-09 16:37:20 +02:00
Rémi Verschelde
a8a51cd75c
Merge pull request #46808 from pycbouh/theme-editor-better-create-ui
Refactor Create Theme menu in Theme Editor
2021-05-09 14:21:37 +02:00
Rémi Verschelde
8fa82c7226
Merge pull request #48582 from Calinou/editor-resource-preview-fix-focus-outline
Fix EditorPropertyResource focus outline being drawn behind the preview
2021-05-09 14:20:01 +02:00
Rémi Verschelde
5d116b5d73
Merge pull request #48574 from Calinou/editor-add-new-scene-shortcuts
Add shortcuts for New Scene and New Inherited Scene actions
2021-05-09 13:53:52 +02:00
Hugo Locurcio
0b47f1be8c
Fix EditorPropertyResource focus outline being drawn behind the preview 2021-05-09 13:11:16 +02:00
Hugo Locurcio
39f9b92f54
Save the current script when pressing Ctrl + S if no scene is open
- Tweak the dialog messages to be more informative.
  - The "Saved N modified resources" dialog is not a warning per se,
    so make it more explicit.
2021-05-09 12:29:50 +02:00
Hugo Locurcio
44b22540e1
Add shortcuts for New Scene and New Inherited Scene actions
These default to Ctrl + N and Ctrl + Shift + N respectively.
2021-05-09 11:30:36 +02:00
Yuri Sizov
912420b078 Refactor Create Theme menu in Theme Editor 2021-05-09 03:13:19 +03:00
Lightning_A
97fecd1b69 Rename "Control" key to "Ctrl" and add "_pressed" suffix to all InputEventWithModifiers properties/methods 2021-05-07 14:00:50 -06:00
Rémi Verschelde
c3f7465b7e
Merge pull request #48535 from groud/tiles_squashed
TileSet and TileMap rework (squashed)
2021-05-07 20:46:06 +02:00
Gilles Roudière
a3dda2df85 Rework the TileSet resource and TileMap nodes:
- Move most properties from TileMap to TileSet,
- Make TileSet more flexible, supporting more feature (several
  collision layers, etc...),
- Fusion both the TileMap and TileSet editor,
- Implement TileSetSources, and thus a new way to index tiles in the TileSet,
- Rework the TileSet and TileMap editors completely,
- Implement an editor zoom widget (and use it in several places)
2021-05-07 18:06:17 +02:00
Hugo Locurcio
027301fec7
Tweak the setting hint for the custom editor theme setting
The custom editor theme is only visible after restarting the editor.
2021-05-07 16:24:37 +02:00
Hugo Locurcio
84edaef46c
Allow negative contrast values in the editor theme settings
When using a negative contrast value, the base color will be lightened
to create the derivative colors instead of being darkened.

This can lead to better-looking themes, especially for light themes.
2021-05-07 15:32:29 +02:00
Rémi Verschelde
0ec809462e
Merge pull request #47530 from likeich/add_instance_child_shortcut
Adds command+shift+a shortcut to instance a scene
2021-05-07 01:43:41 +02:00
Rémi Verschelde
504bace60f
Merge pull request #48521 from likeich/remove_extra_separator
Remove extra separator in scenetree dock menu
2021-05-07 01:07:10 +02:00
Rémi Verschelde
8962d36bb1
Merge pull request #33577 from Calinou/highlight-control-flow-keywords
Highlight control flow keywords with a different color
2021-05-07 00:52:50 +02:00
Rémi Verschelde
49b556a9f1
Merge pull request #48491 from dalexeev/action-map-editor
Improve ActionMapEditor
2021-05-07 00:48:15 +02:00
Rémi Verschelde
04e995dd5d
Merge pull request #48466 from EricEzaM/output-log-save-state
Made Editor Log buttons save their state, per project.
2021-05-07 00:47:41 +02:00
Hugo Locurcio
ce4aa07276
Implement the %command% placeholder in the Main Run Args setting
This can be used to tell Godot to run an executable that will run Godot
rather than running Godot directly. This is useful to make Godot start
on the dedicated GPU when using a NVIDIA Optimus setup on Linux:
`prime-run %command%`

The `editor/run/main_run_args` setting declaration was moved to make it
visible in the ProjectSettings documentation.
2021-05-07 00:05:02 +02:00
Kyle
e168baf433 Remove extra separator
Removes an extra separator when Scene Tree Editing is disabled. Discussed in #48518
2021-05-06 17:37:12 -04:00
Kyle
10d5d4d3cd Fixed cut/copy/paste visibility
Fixes #48514 by moving the visibility of these buttons into their own if statement that depends on if scene tree editing is allowed. Previously it was under the script editing setting which is unexpected as it works with nodes and the scene tree.
2021-05-06 16:01:36 -04:00
Rémi Verschelde
6e621441ca
Merge pull request #45607 from Calinou/improve-editor-theme
Improve the editor theme
2021-05-06 16:45:07 +02:00
Rémi Verschelde
605e33cf39
Merge pull request #44831 from gongpha/dont-update-tree-if-selected
Blocking updating in SceneTreeEditor when an item was selected
2021-05-06 08:45:41 +02:00
Rémi Verschelde
43fe8bf522
Merge pull request #42416 from Calinou/editor-make-function-save-script 2021-05-06 08:42:08 +02:00
Rémi Verschelde
42b07f713f
Merge pull request #37700 from Calinou/rename-ip-unix-tcp-server
Rename `IP_Unix`, `IP_Address` and `TCP_Server` to remove underscores
2021-05-06 08:36:30 +02:00
Hugo Locurcio
3f078c99f6
Rename IP_Unix, IP_Address and TCP_Server to remove underscores 2021-05-06 02:52:01 +02:00
Eric M
1a05cca824 Fix blank line at start of Editor Log (reinstate #44909) 2021-05-06 09:40:17 +10:00
Hugo Locurcio
0ade686601
Save the current script when adding a new method via signal connection
This makes it possible for external editors to pick up the changes.
Most modern editors should reload the file automatically,
but some older/lightweight editors may ask the user instead
(or only warn after trying to save in the external editor).

This closes #41283.
2021-05-05 23:31:15 +02:00
Hugo Locurcio
e905e8f145
Highlight control flow keywords with a different color
This makes them easier to distinguish from other keywords.
2021-05-05 22:38:12 +02:00
Danil Alexeev
c316a515ed
Improve ActionMapEditor
- CheckBox replaced with CheckButton.
- Removed unnecessary code.
2021-05-05 23:33:24 +03:00
Eric M
902d468f52 Made Editor Log buttons save their state, per project. 2021-05-06 00:48:19 +10:00
Rémi Verschelde
cb84d33137
Merge pull request #48467 from EricEzaM/editor-settings-shortcut-crash-fix 2021-05-05 11:17:05 +02:00
Tokage
d459766edd fix AnimationTrackEditor's undo with correction invalid method name 2021-05-05 14:00:56 +09:00
Eric M
94abb8cc80 Fixed crash in Editor Settings shortcuts UI 2021-05-05 11:33:08 +10:00
Rémi Verschelde
e189ff55a7
Merge pull request #48378 from Calinou/editor-improve-audio-inspector-preview
Improve the editor audio preview inspector appearance and functionality
2021-05-04 17:58:28 +02:00
Rémi Verschelde
4dacd22dcf
Merge pull request #47172 from CaptainProton42/fix-3d-scene-preview
Fix 3D scene preview generation.
2021-05-04 17:56:44 +02:00
Rémi Verschelde
4472eb3e4f
Merge pull request #48451 from EricEzaM/output-log-fixes
Fixed issues with Editor Log after recent changes
2021-05-04 16:51:09 +02:00
CaptainProton42
16304aaa3b Fix 3D scene preview generation.
File system dock previews will now be generated for 3D scenes when no
editor feature profile is set.
2021-05-04 16:40:26 +02:00
Eric M
87ffb213c8 Fixed issues with Editor Log after recent changes
Fixed #48446, Fixed #48443
2021-05-05 00:25:14 +10:00
kobewi
dcf306f72d Fixed wrong mouse position after releasing grabber 2021-05-04 14:02:54 +02:00
Rémi Verschelde
4e7ca279fc
Merge pull request #47855 from aaronfranke/doubleclick
Rename `doubleclick` to `double_click`
2021-05-04 13:12:17 +02:00
Rémi Verschelde
56316b27ab
Merge pull request #41321 from EricEzaM/output-log-enhancements 2021-05-04 12:59:02 +02:00
Rémi Verschelde
74911e0d7a
Merge pull request #35375 from Calinou/version-click-to-copy
Make it possible to copy the Godot version identifier by clicking it
2021-05-04 12:57:15 +02:00
Rémi Verschelde
bee7f8ff23
Merge pull request #48274 from groud/undoredo_dependencies
Allow to hook a callback into inspector's undo/redo
2021-05-04 11:26:55 +02:00
Aaron Franke
0de9a7d803
Rename doubleclick to double_click 2021-05-04 04:38:08 -04:00
Gilles Roudière
b46672db72 Provide a way to hook into Inspectors UndoRedo. 2021-05-04 09:55:22 +02:00
Eric M
77fd9e4dd3 Improve output log performance.
Added method to create a new line in RichTextLabel without adding an ItemNewline to the previous line. Previously, removing a line then adding a newline was adding unnecessary ItemNewline instances to the previous line, significantly the remove_line method.
2021-05-04 16:21:33 +10:00
Eric M
3de4181bd8 Output log rewrite and enhancements.
Added message type filters.
Added ability to search.
Added ability to collapse multiple duplicate messages into one line.
Updated layout to allow for more vertical space in log text area.
2021-05-04 16:21:33 +10:00
jfons
6995b0429c Assorted fixes to UV unwrapping and GPU lightmapper
Various fixes to UV2 unwrapping and the GPU lightmapper. Listed here for
context in case of git blame/bisect:

* Fix UV2 unwrapping on import, also cleaned up the unwrap cache code.
* Fix saving of RGBA images in EXR format.
* Fixes to the GPU lightmapper:
	- Added padding between atlas elements, avoids bleeding.
	- Remove old SDF generation code.
	- Fix baked attenuation for Omni/Spot lights.
	- Fix baking of material properties onto UV2 (wireframe was
	  wrongly used before).
	- Disable statically baked lights for objects that have a
	  lightmap texture to avoid applying the same light twice.
	- Fix lightmap pairing in RendererSceneCull.
	- Fix UV2 array generated from `RenderingServer::mesh_surface_get_arrays()`.
	- Port autoexposure fix for OIDN from 3.x.
	- Save debug textures as EXR when using floating point format.
2021-05-03 18:10:34 +02:00
Rémi Verschelde
0d819ae5f5
Merge pull request #48403 from kleonc/tilemap-editor-modulate-autotile-preview
TileMapEditor Modulate autotile previews
2021-05-03 16:00:50 +02:00
kleonc
3f1b95cfb1 TileMapEditor Modulate autotile previews 2021-05-03 14:58:02 +02:00
kleonc
a1b903066e TileMapEditor::_bucket_fill Check autotile coordinates only if autotile is selected 2021-05-03 14:49:52 +02:00
Michael Alexsander
46e0161737 Add comment highlighting to script thumbnails 2021-05-02 21:48:37 -03:00
Hugo Locurcio
a50a81b703
Improve the editor audio preview inspector appearance and functionality
- Make the timeline indicator thicker and with an indicator triangle,
  similar to the animation editor timeline.
- Add Space bar shortcut to play/pause the audio preview.
- Only seek when clicking or dragging with the left mouse button,
  not other mouse buttons.
2021-05-02 14:37:45 +02:00
Mateo Kuruk Miccino
dc76938679 FileSystem: Force update when we delete a folder from the editor and searching changes only if we change the directory successfully in the scan_fs_changes 2021-05-01 22:12:02 -03:00
reduz
90056460ad Implement Particle Trails
-Enable the trails and set the length in seconds
-Provide a mesh with a skeleton and a skin
-Or, alternatively use one of the built-in TubeTrailMesh/RibbonTrailMesh
-Works deterministically
-Fixed particle collisions (were broken)
-Not working in 2D yet (that will happen next)
2021-04-30 17:38:02 -03:00
Rémi Verschelde
5b16020846
Replace remaining uses of NULL with nullptr
Follow-up to #38736 (these uses were likely added after this PR was merged).
2021-04-29 11:53:27 +02:00
Hugo Locurcio
be01025376
Make it possible to copy the Godot version identifier by clicking it
This closes #24317.
2021-04-28 17:35:57 +02:00
Rémi Verschelde
0e93a1df79
Remove obsolete LargeTexture, it's no longer useful since 3.x
It existed in early Godot releases to allow working around hardware limitations
on max texture sizes (e.g. hardware limits of 1024x1024 pixels).

Nowadays the max texture size supported natively by Godot is 16384x16384, and
even low end mobile hardware should support at least 4096x4096.

The LargeTexture implementation is basically just an array with offsets, sizes
and textures and should be easy to replicate with a custom Texture resource if
needed - solving most of its bugs on the way as the implementation removed here
has various unimplemented or incomplete methods.
2021-04-28 15:51:55 +02:00
Rémi Verschelde
305b2a15bf
Merge pull request #48239 from akien-mga/goodbye-copymem
Core: Drop custom `copymem`/`zeromem` defines
2021-04-28 11:04:05 +02:00
Hugo Locurcio
60b70c77e0
Improve the editor theme
The editor theme now makes use of rounded corners and less borders
to follow modern visual trends.

The default theme's colors were also tweaked to make the blue hue
more subtle (similar to the Arc theme, which was removed as a
consequence). The Alien theme was replaced by a Breeze Dark theme,
which should blend in well with the KDE theme.
2021-04-27 22:38:26 +02:00
Rémi Verschelde
95cfce661b
Merge pull request #48050 from JFonS/occlusion_culling 2021-04-27 19:07:12 +02:00
Rémi Verschelde
8247667a3e
Core: Drop custom copymem/zeromem defines
We've been using standard C library functions `memcpy`/`memset` for these since
2016 with 67f65f6639.

There was still the possibility for third-party platform ports to override the
definitions with a custom header, but this doesn't seem useful anymore.
2021-04-27 16:26:27 +02:00
Rémi Verschelde
b95a82d46a
Merge pull request #47826 from Chaosus/vs_fix_default_input_overriding
Prevents default values of VSNodeCustom from overriding by a script
2021-04-27 10:42:51 +02:00
Hugo Locurcio
5d124c4a8f
Remove uses of auto for better readability and online code reviews
The current code style guidelines forbid the use of `auto`.

Some uses of `auto` are still present, such as in UWP code (which
can't be currently tested) and macros (where removing `auto` isn't
easy).
2021-04-26 14:59:28 +02:00
Rémi Verschelde
a804d33281
Merge pull request #46952 from LightningAA/patch-1
Remove current export template version from "Installed Versions"
2021-04-24 11:46:32 +02:00
Rémi Verschelde
759b876b8a
Merge pull request #46593 from pycbouh/theme-editor-better-edit-ui
Refactor Edit Theme menu in Theme Editor
2021-04-23 23:12:25 +02:00
jfons
4d9d99bb82 Implement occlusion culling
Added an occlusion culling system with support for static occluder meshes.
It can be enabled via `Project Settings > Rendering > Occlusion Culling > Use Occlusion Culling`.

Occluders are defined via the new `Occluder3D` resource and instanced using the new
`OccluderInstance3D` node. The occluders can also be automatically baked from a
scene using the built-in editor plugin.
2021-04-23 21:45:23 +02:00
Fabio Alessandrelli
6cfbf36338
Merge pull request #48079 from sboron/fix-47643-remote
Fix Closing Running Game, still shows remote and local tabs
2021-04-23 02:59:37 +02:00
Stefan Boronczyk
7b9a9e57a7 fix stop debugger on closing game 2021-04-23 01:04:15 +02:00
bruvzg
b56241f22f
ICU: Update to version 69.1, improve ICU data export process. 2021-04-22 16:56:53 +03:00
Rémi Verschelde
e271dba9cb
i18n: Sync translations with Weblate
(cherry picked from commit 305c364c13)
2021-04-21 09:52:26 +02:00
kleonc
f8f12d0564 ProjectSettingsEditor: Make "Type" OptionButton item ids match corresponding Variant::Type enum values. 2021-04-20 18:50:36 +02:00
Rémi Verschelde
68e6223a3b
Merge pull request #47990 from Calinou/editor-debugger-open-cpp-source-on-github
Add a menu action to open C++ source on GitHub in the editor debugger
2021-04-20 08:24:03 +02:00
Juan Linietsky
2b730cad90 Use multiple threads to import.
- For now everything imports multithreaded by default (should work I guess, let's test).
- Controllable per importer

Early test benchmark. 64 large textures (importing as lossless, _not_ as vram) on a mobile i7, 12 threads:
Importing goes down from 46 to 7 seconds.

For VRAM I will change the logic to use a compressing thread in a subsequent PR, as well as implementing Betsy.
2021-04-19 14:12:22 -03:00
Hugo Locurcio
5bc746e60a
Add a menu action to open C++ source on GitHub in the editor debugger
This helps user find back the source code where the error/warning
was emitted from.
2021-04-19 18:28:59 +02:00
Rémi Verschelde
8ba06e3161
Merge pull request #47448 from madmiraal/rename-lineedit-cursor
Rename LineEdit getters and setters to match property names
2021-04-19 10:40:29 +02:00
Rémi Verschelde
f41e7779fd
Merge pull request #47611 from Bhu1-V/PR/instance-scene-fix 2021-04-19 10:38:56 +02:00