trollodel
cd1d7294d8
Remove the EditorNode parameter from EditorPlugins create methods
...
Remove EditorNode usage from the Navigation editor plugin.
2022-02-14 18:21:42 +01:00
Hugo Locurcio
15244e55bd
Improve completion scroll bar visibility in the script editor
...
This makes the scroll bar bar thicker and more opaque (roughly
matching the editor theme's scroll bar by default).
2022-02-14 16:49:08 +01:00
Rémi Verschelde
f810f76890
Merge pull request #57306 from trollodel/remove_editornode_param
2022-02-14 16:40:40 +01:00
Rémi Verschelde
cd6301ae25
Merge pull request #58008 from Geometror/increase-checkerboard-contrast
2022-02-14 15:22:50 +01:00
Yuri Sizov
7f4b71b682
Add missing CheckButton icons
2022-02-14 16:23:59 +03:00
trollodel
05b56f316d
Remove most EditorNode constructor parameters and fields
2022-02-14 14:16:24 +01:00
JFonS
8317753c24
Merge pull request #57964 from mbrlabs/deselect
...
Deselect nodes in the 3D editor when pressing ESC
2022-02-14 10:42:46 +01:00
JFonS
58199e5ad0
Merge pull request #57990 from jmb462/fix-drag-lines-precision-issue
...
Fix 3D editor axis drag lines precision issue
2022-02-14 10:39:44 +01:00
Haoyu Qiu
9aaab5b693
Make duplicate animation prompt for new name
2022-02-14 14:48:25 +08:00
FireForge
dbc380af59
Fix EditorProperty text and icon overlap bugs
2022-02-13 22:27:06 -06:00
Hugo Locurcio
7ca843b655
Only store _edit_use_anchors_
metadata if value is not the default
...
The default value is assumed to be `false`, so this metadata
only needs to be stored if the value is `true`.
2022-02-14 01:26:57 +01:00
Rémi Verschelde
e9ef64526a
Merge pull request #57892 from TechnicalSoup/ProjManager-Patch
...
Center initial position of project manager window
2022-02-13 10:37:48 +01:00
TechnicalSoup
f3b7419790
Center initial position project manager window
...
Ensure that the project manager window is centered on the screen if any resizing is performed due to DPI scaling.
Resizing and repositioning code has been moved to after the initialisation of the window contents to improve UI response/presentation.
2022-02-13 19:48:53 +11:00
Rémi Verschelde
aa069a4d31
Merge pull request #58033 from jmb462/fix-mouse-wheel-animation-track-zoom
...
Fix AnimationTrack mouse wheel zooming at low zoom level
2022-02-13 08:27:27 +01:00
jmb462
64ca6a0696
Fix AnimationTrack mouse wheel zooming at low zoom level
2022-02-13 00:24:35 +01:00
bruvzg
9739a2038a
Fix Project Manager crash on exit.
...
Fix editor settings loading / saving by Project Manager.
2022-02-12 21:55:11 +02:00
bruvzg
29199579f7
Add sub-pixel glyph positioning support.
2022-02-12 19:55:52 +02:00
Rémi Verschelde
498805282a
Merge pull request #57993 from Calinou/sky-tweak-default-values
2022-02-12 16:46:19 +01:00
Hendrik Brucker
8ebecf5095
Increase checkerboard texture contrast
2022-02-12 14:55:07 +01:00
Hendrik Brucker
77fb65debf
Use EditorFileDialog instead of FileDialog in the project manager
2022-02-12 12:06:51 +01:00
Rémi Verschelde
3f759f03c3
Merge pull request #57997 from Calinou/texture-import-rename-hdr-as-srgb
2022-02-12 10:22:06 +01:00
Jean-Michel Bernard
b452534e60
Fix 3D Editor axis drag lines precision issue
2022-02-12 10:20:31 +01:00
Rémi Verschelde
f5a27ee4fe
Merge pull request #57994 from jmb462/polygon2d-handles
2022-02-12 10:12:06 +01:00
Rémi Verschelde
7a7fabe4f6
Merge pull request #57641 from Geometror/compilation-time-improvements-1
2022-02-12 09:46:02 +01:00
Hendrik Brucker
b396fd4eef
Improve compilation speed (forward declarations/includes cleanup)
2022-02-12 02:46:22 +01:00
Hugo Locurcio
1737b4a946
Rename Hdr as Srgb texture import option to be lowercase
...
Unlike all other import options, Hdr As Srgb was internally spelled
out with uppercase characters.
2022-02-12 02:39:10 +01:00
Hugo Locurcio
b7b18a4940
Tweak default ProceduralSkyMaterial and PhysicalSkyMaterial appearance
...
- Tweak colors to be less saturated and more balanced (in terms of hue).
The cool blue sky is balanced by a warm brown ground,
which makes reflections look closer to how they'd look like when using
an HDRI panorama texture.
- Make the ground color dark on both ProceduralSkyMaterial and
PhysicalSkyMaterial to reduce indoor light leaking, especially
when using GI.
- Tweak the PhysicalSkyMaterial colors to be as close as possible
to ProceduralSkyMaterial (with the default sun orientation).
- Tweak editor environment defaults to be identical to the default
ProceduralSkyMaterial colors. Previously, the default editor sky
color was different from the colors of a newly created
ProceduralSkyMaterial resource.
Both new skies were tested without GI, with SDFGI and with VoxelGI.
They were tuned to look best when using ACES tonemapping with a
whitepoint set to 6, but they still look good with other
tonemapping operators.
2022-02-12 02:22:40 +01:00
Jean-Michel Bernard
b0ebbd8ece
Hide Polygon2D lines and handles when node is not visible in tree.
2022-02-11 23:18:23 +01:00
Rémi Verschelde
a0558b8af8
Merge pull request #57984 from jmb462/collisionshape_handles
2022-02-11 23:03:20 +01:00
Rémi Verschelde
45360ca118
Merge pull request #57982 from trollodel/fix_disabled_visualscript
2022-02-11 22:57:11 +01:00
trollodel
e97e894aa0
Fix editor compile error when VisualScript is disabled
2022-02-11 18:45:41 +01:00
Jean-Michel Bernard
ef995b222e
Hide CollisionShape2D handles when node is not visible in tree.
2022-02-11 18:44:17 +01:00
Yuri Sizov
175088db25
Add an explicit way to remove a theme type
2022-02-11 17:57:52 +03:00
Marcus Brummer
55fda17742
Deselect nodes in the 3D editor when pressing ESC
2022-02-11 11:41:51 +01:00
JFonS
3aa7b7eaf2
Merge pull request #57919 from mbrlabs/region-select-fixes
...
Fixed issues with 3D region-select in the editor
2022-02-11 10:59:18 +01:00
Marcus Brummer
3c4c73b100
Fixed issues with 3D region-select in the editor
2022-02-11 09:43:40 +01:00
Francois Belair
52649d5402
Fix selecting keys in Track Edit
2022-02-10 17:57:08 -05:00
Rémi Verschelde
ba8973d663
Merge pull request #57902 from aaronfranke/canvas-editor-scale
2022-02-10 22:24:22 +01:00
Rémi Verschelde
69ddf2fd05
Merge pull request #55157 from pycbouh/control-inspector-reorg
2022-02-10 22:13:28 +01:00
Yuri Sizov
107b6f299c
Reorganize inspector layout workflow for Control nodes
2022-02-10 20:29:34 +03:00
Rémi Verschelde
519075cf41
Merge pull request #57912 from rcorre/fix-blender
2022-02-10 16:53:01 +01:00
Rémi Verschelde
52a7ecf821
Merge pull request #57886 from KoBeWi/icon.png_drop
2022-02-10 16:12:36 +01:00
kobewi
283ec9e640
Fix texture file dropping in 2D editor
2022-02-10 15:06:13 +01:00
Ryan Roden-Corrent
628219c922
Don't block input after cancelling transform.
...
After starting an instant transform and cancelling it, the mouse was
blocked because cancel_transform did not set _edit.instant back to
false.
This refactors all the cleanup into a separate function that both
cancel_transform and commit_transform can call.
Fixes #57868 .
2022-02-10 08:23:10 -05:00
Rémi Verschelde
1bdb82c64e
Fix typos with codespell
...
Using codespell 2.2-dev from current git.
Added `misc/scripts/codespell.sh` to make it easier to run it once in a
while and update the skip and ignore lists.
2022-02-10 12:30:19 +01:00
Aaron Franke
742205b29a
Fix CanvasItemEditor scale editor not using the editor methods
2022-02-10 03:51:53 -06:00
Rémi Verschelde
f21a62b620
Merge pull request #57866 from fire-forge/better_array_editor
2022-02-10 10:39:36 +01:00
Francois Belair
13a0d9177d
Implement drawing and editing all anim beziers
...
* Move bezier edit from track to button in toolbar
* Draw, edit all bezier curves simultaneously
* Add click on curve to select tracks
* Tie track editor's filter view to bezier editor
* Implement visibility and locking
* Fix editor spacing issues
* Fix track buttons spacing
* Add keyframe focus and (de)select all key handling
2022-02-09 19:48:22 -05:00
Rémi Verschelde
8161e28512
Merge pull request #55899 from groud/fix_rotation_track_wrong_type
...
Fixes rotation 3D track inspector not using the correct type
2022-02-09 22:17:07 +01:00
Rémi Verschelde
d22ac13bc2
Merge pull request #57715 from Faless/debugger/4.x_core_includes_and_servers
...
[Debugger] Move most profilers to ServersDebugger, fix core includes.
2022-02-09 21:57:32 +01:00
Marcus Brummer
c283a0ece7
Improved region-select in the 3D editor viewport
2022-02-09 12:22:03 +01:00
Rémi Verschelde
79077e6c10
Merge pull request #57817 from akien-mga/version-hash-cpp
2022-02-09 09:46:02 +01:00
Rémi Verschelde
d6deada47c
Revert "Show the 3D transform gizmo in the center when otherwise offscreen"
...
This reverts commit 4234a72b25
.
There are some errors which are problematic to have in 4.0 alpha 2.
The PR can be redone with fixes and merged again after the dev release.
Fixes #57839 .
2022-02-09 09:39:28 +01:00
Rémi Verschelde
90162851a7
Core: Move generated VERSION_HASH
to a .cpp
file
...
This lets us have its definition in `core/version.h` and avoid
rebuilding a handful of files every time the commit hash changes.
2022-02-09 09:20:17 +01:00
FireForge
62073d157f
Unify array, dictionary, and inspector array editors
2022-02-09 00:15:47 -06:00
Ellen Poe
41a158af56
Add AudioStreamRandomizer, replacing AudioStreamRandomPitch
...
Add additional randomization options.
2022-02-09 00:05:32 +01:00
Rémi Verschelde
25d4c14fef
Merge pull request #57627 from JFonS/occluder_improvements
2022-02-08 23:23:50 +01:00
Aaron Franke
4234a72b25
Show the 3D transform gizmo in the center when otherwise offscreen
2022-02-08 14:38:31 -06:00
Rémi Verschelde
76ce5c16f3
Merge pull request #55584 from KoBeWi/twoids
2022-02-08 21:14:51 +01:00
jfons
8345aabaf4
Improve rotation in the 3D transform gizmo
...
* Get rid of deadzones.
* Make it easier to select rotation handles at very oblique angles.
* Handle rotation for axes that are perpendicular to the camera.
2022-02-08 20:56:59 +01:00
jfons
e0c82913ff
Fix navigation in 3D viewport
...
The incorrect initialization of EditData::instant to true was preventing the navigation code to run until the transform gizmo was used.
2022-02-08 19:24:50 +01:00
kobewi
4397109aab
Fix uid conflict when duplicating resource
2022-02-08 18:04:19 +01:00
Rémi Verschelde
72de251501
Merge pull request #57807 from KoBeWi/ninja_methods
2022-02-08 17:32:33 +01:00
Rémi Verschelde
6889085813
Merge pull request #57808 from KoBeWi/named_inspector
2022-02-08 17:32:14 +01:00
Rémi Verschelde
96e4de3511
Merge pull request #57626 from Calinou/3d-editor-rename-debug-draw-modes
2022-02-08 16:42:01 +01:00
Rémi Verschelde
cc097cd22b
Merge pull request #56543 from rcorre/blendermotion-4.0
2022-02-08 16:39:19 +01:00
kobewi
0e8147d303
Display built-in script names in the inspector
2022-02-08 16:15:27 +01:00
kobewi
fb1fa2a3f7
Reload built-in scripts when picking methods
2022-02-08 16:06:57 +01:00
bruvzg
8e3245383a
[Editor] Fix font style matching issues.
...
Fix font selection when no style selected.
Fix style matching when fonts have different style sets.
Use SNAME for theme overrides.
2022-02-08 15:20:01 +02:00
Rémi Verschelde
e26598b4a1
Merge pull request #40140 from hinlopen/tree-scroll-center
2022-02-08 13:43:19 +01:00
Rémi Verschelde
561fbe2175
Merge pull request #56923 from fire-forge/fix-create-root-node-scrolling
2022-02-08 13:17:35 +01:00
Rémi Verschelde
f425d403fe
Merge pull request #57066 from KoBeWi/in_the_name_of_the_custom
2022-02-08 11:15:01 +01:00
Rémi Verschelde
a66e55069e
Merge pull request #57796 from akien-mga/revert-sname-theme-setters
2022-02-08 11:13:24 +01:00
Rémi Verschelde
6eeeb9a63c
Re-add missing SNAME
macros in get_theme_*
calls
...
They were removed in the previous commit reverting the addition of `SNAME`
to `add_theme_*` and theme setter methods, which is not wanted.
2022-02-08 10:31:56 +01:00
Rémi Verschelde
fc076ece3d
Revert "Add missing SNAME macro optimization to all theme methods call"
...
This reverts commit a988fad9a0
.
As discussed in #57725 and clarified in #57788 , `SNAME` is not meant to be used
everywhere but only in critical code paths. For theme methods specifically, it
was by design that only getters use `SNAME` and not setters.
2022-02-08 10:17:25 +01:00
Rémi Verschelde
317cd0b19a
Refactor some object type checking code with cast_to
...
Less stringly typed logic, and less String allocations and comparisons.
2022-02-08 10:08:34 +01:00
Rémi Verschelde
0154ce2c8d
Merge pull request #43015 from Xrayez/refactor-auto-instaprop
...
Refactor auto-instantiation of `Object` properties in editor
2022-02-08 08:57:29 +01:00
Jason Knight
81b6da9d3d
Use ScriptServer::get_global_class_base instead of script_class_get_base in script_class_is_parent.
2022-02-07 11:37:48 -06:00
kobewi
a08fc442a0
Fix script editor errors with CustomCallables
2022-02-07 14:34:42 +01:00
Michael Alexsander
59e9a8c275
Fix theming for floating window docks
2022-02-07 09:55:25 -03:00
Rémi Verschelde
88aea70a09
Merge pull request #57749 from timothyqiu/feature-class-props
2022-02-07 13:20:15 +01:00
jfons
dd970482c5
Improvements and fixes to occluders
...
Improvements:
* Occluder3D is now an abstract type inherited by: ArrayOccluder3D, QuadOccluder3D, BoxOccluder3D, SphereOccluder3D and PolygonOccluder3D. ArrayOccluder3D serves the same purpose as the old Occluder3D (triangle mesh occluder) while the rest are primitives that can be used to manually place simple occluders.
* Occluder baking can now apply simplification. The "bake_simplification_distance" property can be used to set a world-space distance as the desired maximum error, set to 0.1 by default.
* Occluders can now be generated on import. Using the "occ" and "occonly" keywords (similar to "col" and "colonly" for colliders) or by enabling on MeshInstance3Ds in the scene's import window.
Fixes:
* Fixed saving of occluder files after bake.
* Fixed a small error where occluders didn't correctly update in the rendering server.
Bonus content:
* Generalized "CollisionPolygon3DEditor" so it can also be used to edit Resources. Renamed it to "Polygon3DEditor" since it was already being used by other things, not just colliders.
* Fixed a small bug in "EditorPropertyArray" where a call to "remove" was left after the "remove_at" rename.
2022-02-07 13:04:51 +01:00
Rémi Verschelde
bfb75d107c
Merge pull request #57741 from Chaosus/vs_fixes
2022-02-07 12:50:44 +01:00
Haoyu Qiu
d9d12cd352
Don't display empty Class Properties in feature profile
2022-02-07 18:55:17 +08:00
Rémi Verschelde
b024602660
Merge pull request #57725 from jmb462/missing-sname-theme-setters
2022-02-07 11:46:25 +01:00
Rémi Verschelde
ec00283f91
ResourceImporter: Restore default append logic for new importers
...
This was changed in #56943 to allow adding new importers from plugins that
take precedence over built-in ones, but this should be opt-in, not the default
behavior.
Fixes #57730 .
2022-02-07 09:47:16 +01:00
Yuri Roubinsky
a6e280c5de
Add some more fixes to visual shader
2022-02-07 11:28:42 +03:00
Rémi Verschelde
c2a540de51
Merge pull request #57732 from KoBeWi/leftplication
...
Move Replication tab to a fixed position
2022-02-07 08:14:30 +01:00
kobewi
ee3b7bc747
Move Replication tab to a fixed position
2022-02-07 01:06:55 +01:00
kleonc
803ac608a6
SpriteFramesEditor Fix crash when selecting non-Texture2D file for splitting
2022-02-06 23:39:04 +01:00
jmb462
a988fad9a0
Add missing SNAME macro optimization to all theme methods call
2022-02-06 23:06:11 +01:00
Rémi Verschelde
9cf6e5113b
Merge pull request #57716 from Chaosus/vs_vector_3d
...
Rename `PORT_TYPE_VECTOR` to `PORT_TYPE_VECTOR_3D` in visual shaders
2022-02-06 21:24:47 +01:00
Yuri Roubinsky
db18faf660
Rename PORT_TYPE_VECTOR
to PORT_TYPE_VECTOR_3D
2022-02-06 20:15:28 +03:00
Rémi Verschelde
95719930a8
Merge pull request #57672 from fire-forge/fix-image-drop-nodes
2022-02-06 18:11:12 +01:00
Fabio Alessandrelli
6583797305
[Debugger] Move servers-related behaviours to ServersDebugger.
...
Forcing draw during debug break is now handled by ServersDebugger, and
only happens when the proper message is sent from the EditorDebugger
("servers:draw").
In a similar way, briging the window in foreground is now also handled
by ServersDebugger upon receiving "servers:foreground" which is sent by
the EditorDebugger when resuming from a break ("continue").
2022-02-06 17:36:48 +01:00
Fabio Alessandrelli
87f4bbd668
[Debugger] Move most profilers to ServersDebugger.
...
Also splits bandwidth/rpc profiler (RPCProfiler is now in
SceneDebugger).
2022-02-06 17:36:48 +01:00
Rémi Verschelde
79a4d782a5
Merge pull request #57709 from jmb462/missing-sname-optimization
2022-02-06 17:03:11 +01:00
Rémi Verschelde
fb6cf1e3b7
Merge pull request #57689 from NeilKleistGao/master
2022-02-06 16:39:42 +01:00
jmb462
1ce81dc5f2
Add missing SNAME macro optimization in some function calls
2022-02-06 15:54:04 +01:00
NeilKleistGao
729c1f056b
Edit font properties on multiple objects at once
2022-02-06 18:32:55 +08:00