Michael Alexsander
ec4f4c6cda
Rename all methods that return `ScrollBar` nodes to `get_*_scroll_bar()`
2021-11-30 13:46:36 -03:00
kobewi
dc472622cc
Mention that Ctrl+Alt with select tool will scale
2021-11-30 17:36:39 +01:00
Rémi Verschelde
7da392bcc5
Don't return reference on copy assignment operators
...
We prefer to prevent using chained assignment (`T a = b = c = T();`) as this
can lead to confusing code and subtle bugs.
According to https://en.wikipedia.org/wiki/Assignment_operator_(C%2B%2B) , C++
allows any arbitrary return type, so this is standard compliant.
This could be re-assessed if/when we have an actual need for a behavior more
akin to that of the C++ STL, for now this PR simply changes a handful of
cases which were inconsistent with the rest of the codebase (`void` return
type was already the most common case prior to this commit).
2021-11-30 16:26:29 +01:00
Yuri Sizov
98ad5cd3db
Fix a crash in editor's script parent class check
2021-11-30 17:44:22 +03:00
kobewi
30df260810
Improve language lists in localization editor
2021-11-30 15:29:41 +01:00
Rémi Verschelde
03cfdf8cc7
Merge pull request #55451 from Calinou/scene-tree-dock-fix-icon-theme-change
...
Fix scene tree dock icon not switching colors on theme change
2021-11-29 23:48:20 +01:00
Fazil Babu
61c2d397d6
Right-clicking with copied tiles cancels it
2021-11-30 00:23:44 +05:30
Hugo Locurcio
9c6032b46a
Fix scene tree dock icon not switching colors on theme change
...
This fixes the "three vertical dots" button at the right of the
scene tree dock when switching from a dark theme to a light theme
or vice versa.
2021-11-29 19:42:06 +01:00
Rémi Verschelde
2771bced6b
Merge pull request #55341 from ator-dev/fix-line-deletion
2021-11-29 14:48:56 +01:00
Rémi Verschelde
d2ac4bb48e
Merge pull request #55052 from RPicster/master-particles-visibility-rect
2021-11-29 14:30:58 +01:00
Raffaele Picca
37cfa56db3
Visibility rect only shown when a GPUParticle2D is selected to reduce visual clutter in scenes with a lot of Particle nodes.
2021-11-28 19:42:42 +01:00
Wilson E. Alvarez
697d9e3cbf
Fix 'Add Node...' menu entries in AnimationNodeBlendTreeEditor
2021-11-28 09:08:34 -05:00
Silc 'Tokage' Renew
d54919945f
Fixed odd behavior when Skeleton3DEditor is re-generated
2021-11-28 04:03:15 +09:00
Pablo Dobarro
cfacd9c057
Fix offset in Viewport drag movement
...
The initial offset was using the mouse position when the threshold
was reached instead of the initial click position. This was adding
the drag threshold distance as an extra offset to the final
transformation.
Now the offset is calculated from the initial click position.
2021-11-27 01:32:02 +01:00
Aaron Franke
7a096b216e
Remove default_env.tres from generating in new projects
2021-11-26 14:37:27 -06:00
ator-dev
3237950216
Make delete_lines work correctly regardless of the selection
2021-11-26 08:28:58 +00:00
Aaron Franke
9851d3c5b2
Move logic for saving project features to ProjectSettings save_custom
2021-11-25 03:08:05 -06:00
Aaron Franke
e81c689592
Project feature warning system
2021-11-24 10:32:07 -06:00
kobewi
512e260af4
Show scene when showing built-in script file
2021-11-24 13:05:18 +01:00
Rémi Verschelde
efd0db85f6
Merge pull request #55238 from Giwayume/bugfix/atlas_cutoff_edge_master
...
Atlas import 1px missing from right side of non-cropped image.
2021-11-24 08:01:47 +01:00
Lightning_A
e078f970db
Rename `remove()` to `remove_at()` when removing by index
2021-11-23 18:58:57 -07:00
Giwayume
cbca2cf152
Fix edge case where 1px cut off from right of image
...
Remove -1 px
2021-11-23 10:56:36 -05:00
kobewi
030697e06c
Move container warning to the toaster
2021-11-23 16:17:19 +01:00
Rémi Verschelde
c5ab537617
Merge pull request #42447 from aaronfranke/gitignore-create
2021-11-23 15:21:31 +01:00
kobewi
4682f22293
Improve various texts
2021-11-23 12:20:57 +01:00
Rémi Verschelde
76aa1d0a43
Merge pull request #55151 from Chaosus/control_reset_size
2021-11-22 16:22:57 +01:00
Yuri Roubinsky
eabf8f5edf
Added `reset_size` method to `Control` and `Window` classes
2021-11-22 16:55:21 +03:00
Rémi Verschelde
835f4dedaf
Merge pull request #55186 from timothyqiu/theme-picker-reset
2021-11-22 13:12:34 +01:00
kobewi
5dc7346ab4
Improved some editor checkboxes
2021-11-21 21:29:34 +01:00
Haoyu Qiu
abd41dedb0
Fix Theme Editor crash when clicking the element picker
2021-11-21 18:39:46 +08:00
Rémi Verschelde
4ea87f36cd
Merge pull request #54579 from KoBeWi/your_name
2021-11-20 10:49:57 +01:00
Silc 'Tokage' Renew
bbdba3310f
Added hint about loop_mode to resource importer
2021-11-19 23:56:14 +09:00
Rémi Verschelde
36150e432c
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 7ca1be5f37
)
2021-11-19 09:55:09 +01:00
Rémi Verschelde
84f59c60b0
Merge pull request #55095 from Giwayume/bugfix/atlas_cutoff_master
...
Fix texture atlas generation when source sprite is larger than generated atlas
2021-11-18 17:40:19 +01:00
Giwayume
9432efb7d0
Fix texture atlas generation when source sprite is larger than generated atlas
2021-11-18 10:05:59 -05:00
kobewi
6f929395d9
Add [theme_item] tag to editor help
2021-11-18 15:32:23 +01:00
Hugo Locurcio
8fb7e622a6
Rename built-in `SGN()` macro to `SIGN()`
...
This matches the name of the GDScript function (except it's uppercase
here).
2021-11-16 20:40:49 +01:00
Nathan Lovato
a5d0a74b65
Make bezier handle type a property of keyframes, update interface
...
- Replaced unused code related to old close icon with a button
- Add bezier handle options to right-click menu
- Remove mirror handle mode, only keep balanced
- Update animation reference
2021-11-16 09:26:35 -05:00
Rémi Verschelde
bef20f53cf
Merge pull request #54422 from ibrahn/project-manager-nophys
2021-11-16 11:06:46 +01:00
Rémi Verschelde
974afa7262
Merge pull request #54926 from Chaosus/fix_debugger_reset
2021-11-16 08:42:00 +01:00
Hugo Locurcio
14d8ea767d
Tweak the built-ins color highlighting in the shader editor (take 2)
...
The new color is more distinguishable from other variables and
symbols.
2021-11-15 23:40:57 +01:00
Yuri Roubinsky
a673e8ae18
Fix debugger tab which don't resetting after pressing clear button
2021-11-15 20:51:25 +03:00
Rémi Verschelde
c24c7cac57
Revert "Load assets before enabling editor plugins"
...
This reverts commit 1963c63b91
.
Fixes #52968 , fixes #52995 .
2021-11-15 16:08:19 +01:00
Rémi Verschelde
0121ce97df
Merge pull request #54953 from Calinou/animation-editor-use-different-icon-eased-keys
2021-11-15 14:06:33 +01:00
Hugo Locurcio
d7cd44418d
Use a different icon for eased keyframes in the animation editor
...
This makes easing tracks easier to recognize, in a way similar
to curved lines in the Path2D editor.
2021-11-15 13:16:21 +01:00
Rémi Verschelde
5341e6010e
Allow dehardcoding documentation branch and URL in docs links
...
This makes it possible to change the branch of the documentation that
URLs are pointing to without having to modify all class reference
files.
In the XML class reference, the `$DOCS_URL` placeholder should be used,
and will be replaced automatically in the editor and when generating
the RST class reference.
The documentation branch string is set in `version.py`.
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2021-11-15 13:02:21 +01:00
Rémi Verschelde
9e1c190ce1
Merge pull request #54851 from Calinou/skeleton-2d-editor-swap-rest-pose-actions
2021-11-15 10:56:37 +01:00
reduz
cd2a499084
Add path to functions that return iporter options
...
-Allows displaying custom options for specific file format variants
-Added support for scene format import to retrieve custom options
This PR is necessary for #54886 to be implemented properly.
2021-11-14 14:06:10 -03:00
Aaron Franke
ed9c7bf450
Allow creating .gitignore and .gitattributes when creating a new project
...
Also allow creating these files later, and also allow disabling creating the default environment in editor settings.
2021-11-12 21:27:31 -06:00
Aaron Franke
3c0fdcc8ac
Use "enum class" for input enums
2021-11-12 15:37:54 -06:00
Rémi Verschelde
4f85cad013
Merge pull request #54924 from Calinou/editor-macos-rename-shortcut-enter
2021-11-12 22:33:19 +01:00
Camille Mohr-Daurat
74facb6d39
Merge pull request #54803 from goostengine/shape-cast-2d
...
Add `ShapeCast2D` node
2021-11-12 13:28:44 -07:00
Hugo Locurcio
7cc33b14c9
Use Enter instead of F2 as an editor renaming shortcut on macOS
2021-11-12 20:50:23 +01:00
Andrii Doroshenko (Xrayez)
f979d5977a
Add `ShapeCast2D` node
2021-11-12 21:29:30 +02:00
Aaron Franke
2ad3d1bd7a
Make OpenSimplex and VisualScript modules not depend on the editor
2021-11-12 12:03:54 -06:00
Gilles Roudière
1224d7a25c
Implement texture padding in TileSetAtlasSources
2021-11-12 15:14:10 +01:00
Rémi Verschelde
57ae154e86
Merge pull request #53987 from groud/tile_data_inspector_plugin
2021-11-12 15:10:54 +01:00
Rémi Verschelde
88c4380737
Modules: Make sure to include modules_enabled.gen.h where needed
2021-11-12 13:42:58 +01:00
Rémi Verschelde
a54bd6e868
Merge pull request #53914 from Chaosus/shader_default_texture_param
2021-11-12 12:23:34 +01:00
Yuri Roubinsky
826e781bfa
Fix default_texture_param in shader pipeline to support uniform arrays
2021-11-12 12:53:40 +03:00
kobewi
688f42c691
Fix node naming in scene tree dock
2021-11-11 22:30:41 +01:00
Rémi Verschelde
9547d6d543
Merge pull request #54874 from lyuma/fix_other_importer
2021-11-11 13:43:31 +01:00
Lyuma
37c11e4159
Fix import_scene_from_other_importer and import_animation_from_other_importer
2021-11-11 03:24:51 -08:00
Rémi Verschelde
2beaae4b6f
String: Remove `erase` method, bindings can't mutate String
2021-11-11 11:23:32 +01:00
Hugo Locurcio
4ff1431993
Swap rest pose actions in the Skeleton2D editor
...
The texts were changed before, but the actions weren't swapped around.
This led to unexpected behavior.
2021-11-10 23:39:59 +01:00
Rémi Verschelde
7211012c4f
Merge pull request #54745 from KoBeWi/find_in_scenes
2021-11-10 22:08:24 +01:00
Rémi Verschelde
68664c0239
Merge pull request #54836 from pycbouh/inspector-plugins-fixes-and-groups
2021-11-10 22:06:30 +01:00
Rémi Verschelde
a6412e132a
Merge pull request #54660 from Chaosus/vs_particles_mesh_emitter
2021-11-10 19:55:25 +01:00
Rémi Verschelde
35c4cad7ad
Merge pull request #54838 from groud/fix_editor_import_plugin
2021-11-10 18:09:57 +01:00
Gilles Roudière
8de0f969bf
Fix EditorImportPlugin logic for checking unimplemented methods
2021-11-10 16:33:11 +01:00
Yuri Sizov
2e4d18c929
Fix EditorInspectorPlugin virtual bindings and add parse_group callback
2021-11-10 17:56:59 +03:00
Rémi Verschelde
284b50cf30
Merge pull request #54662 from KoBeWi/now_with_reloading
...
Properly reload built-in tool scripts
2021-11-09 23:00:35 +01:00
Rémi Verschelde
06a33e590f
Merge pull request #53819 from TokageItLab/re-implement-ping-pong
...
Reimplement ping-pong animation and reverse playback
2021-11-09 22:11:04 +01:00
kobewi
75e8eafa72
Properly reload built-in tool scripts
2021-11-09 21:58:06 +01:00
Rémi Verschelde
efea3128c3
Merge pull request #54808 from Calinou/editor-frametime-display-more-decimals
...
Display 2 decimals instead of 1 in editor frametime labels
2021-11-09 21:52:37 +01:00
Rémi Verschelde
46780aaa0f
Merge pull request #54694 from briansemrau/rem-silly-obj-error
...
Prevent obj importer from printing misleading error
2021-11-09 21:49:11 +01:00
Rémi Verschelde
e3f3fc517a
Merge pull request #54653 from KoBeWi/built_in_scripts_deserved_that
...
Improve save handling for built-in scripts
2021-11-09 21:46:58 +01:00
K. S. Ernest (iFire) Lee
081c1ceda4
Merge pull request #51341 from V-Sekai/fps-30
...
Default to 30 animation fps for better quality.
2021-11-09 10:55:15 -08:00
Hugo Locurcio
f61ee47a2e
Display 2 decimals instead of 1 in editor frametime labels
...
When comparing different graphics settings or optimizations,
this makes precise measurements and frametime comparisons easier.
2021-11-09 17:17:55 +01:00
K. S. Ernest (iFire) Lee
f4204ac8e0
Default to 30 animation fps for better quality.
2021-11-09 08:13:45 -08:00
Rémi Verschelde
eb98fd9442
Merge pull request #54788 from rcorre/orbit_clamp
2021-11-09 14:15:48 +01:00
Ryan Roden-Corrent
3bd7c4f2a9
Clamp rotation for up/down orbiting shortcuts.
...
This prevents the viewport from going upside-down.
This was suggested at:
https://github.com/godotengine/godot/pull/51984#issuecomment-948614191 :
> For 3.4, I think we can just clamp the angle value when using the
> camera orbiting shortcuts. We can investigate what to do with panning
> and freelook in 3.5 and 4.0.
2021-11-09 06:50:39 -05:00
Rémi Verschelde
d9a74fd07f
Merge pull request #54372 from bruvzg/text_edit_ui
2021-11-09 00:13:25 +01:00
Rémi Verschelde
6c4737341d
Merge pull request #54649 from bruvzg/shadows
2021-11-09 00:07:41 +01:00
bruvzg
ba9d737363
Fix incorrect encoding (Latin-1 instead of UTF-8) used in `_error_handler` functions.
2021-11-08 23:45:08 +02:00
Hendrik Brucker
ed0337c0b9
Several Gradient improvements
2021-11-08 19:11:36 +01:00
Rémi Verschelde
665fa3d839
Merge pull request #52943 from RandomShaper/property_pin_control_natural
2021-11-08 18:53:08 +01:00
Yuri Roubinsky
4a32754e78
Merge pull request #54715 from goostengine/gradient-texture-1d-rename
2021-11-08 20:52:24 +03:00
Pedro J. Estébanez
8d6f80d367
Add property value pinning
2021-11-08 17:42:30 +01:00
kobewi
953a9be2d9
Improve Add Node Here popup
2021-11-08 14:02:33 +01:00
Rémi Verschelde
0b0f7fa9ef
Merge pull request #54275 from Calinou/editor-tweak-animation-editor-icon-colors
2021-11-08 13:32:32 +01:00
kobewi
31644fe280
Properly handle scenes in Find in Files
2021-11-08 02:28:55 +01:00
kobewi
134e4d168b
Improve save handling for built-in scripts
2021-11-07 23:51:12 +01:00
kobewi
8144ac79cf
Fix editor saving blank scenes (for real)
2021-11-07 16:38:56 +01:00
Pedro J. Estébanez
1806ec7c14
Unify determination of default property values
2021-11-07 15:27:47 +01:00
Andrii Doroshenko (Xrayez)
6742a338a8
Rename `GradientTexture` to `GradientTexture1D`
...
1. Explicit and unambiguous when comparing to `GradientTexture2D`
2. Consistent with other class names where 1D is used in the engine.
2021-11-07 15:11:04 +02:00
Brian Semrau
bd0d15c5be
Prevent obj importer from printing misleading error
2021-11-06 22:12:36 -04:00
kobewi
313ef412f5
Fix preview sun and environment names
2021-11-07 00:40:15 +01:00
kobewi
0f7d7c9ffb
Show mouse position when clicking ruler tool
2021-11-07 00:00:52 +01:00
clayjohn
0eff109a21
Added SSIL post processing effect
2021-11-06 12:43:19 -07:00
Yuri Roubinsky
80b563672b
Added `MeshEmitter` node for particles in visual shader
2021-11-06 17:45:38 +03:00
bruvzg
5f9cd9ccbc
Fix Label and RichTextLabale text shadows and shadow outlines.
2021-11-06 10:22:09 +02:00
Rémi Verschelde
13aaa73124
Merge pull request #54573 from nekomatata/query-parameters
2021-11-05 21:52:39 +01:00
Brian Semrau
a90e318a19
Fix previews sometimes displaying wrong/blank image
2021-11-05 12:58:14 -04:00
Rémi Verschelde
56cfebbe98
Merge pull request #54599 from Chaosus/vs_particles_2d_emitters
2021-11-05 12:01:36 +01:00
Yuri Roubinsky
dcdf59cd73
Added 2D boolean hint for particle emitters in visual shaders
2021-11-05 12:45:57 +03:00
Brian Semrau
ac24070056
Use Callable in RS::request_frame_drawn_callback
2021-11-05 01:59:38 -04:00
PouleyKetchoupp
acbd24ea84
Use parameter classes instead of arguments for all physics queries
...
Same as what is already done for shape queries, applied to point and ray
queries. Easier to document and more flexible to add more parameters.
Also expose intersect_point method to script in 3D.
Remove intersect_point_on_canvas in 2D, replaced with a parameter.
2021-11-04 11:44:39 -07:00
David Cambré
c977adbd3b
Update usabilaty of the CustomPropertyEditor
...
Structure button layout so there is no more overlap.
2021-11-04 16:42:08 +01:00
kobewi
9abb07efb4
Ignore external editor for built-in scripts
2021-11-04 14:30:04 +01:00
kobewi
e393c2a734
Add is_built_in() method to Resource
2021-11-04 12:45:58 +01:00
kobewi
64a2681cf0
Allow to name built-in scripts upon creation
2021-11-04 02:34:35 +01:00
Hugo Locurcio
c012fbc8b2
Rename `PROPERTY_USAGE_NOEDITOR` to `PROPERTY_USAGE_NO_EDITOR`
...
This is consistent with other constants that include `NO`,
such as `PROPERTY_HINT_COLOR_NO_ALPHA`.
2021-11-03 23:06:17 +01:00
Rémi Verschelde
a2803f3d86
Merge pull request #54072 from KoBeWi/hrcr_is_ded
2021-11-03 17:31:48 +01:00
Rémi Verschelde
bbee193957
Merge pull request #52781 from KoBeWi/node's_favorite_shader
2021-11-03 16:33:50 +01:00
kobewi
07065d67e1
Infer shader type based on edited node
2021-11-03 15:27:38 +01:00
Rémi Verschelde
804406fcaf
i18n: Sync classref translations with Weblate
...
German (de) is now above the threshold for inclusion.
(cherry picked from commit 0b694eb8e7
)
2021-11-03 15:06:09 +01:00
Rémi Verschelde
3447e0dd19
i18n: Sync editor translations with Weblate
...
Latvian (lv) is now above the threshold for inclusion.
(cherry picked from commit 74bcf37f90
)
2021-11-03 15:06:02 +01:00
Silc 'Tokage' Renew
953a7bce7e
reimplement ping-pong
2021-11-03 13:39:33 +09:00
Yuri Sizov
67cbca341a
Add a flag to EditorResourcePicker to differentiate selection contexts
2021-11-02 14:35:15 +03:00
Chained Lupine
79d4edfca7
Fix crash in ResourceImporterTexture::_save_stex if webp disabled
...
Fixes #51535 .
2021-11-02 09:17:54 +01:00
Rémi Verschelde
0fbf53dbc5
Merge pull request #54387 from Calinou/editor-translations-increase-zlib-compression-level
2021-11-01 23:22:55 +01:00
Rémi Verschelde
29a66f7b04
Merge pull request #54491 from Calinou/project-manager-fix-vulkan-choice
...
Fix new projects always being created with OpenGL
2021-11-01 23:07:21 +01:00
Rémi Verschelde
529968df30
Merge pull request #54396 from groud/implement_terrain_other_brushes
2021-11-01 22:27:06 +01:00
Hugo Locurcio
665d29c16d
Fix new projects always being created with OpenGL
...
Only Vulkan is fully implemented for now, so OpenGL isn't available
in the project manager yet.
This also makes the rendering driver checks use lowercase names
everywhere for consistency.
2021-11-01 22:04:36 +01:00
Rémi Verschelde
0bf3204d89
Merge pull request #54379 from Anutrix/editor-default-float-step
2021-11-01 18:12:54 +01:00
Rémi Verschelde
4d96d37ca2
Merge pull request #54476 from bruvzg/monterey_create_instance
2021-11-01 14:12:33 +01:00
Rémi Verschelde
eae34230c8
Merge pull request #54419 from Chaosus/vs_cut
2021-11-01 14:05:46 +01:00
Rémi Verschelde
54bedc4674
Merge pull request #54475 from groud/fix_tileset_editor_drag_and_drop
2021-11-01 12:27:20 +01:00
bruvzg
0b6b8427c8
[macOS] Add `create_instance` function to spawn editor copies.
...
[macOS] Modify `create_project` function to detect and run app bundles using NSWorkspace to ensure app window is registered and activated correctly.
2021-11-01 11:48:23 +02:00
Gilles Roudière
699f020f1d
Fix TileSet editor drag and drop not working
2021-11-01 10:22:41 +01:00
Rémi Verschelde
efbbd14af3
Merge pull request #54443 from briansemrau/threadsafe-toast
...
Make editor toasts threadsafe
2021-11-01 09:37:11 +01:00
Rémi Verschelde
0b667e6c27
Merge pull request #54288 from Razoric480/fix-key-up-down-idle-frame
2021-10-31 23:20:10 +01:00
Rémi Verschelde
1dd742777a
Merge pull request #53452 from aaronfranke/who-let-the-docs-out
2021-10-31 23:18:32 +01:00
Rémi Verschelde
16dc607f8a
Merge pull request #54307 from Calinou/add-opengl-renderer-squash
...
Add OpenGL renderer (squashed)
2021-10-31 18:30:38 +01:00
Clay John
8a10bb7d0d
Use OpenGL 3.3 core profile instead of compatibility profile
...
- Rename OpenGL to GLES3 in the source code per community feedback.
- The renderer is still exposed as "OpenGL 3" to the user.
- Hide renderer selection dropdown until OpenGL support is more mature.
- The renderer can still be changed in the Project Settings or using
the `--rendering-driver opengl` command line argument.
- Remove commented out exporter code.
- Remove some OpenGL/DisplayServer-related debugging prints.
2021-10-31 15:56:45 +01:00
bruvzg
3f33e1d7d6
Add functions for getting name and font style from dynamic and bitmap fonts.
...
Add font selection toolbar editor plugin.
2021-10-31 12:40:58 +02:00
Yuri Roubinsky
6e00b4e330
Refactored copy/paste of visual shaders, implement 'Cut' feature
2021-10-31 10:42:32 +03:00
Brian Semrau
3d9c5648df
Make editor toasts threadsafe
2021-10-30 23:27:13 -04:00
Ibrahn Sahir
27a6ab457b
Turn off physics and 3d navigation servers in the Project Manager.
...
Copying the editor behaviour of deactivating these servers we're not
using, to reduce CPU load.
2021-10-30 15:15:00 +01:00
Rémi Verschelde
292f63e676
Merge pull request #54383 from Calinou/colorpicker-overbright-indicator-tweak-icon
...
Tweak overbright indicator icon to be more visible on white background
2021-10-30 08:33:27 +02:00
Hugo Locurcio
ce97ddbcb1
Rename GLES2 driver to OpenGL to prepare for the upgrade to GLES3
...
- Use lowercase driver names for the `--rendering-driver`
command line argument.
2021-10-30 02:05:49 +02:00
lawnjelly
e3491a3744
Add GLES2 2D renderer + Linux display manager
...
First implementation with Linux display manager.
- Add single-threaded mode for EditorResourcePreview (needed for OpenGL).
Co-authored-by: clayjohn <claynjohn@gmail.com>
Co-authored-by: Fabio Alessandrelli <fabio.alessandrelli@gmail.com>
2021-10-30 02:05:48 +02:00
Gilles Roudière
c609d39214
Implement missing TileMap brushes for terrains
2021-10-29 19:46:42 +02:00
Aaron Franke
6772ebcea0
Move the docs for constructors and operators out of methods section
2021-10-29 12:34:57 -05:00
Hugo Locurcio
89cf17c96f
Use maximum zlib compression when generating editor translation headers
...
With comments stripped, this reduces the combined generated translation
size from 28.7 MB to 28.4 MB (-240 KB).
2021-10-29 19:07:48 +02:00
Yuri Roubinsky
bc171971dd
Merge pull request #53234 from Geometror/gradient-texture-2d
2021-10-29 18:59:40 +03:00
Yuri Roubinsky
f6084f38c3
Merge pull request #54388 from Chaosus/fix_orm_conversion
2021-10-29 18:59:12 +03:00
Yuri Roubinsky
7528c204d3
Added convertor from `ORMMaterial3D` to `ShaderMaterial`
2021-10-29 17:49:24 +03:00
Hugo Locurcio
d8c21e7405
Tweak overbright indicator icon to be more visible on white background
...
An outline is now present on all sides to ensure it's more visible
when the "new" color (on the right of a ColorPicker) is overbright.
2021-10-29 16:13:50 +02:00
Yuri Roubinsky
2d0aa5ebc4
Repair Fog mode in visual shaders
2021-10-29 17:09:03 +03:00
Anutrix
be687a7e1d
Made float, Vector2, Vector3 and similar property editors to use the default_float_step
2021-10-29 17:54:28 +05:30
Max Hilbrunner
343414cba5
Merge pull request #54328 from YeldhamDev/tabbar_close_signal_rename
...
Rename `TabBar`'s `tab_closed` signal to `tab_close_pressed`
2021-10-29 13:21:09 +02:00
clayjohn
1b2cd9f251
Addition of FogVolumes, FogShaders, FogMaterial, and overhaul of VolumetricFog
...
Co-authored-by: Brian Semrau <brian.semrau@gmail.com>
2021-10-28 22:02:23 -07:00
Michael Alexsander
4c563a51c3
Rename `TabBar`'s `tab_closed` signal to `tab_close_pressed`
2021-10-28 13:10:44 -03:00
Rémi Verschelde
0ae65472e7
clang-format: Enable `BreakBeforeTernaryOperators`
...
clang-format keeps breaking the way it handles break *after* ternary operators,
so I give up and go with the only style they seem to actually test.
2021-10-28 15:57:41 +02:00
Rémi Verschelde
3a6be64c12
clang-format: Various fixes to comments alignment from `clang-format` 13
...
All reviewed manually and occasionally rewritten to avoid bad auto formatting.
2021-10-28 15:43:36 +02:00
Rémi Verschelde
3b11e33a09
clang-format: Disable alignment of operands, too unreliable
...
Sets `AlignOperands` to `DontAlign`.
`clang-format` developers seem to mostly care about space-based indentation and
every other version of clang-format breaks the bad mismatch of tabs and spaces
that it seems to use for operand alignment. So it's better without, so that it
respects our two-tabs `ContinuationIndentWidth`.
2021-10-28 15:19:35 +02:00
Rémi Verschelde
6d930bd270
Merge pull request #54342 from groud/remove_item_list_editor
2021-10-28 11:52:47 +02:00
Gilles Roudière
a51f92273a
Remove ItemList editor and replace it by a property array
2021-10-28 10:16:51 +02:00
Rémi Verschelde
7bb568328f
Merge pull request #52985 from Calinou/editor-debugger-bottom-panel-error-warning-highlight
...
Improve appearance of the editor Debugger bottom panel menu
2021-10-28 08:12:41 +02:00
kobewi
de4f29f458
Remove node_hrcr hack
2021-10-28 01:43:34 +02:00
Rémi Verschelde
157cba3933
Merge pull request #54321 from V-Sekai/import-scene-crash
2021-10-27 22:25:25 +02:00
K. S. Ernest (iFire) Lee
d905d3c3d3
Avoid crash in scene importer when the mesh is empty.
2021-10-27 12:16:10 -07:00
Rémi Verschelde
21529c90f8
Merge pull request #54166 from ConteZero/unique_selection
2021-10-27 20:50:54 +02:00
ConteZero
fbee4efa5f
Add option to make selection unique
2021-10-27 19:45:52 +02:00
Hugo Locurcio
bb681ef9f2
Improve appearance of the editor Debugger bottom panel menu
...
- Make the Debugger bottom panel menu more prominent when
there are errors or warnings by adjusting the text color.
- Add some spacing to the right of the error/warning icon
for better visual appearance.
2021-10-27 16:56:15 +02:00
Max Hilbrunner
55100f2f11
Small formatting fixes in Find in Files
2021-10-27 16:13:49 +02:00
Francois Belair
3f3cd15e07
Make EditorSpinSlider wait for text on key_up/down
2021-10-26 18:00:16 -04:00
Hugo Locurcio
e549ce28a0
Tweak animation editor icon colors for easier visual grepping
...
This makes the Linear and Cubic icons in particular easier to
distinguish from each other.
The Cubic interpolation icon's curve was also changed to be
more distinguishable from the Linear icon's curve.
2021-10-26 22:54:59 +02:00
Rémi Verschelde
8c162f4a7b
Merge pull request #54270 from JFonS/fix_selection
2021-10-26 19:03:34 +02:00
jfons
83fd0e0c70
Fix click selection in the editor 3D viewport
2021-10-26 18:08:31 +02:00
Rémi Verschelde
344babb939
Merge pull request #54267 from pycbouh/controls-button-font-focus
2021-10-26 17:34:07 +02:00
Yuri Sizov
12838bd99d
Add focus font color to Button and derivatives
2021-10-26 17:42:40 +03:00
Rémi Verschelde
c2640e2b21
Merge pull request #54254 from mhilbrunner/ticks-msec-64
2021-10-26 14:53:56 +02:00
Max Hilbrunner
5dc02eb8b0
Save all 64 bits of get_ticks_msec() in more cases
2021-10-26 13:58:58 +02:00
Gilles Roudière
cec004adf0
Implement polygons editors in the tiles selection mode
2021-10-26 12:38:36 +02:00
Rémi Verschelde
01afa39d21
Merge pull request #54073 from groud/terrains_for_procgen
2021-10-26 08:15:07 +02:00
reduz
d03b7fbe09
Refactored Node3D rotation modes
...
* Made the Basis euler orders indexed via enum.
* Node3D has a new rotation_order property to choose Euler rotation order.
* Node3D has also a rotation_mode property to choose between Euler, Quaternion and Basis
Exposing these modes as well as the order makes Godot a lot friendlier for animators, which can choose the best way to interpolate rotations.
The new *Basis* mode makes the (exposed) transform property obsolete, so it was removed (can still be accessed by code of course).
2021-10-25 14:34:00 -03:00
Rémi Verschelde
24fdedfe94
Merge pull request #54050 from reduz/animation-compression
2021-10-25 14:27:58 +02:00
bruvzg
ebbc25e89c
Ignore empty Font resources as theme override.
...
Add range hint to font_size properties.
Remove excessive `base_size` Font property.
2021-10-25 14:05:37 +03:00
Rémi Verschelde
e71184667e
Merge pull request #53707 from Calinou/action-editor-default-enable-physical
2021-10-24 23:34:08 +02:00
Rémi Verschelde
69eaa806c8
Merge pull request #53820 from Calinou/3d-editor-add-quick-fov-adjust
2021-10-24 22:33:05 +02:00
Wilson E. Alvarez
fc30f6350a
Fix max argument count on AnimationTrackEdit spinbox
2021-10-24 10:05:01 -04:00
Rémi Verschelde
c7b78b9538
Merge pull request #53885 from TokageItLab/fix-bone-animation-insertion
...
Fixed Pos/Rot/Scl 3D Tracks insertion in `SkeletonEditor`
2021-10-24 10:05:00 +02:00
Rémi Verschelde
0aa6f27061
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 4010bb9af0
)
2021-10-23 12:38:15 +02:00
Hugo Locurcio
5ae45cf388
Implement Alt + Mouse wheel to adjust FOV in the 3D editor viewport
...
This allows for quicker FOV adjustments compared to using the View menu.
2021-10-23 12:21:03 +02:00
Robin Arys
e69d40cad9
Fix newly created files not sorted correctly
2021-10-23 10:50:05 +02:00
Silc 'Tokage' Renew
653e2a550c
Fixed animation insertion in SkeletonEditor
2021-10-23 16:50:00 +09:00
Robin Arys
bb7888debb
Fix support for multiple base types in the quick load dialog
2021-10-22 23:27:46 +02:00
Rémi Verschelde
beb3875cdf
Merge pull request #53781 from m4gr3d/restrict_project_data_dir_config_master
2021-10-22 19:30:35 +02:00
Yuri Roubinsky
af08d497e2
Fix error spam at setting a CurveTexture in visual shaders
2021-10-22 17:32:16 +03:00
reduz
a69541da4c
Implement Animation Compression
...
Roughly based on https://github.com/godotengine/godot-proposals/issues/3375 (used format is slightly different).
* Implement bitwidth based animation compression (see animation.h for format).
* Can compress imported animations up to 10 times.
* Compression format opens the door to streaming.
* Works transparently (happens all inside animation.h)
2021-10-21 18:27:34 -03:00
Marcel Admiraal
87a4ba492e
Remove unimplemented methods
2021-10-21 18:44:25 +01:00
Gilles Roudière
d1aef45072
Allow updating TileMap cells using surrounding terrains
2021-10-21 16:57:28 +02:00
Rémi Verschelde
89b9624733
Merge pull request #53161 from Duroxxigar/copy-group-name
2021-10-21 11:22:12 +02:00
Duroxxigar
532a632077
Added ability to copy group name
2021-10-21 03:56:08 -04:00
Rémi Verschelde
efa3ff6b95
Merge pull request #54024 from akien-mga/editor-i18n-thresholds
2021-10-20 16:05:30 +02:00
Rémi Verschelde
c942d567eb
Merge pull request #53926 from YeldhamDev/i_am_tabbar_now
2021-10-20 15:42:41 +02:00
Rémi Verschelde
01aec21d25
i18n: Only include editor translations above a threshold
...
This reduces the size of the editor binaries significantly, as we otherwise
embed all WIP translations, including ones with very low completion ratios,
and end up paying for the size of all `msgid`s for each locale.
Cf. https://github.com/godotengine/godot-proposals/issues/3421 for details.
The thresholds used are:
- 30% for the editor interface (should already include most common strings
while more obscure ones like UndoRedo action names might be untranslated).
- 10% for the class reference: this is a HUGE resource and 10% is already
a lot of useful content, especially if focused on the most used APIs.
This currently reduces the size of the editor binary by 17% on Linux.
The list will be synced manually every now and then.
(cherry picked from commit 8425c58991
)
2021-10-20 15:10:13 +02:00
Rémi Verschelde
9841c9abe8
Merge pull request #53994 from groud/move_tileset_tilemap_switch_to_tabs
2021-10-20 11:53:54 +02:00
Rémi Verschelde
6d3eef03bc
Merge pull request #53260 from Calinou/editor-inspector-warning-yellow
2021-10-20 11:48:12 +02:00
Haoyu Qiu
392d529247
Update view name after processing orbit view shortcuts
2021-10-20 13:05:59 +08:00
Hugo Locurcio
f0c7d78ebf
Improve accent color modulate visibility for the Anchor editor icon
...
This switches to the default icon color so that the accent color
modulation becomes more easily visible.
2021-10-19 20:39:05 +02:00
Gilles Roudière
20f4dce7a0
Fix EditorToaster constant update and prevent a crash
2021-10-19 17:18:45 +02:00
Gilles Roudière
5317b79a1d
Remove the tilemap/tileset editor switch, move it to tabs
2021-10-19 17:11:34 +02:00
Michael Alexsander
67acb7de6e
Rename `Tabs` to `TabBar`
2021-10-19 11:37:31 -03:00
Gilles Roudière
bc0b702874
Merge pull request #53440 from groud/tile_map_patterns_palette
...
Implement TileMap patterns palette
2021-10-19 13:13:46 +02:00
Rémi Verschelde
b1b5d516d7
Merge pull request #53979 from KoBeWi/bug_from_the_past
2021-10-19 13:13:09 +02:00
kobewi
abe22dfcf4
Fix command history for plugin commands
2021-10-19 12:23:24 +02:00
Gilles Roudière
1a95f893c4
Implement TileMap patterns palette
2021-10-19 11:57:37 +02:00
Rémi Verschelde
4387f9645b
Merge pull request #52940 from groud/toast_notification
2021-10-19 09:57:13 +02:00
Rémi Verschelde
21f1ac8bf3
Merge pull request #53805 from groud/name_to_tileset_sources
2021-10-19 09:56:19 +02:00
ne0fhyk
b5c750fa65
Restrict the project data directory configuration
2021-10-18 14:10:38 -07:00
Rémi Verschelde
64c9d44c06
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 2a7e1d0aac
)
2021-10-18 12:02:05 +02:00
Maverick Liberty
4b9e12b8c0
ResourceImporterScene: Add error when "default" is not defined to create clips
2021-10-18 11:49:46 +02:00
jmb462
f2943eec72
Fix plugin create dialog subfolder and script field validity checks
2021-10-17 23:42:04 +02:00
Rémi Verschelde
c240275482
Merge pull request #51984 from rcorre/camera_shortcuts
2021-10-16 18:50:48 +02:00
Rémi Verschelde
a4e1a07d83
Merge pull request #53865 from reduz/implement-blend-shape-tracks
2021-10-16 16:48:10 +02:00
reduz
ae1c016547
Implement Animation Blend Shape Tracks
...
* New track type BLEND_SHAPE
* Blend shapes are imported via this new track type
* Processing is more optimized (no longer relies on variants)
* Modified the Blend Shape API in MeshInstance3D to use indices rather than StringNames (more optimizes)
* Promo: Fixed a small bug in gizmo updating in Node3D that affected performance
Dedicated BlendShape tracks are required for both optimization and eventually implementing them in animation compression.
2021-10-16 08:36:05 -03:00
mennomax
b4eeeb315a
Swap args of Plane(point, normal) constructor
...
Now (normal, point)
2021-10-15 20:49:42 -05:00
Rémi Verschelde
96410f55b2
Merge pull request #53860 from akien-mga/scons-end-gen-cpp-suffering
2021-10-15 23:59:12 +02:00
Rémi Verschelde
c96dcdf50a
Merge pull request #53859 from lyuma/collada_fix_transform
2021-10-15 22:14:26 +02:00
Rémi Verschelde
c133480531
SCons: List `.gen.cpp` sources explicitly to avoid globbing errors
...
Whenever we change the name (or remove) generated cpp files with the `.gen.cpp`
extension, users run into build issues when switching between branches (i.e.
switching before and after the name change/removal). This is because we glob
`*.cpp` so if a now-obsolete file from a previous build is present, we'll
include it too, potentially leading to bugs or compilation failure (due to
missing headers or invalid code).
So globbing patterns in `add_source_files` will now skip files ending with
`.gen.cpp`, which should instead be passed explicitly where they're used.
2021-10-15 22:14:11 +02:00
Lyuma
a54fe3ffa8
collada: fix error in use of fix_transform.
2021-10-15 11:36:18 -07:00
Rémi Verschelde
b5ece7c363
Merge pull request #53764 from Chaosus/vs_curve_input_port_default
2021-10-15 19:31:05 +02:00
Rémi Verschelde
55c71ba1a3
Merge pull request #53813 from reduz/editor-import-plugins
2021-10-15 15:14:52 +02:00
Rémi Verschelde
5bc0e4081b
Merge pull request #53753 from EricEzaM/fix-shortcut-saving
2021-10-15 14:40:40 +02:00
reduz
b3bf90b3ce
Add scene Post-Import Plugin support.
...
* New plugin system to control the whole import workflow
* Can add options and run code at every import step (general, per node, mesh, animation, material etc.)
This constitutes a first version of these plugins. The ability to interact with the import preview dialog will likely be added later on.
2021-10-15 09:12:04 -03:00
Rémi Verschelde
e53e897b8c
Merge pull request #53782 from reduz/animation-track-type-import-actions
2021-10-15 13:47:31 +02:00
Eric M
7e435fa841
Fixed shortcut saving and 'original' comparisons
2021-10-15 20:39:38 +10:00
K. S. Ernest (iFire) Lee
8f0c056431
Fix specific warnings issues by Clang
...
Found by `scons dev=yes` on llvm-mingw.
2021-10-14 14:14:26 -07:00
Rémi Verschelde
f90047f158
Merge pull request #53786 from TokageItLab/fix-skeleton-editor-methods
2021-10-14 20:53:15 +02:00
Silc 'Tokage' Renew
8e9897b6de
get rid set_bone_pose and fix some function in SkeletonEditor
2021-10-15 02:41:17 +09:00
Gilles Roudière
3b42660105
Add a name to TileSet sources
2021-10-14 14:54:48 +02:00
Gilles Roudière
0587e5e018
Implement toast notifications in the editor
2021-10-14 13:30:54 +02:00
reduz
0bf0024395
Implement import actions for pos/rot/scale animation tracks
...
Following actions are supported for each track type (position, rotatin, scale):
* ImportIfPresent: If a track of this type is found, import it.
* ImportIfPresentForall (default): If a track is found for a given node/bone, create it in animations. This ensures there is always a correct blending.
* Never: Delete all tracks found for a given type. This is useful if you want to, as an example, force to import rotations only.
2021-10-14 08:22:54 -03:00
kobewi
0afd47d8bc
Add tool quick-select to tile editor
2021-10-14 02:24:39 +02:00
reduz
2dc823273e
Remove REST transform influence in skeleton bones
...
* Animations and Skeletons are now pose-only.
* Rest transform is kept as reference (when it exists) and for IK
* Improves 3D model compatibility (non uniform transforms will properly work, as well as all animations coming from Autodesk products).
2021-10-13 14:51:29 -03:00
Rémi Verschelde
004b44e915
Merge pull request #53767 from groud/improve_tile_set_change_performances
2021-10-13 16:03:31 +02:00
Gilles Roudière
0de2fce3e1
Greatly improve editor performances by deferring tiles related updates
...
Solve few update problems
2021-10-13 14:49:47 +02:00
Yuri Roubinsky
e270644b20
Add a default input parameter field to CurveTexture (in visual shaders)
2021-10-13 15:25:12 +03:00
Gilles Roudière
b9151860f3
Prevent tiles outside atlas texture
2021-10-13 13:44:02 +02:00
Rémi Verschelde
3e86ca5586
Merge pull request #53689 from reduz/remove-animation-transform3d-track
2021-10-13 12:40:33 +02:00
Rémi Verschelde
4d2c82ef77
Merge pull request #53727 from Calinou/3d-editor-tweak-object-snap-distances
2021-10-13 11:43:58 +02:00
Rémi Verschelde
74a87fe98b
Merge pull request #53683 from Chaosus/vs_previews
2021-10-13 10:03:44 +02:00
reduz
ec19ed3723
Remove animation 3D transform track, replace by loc/rot/scale tracks.
...
* `Animation.TYPE_TRANSFORM3D` track is gone.
* Added POSITION_3D, ROTATION_3D, SCALE_3D tracks.
* GLTF2, Collada, FBX importers will only import the track types found.
* Skeleton3D bone poses are now Pos/Rot/Scale, pose matrix removed.
* AnimationPlayer and AnimationTree animate these tracks separately, only when found.
* Removed BakeReset code, is useless with these changes.
This is the first in a series of commits designed to make the animation system in Godot more useful, which includes:
* Better compatibility with Autodesk products
* Better reusability of animations across models (including retargeting).
* Proper animation compression.
* etc.
*Note* GLTF2 animation saving went broken with this PR, needs to be fixed in a subsequent one.
2021-10-12 20:08:42 -03:00
Rémi Verschelde
7494d54e04
Merge pull request #53471 from KoBeWi/ 🥞
...
Improve editor panning and remove RMB panning
2021-10-12 22:37:28 +02:00
Rémi Verschelde
b747063050
Merge pull request #53705 from e8newallm/53668
...
Fixed editor attempting to save a blank scene with save all scenes
2021-10-12 22:35:10 +02:00
Rémi Verschelde
64ec08d70d
Merge pull request #53735 from Paulb23/text-file-drop-and-drag
...
Allow dragging TextFiles from the Filesystem dock
2021-10-12 22:21:02 +02:00