Commit graph

7005 commits

Author SHA1 Message Date
Rémi Verschelde
74b698b817
Merge pull request #58135 from timothyqiu/shortcut-zoom-mouse-pos-3.x 2022-02-23 13:26:21 +01:00
lawnjelly
e3f84916de Fix GIProbe gizmo out of bounds crash
The GIProbe gizmo was writing values in 3 dimensions to Vector2s. This error was previously being masked by the Vector2 accessor, but now results in a crash or ERR_FAIL message.

This PR removes the Vector2s as they were unused.
2022-02-22 17:37:31 +00:00
Rémi Verschelde
4e44a15176
Merge pull request #58386 from KoBeWi/fix3bility 2022-02-21 12:33:28 +01:00
kobewi
fdded6b44d Fix 2D instance drop position
(cherry picked from commit 3a9fb3aff0)
2022-02-21 11:14:54 +01:00
kobewi
642591b6a9 Fix CanvasItem visibility propagation 2022-02-21 11:11:03 +01:00
Rémi Verschelde
6071d78ba1
Merge pull request #57165 from winterpixelgames/3.x-allow-disable-alpha-trim-texture-atlas 2022-02-20 12:43:58 +01:00
Jason Knight
177041b968 Allow disabling the alpha trim on texture atlas creation.
Default to true
2022-02-19 14:01:30 -06:00
Ricardo Subtil
60f9c0fb42 Fix decompression functions not returning errcodes
(cherry picked from commit 61790a03f5)
2022-02-19 15:50:38 +01:00
Hugo Locurcio
92e6c2a33d Use versioned URL for "Online Documentation" buttons in the editor
This also avoids a redirect, making the page appear to load faster.

(cherry picked from commit 958912a33f)
2022-02-19 15:49:26 +01:00
Rémi Verschelde
e2287a201a
Merge pull request #58253 from mbrlabs/deselect-3x 2022-02-17 20:32:38 +01:00
Rémi Verschelde
453dc482e2
Merge pull request #58252 from mbrlabs/region-select-3x 2022-02-17 20:32:25 +01:00
Hugo Locurcio
3b25190494
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-17 20:13:28 +01:00
Marcus Brummer
d9c99f64c1 Improved region-select in the 3D editor viewport
Enable region-select when dragging the mouse. Previously this was only possible when the mouse was not over a mesh.
2022-02-17 19:49:39 +01:00
Marcus Brummer
67b879edbd Deselect nodes in the 3D editor when pressing ESC 2022-02-17 19:43:35 +01:00
Yuri Sizov
df13466139 Add type variations to Theme 2022-02-17 15:24:10 +03:00
Haoyu Qiu
d09a023339
Translate link titles in classref XML
(cherry picked from commit 7d05a066e3)
2022-02-17 09:59:28 +01:00
Rémi Verschelde
cb7c2db4e4
Merge pull request #58188 from timothyqiu/type-icons
[3.x] Backport editor type icons
2022-02-17 09:17:30 +01:00
Yuri Sizov
a91a24f822 Don't translate numbers in VersionControlEditorPlugin 2022-02-16 19:53:27 +03:00
Haoyu Qiu
5688ca688c Backport editor type icons
Co-authored-by: FireForge <isaacr.7.2005@gmail.com>
2022-02-16 23:36:51 +08:00
Rémi Verschelde
9f09251027
i18n: Sync editor translations with Weblate
Minor proofreading of new OSX export strings.
2022-02-16 09:55:45 +01:00
Rémi Verschelde
6235bd2a78
Merge pull request #58005 from akien-mga/3.x-cherrypicks 2022-02-15 14:53:49 +01:00
jmb462
8b49a62745 [3.x] Fix AnimationTrack mouse wheel zooming at low zoom level 2022-02-15 13:48:57 +01:00
Jean-Michel Bernard
9b7147157d
Hide Polygon2D lines and handles when node is not visible in tree.
(cherry picked from commit b0ebbd8ece)
2022-02-15 12:23:46 +01:00
Jean-Michel Bernard
cb885e97c5
Hide CollisionShape2D handles when node is not visible in tree.
(cherry picked from commit ef995b222e)
2022-02-15 12:23:45 +01:00
Haoyu Qiu
a25137c48e Utilize mouse position when zooming with shortcuts in 2D editor 2022-02-15 16:49:00 +08:00
Hugo Locurcio
53b96095eb
Improve completion scroll bar visibility in the script editor (3.x)
This makes the scroll bar bar thicker and more opaque (roughly
matching the editor theme's scroll bar by default).
2022-02-14 14:54:35 +01:00
Haoyu Qiu
aaf29c2d58 Make duplicate animation prompt for new name 2022-02-14 14:48:34 +08:00
Rémi Verschelde
7a16bb2ee4
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.

(cherry picked from commit 1bdb82c64e)
2022-02-11 09:50:59 +01:00
Haoyu Qiu
e5fd6a5086
Don't display empty Class Properties in feature profile
(cherry picked from commit d9d12cd352)
2022-02-11 09:50:59 +01:00
Haoyu Qiu
8231303dec Backport FlowContainer 2022-02-11 14:48:40 +08:00
Rémi Verschelde
c7f09c1318
Merge pull request #57900 from timothyqiu/canvas-layer-visible 2022-02-10 22:48:05 +01:00
Rémi Verschelde
77196d4c43
Merge pull request #57903 from aaronfranke/3.x-canvas-editor-scale 2022-02-10 22:24:38 +01:00
Haoyu Qiu
f49ffe4bb0 Backport CanvasLayer visibility 2022-02-11 01:00:35 +08:00
Rémi Verschelde
f50c7f7415
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.

(cherry picked from commit 90162851a7)
2022-02-10 13:06:56 +01:00
Aaron Franke
a672f0db17
[3.x] Fix CanvasItemEditor scale editor not using the editor methods 2022-02-10 04:04:53 -06:00
lawnjelly
f0af29346b ProjectSettings add dirty flag and project_settings_changed signal
Most frames there will be no change in project settings, and it makes no sense to read settings every frame in case of changes, as a large number of string compares are involved.

This PR adds a signal to ProjectSettings that can be subscribed to in order to keep local settings up to date with ProjectSettings.

In addition a function `ProjectSettings::has_changes()` is provided for objects outside the signal system (e.g. Rasterizers).
2022-02-09 11:20:25 +00:00
Rémi Verschelde
a47a71b87e
Merge pull request #57093 from Calinou/editor-help-references-use-code-font-3.x 2022-02-08 18:44:55 +01:00
Rémi Verschelde
7dc00ddae8
Merge pull request #57041 from fire-forge/fix-create-root-node-scrolling-3.x 2022-02-08 13:17:55 +01:00
Rémi Verschelde
8acdd0502d
Merge pull request #57737 from winterpixelgames/faster-script-class-get-parent 2022-02-07 18:28:36 +01:00
Jason Knight
6f7cef601a Use ScriptServer::get_global_class_base instead of script_class_get_base in script_class_is_parent. 2022-02-07 07:36:59 -06:00
kleonc
87b4db9e63 SpriteFramesEditor Fix crash when selecting non-Texture file for splitting 2022-02-06 23:39:26 +01:00
Rémi Verschelde
689f59dca0
Merge pull request #53463 from lawnjelly/vital_redraws
Add editor vital redraws only option
2022-02-04 21:42:49 +01:00
Haoyu Qiu
aeb9925615 Revert "Fix ViewportPreview upside-down in 3.x."
This reverts commit 1426df66a8.
2022-02-04 13:54:47 +08:00
Rémi Verschelde
80306cc88a
EditorProperty: Fix range hint parsing with optional step
This could lead to have a step of 0 when parsing e.g. "1,10,is_greater".
2022-02-03 12:33:37 +01:00
lawnjelly
a0c6d16c90 Add editor vital redraws only option
When editor continuous redraws is switched off, the editor only redraws when a redraw_request was issued by an element in the scene. This works well in most situations, but when scenes have dynamic content they will continuously issue redraw_requests.

This can be fine on high power desktops but can be an annoyance on lower power machines.

This PR splits redraw requests into high and low priority requests, defaulting to high priority. Requests due to e.g. shaders using TIME are assigned low priority.

An extra editor setting is used to record the user preference and an extra option is added to the editor spinner menu, to allow the user to select between 3 modes:

* Continuous
* Update all changes
* Update vital changes
2022-02-02 11:26:45 +00:00
Rémi Verschelde
b6dbff7621
Merge pull request #57361 from lawnjelly/occ_poly_only 2022-02-01 14:04:24 +01:00
lawnjelly
8ea20f5fdd Add OccluderShapePolygon
Add OccluderShapePolygon, glue to Occluder and gizmos etc.
2022-02-01 11:31:06 +00:00
Ryan Roden-Corrent
0a77d2d850
Merge create_physical_skeleton undo entries.
Pressing `ctrl+z` after clicking "Create Physical Skeleton" will now
undo the creation of all physical bones by that operation.

Previously undo would remove one bone at a time.

Fixes https://github.com/godotengine/godot/issues/55351.

(cherry picked from commit c9cce53983)
2022-01-31 22:54:23 +01:00
Rémi Verschelde
b18a7f5220
Merge pull request #57030 from timothyqiu/disable-script-editor-menu-3.x
[3.x] Disable ScriptEditor's menu items when they do nothing
2022-01-26 08:06:05 +01:00
Haoyu Qiu
7a7eab06f8
Fix crash after renaming an animation node
(cherry picked from commit 5ea4a8b421)
2022-01-25 18:55:51 +01:00