Commit Graph

476 Commits

Author SHA1 Message Date
ce58de4e2e Added an option to automatically reload or save instead of asking what to do after a file changed outside the editor. 2022-10-04 17:59:33 +02:00
f30076a9f5 Ported: Disable menus and functionality that are not relevant on the Android Editor port - m4gr3d
1f23bac645
2022-09-17 17:36:35 +02:00
6b9e851e5c Ported: Fix issue causing the project manager to crash because of missing path argument
In the process, the initialization logic is updated to show an error message and gracefully close the engine when setup errors occur.
- m4gr3d
4be7c91cd9
2022-09-17 17:27:50 +02:00
7268ef04f7 Ported: Enable long press, pan and scale gestures for the Godot Android Editor
Fix the bug causing the editor to crash when running the project.
- m4gr3d
63df48a59c
2022-09-17 17:01:46 +02:00
d39fb5c4ad Fix compile. 2022-09-17 00:03:47 +02:00
Micky
06202f66b9 Fix tool script button color overriding custom type color
Also adds a small note on the tooltip noting the custom type.

(cherry picked from commit 65cc721eb94ee67315bacc9caadb0d36ff221b13)
2022-09-17 00:01:33 +02:00
Abhinav Chennubhotla
cbdc659738 Fix code folding icon color not matching defined color
Cherrypick of #58457 in master

Caused by reusing icons from the main editor in the code editor. These
icons were converted based on the main editor theme and not the code
editor theme.

    - Create new icons for use specifically in the code editor
    - Add these icons to the exceptions when converting dark theme icons
    to light theme automatically
    - Change the default value of the code folding color to match previous
    color
    - Code folding icon is now pure white by default to correctly match
    the color defined in settings
2022-09-16 23:38:34 +02:00
lawnjelly
41cc0cd554 Fix RayCast2DEditor uninitialized value
node was previously read before being set. Found by Valgrind.
2022-09-16 23:35:04 +02:00
lawnjelly
95dddc0e9e FindBar fix uninitialized results_count
Found by Valgrind.
2022-09-16 23:31:04 +02:00
Fredia Huya-Kouadio
58e935b746 Disable logic that triggers automatic focus gain as the Godot Editor is loaded
For the Godot Android Editor, this is an inconvenience as it causes the soft keyboard to show and block half of the view
2022-09-16 23:28:31 +02:00
Micky
7f3a0cbd0a Modify newlines in Editor Spin Slider tooltip
Makes both key suggestions easier to read.

(cherry picked from commit a2ba189fef5d7e8b0278c8de3802fb925097befa)
2022-09-16 23:16:49 +02:00
ad17c39ad4 Fix compile. 2022-09-16 23:06:25 +02:00
Micky
4487e18750 Mark Script button if it's tool in Scene Tree Editor
Also adds a note on the tooltip if the Script is tool.

The color is the same one used on the Script Editor's script list.

(cherry picked from commit ad5ff9f78fe0bab4572085803f224026273fd4aa)
2022-09-16 23:04:00 +02:00
kobewi
65e1217d59 Allow to change the Stop shortcut used at runtime
(cherry picked from commit 409613ba7ba50e6cc985c61f6dcc482bac68746e)
2022-09-16 22:59:29 +02:00
Atlinx
8e7bcc2ee0 Add missing parameters for signal in docs
(cherry picked from commit 0e3097c023fa4562d44fa102bd2ef8e456f8901a)
2022-09-16 22:39:23 +02:00
Kongfa Waroros
1f3b5fde4e Update all AnimationTree's editors when editing
(cherry picked from commit 0f17fe642c8ec21b7877cd3f6911f22ba0874255)
2022-09-16 22:35:12 +02:00
Yuri Sizov
211cd1e46a Remove Inspector tooltip hack that never actually worked 2022-09-16 21:57:00 +02:00
dec36df719 Fix compile. 2022-09-16 21:55:48 +02:00
Hugo Locurcio
34cda4b11b Add a [kbd] tag for highlighting keyboard shortcuts in the editor help
This allows backporting documentation from the `master` branch more easily,
as it already features the `[kbd]` tag.

Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com>
2022-09-16 21:49:06 +02:00
Hugo Locurcio
ddba4438ae Remove unused Create Signal Callbacks editor setting
This setting wasn't referred to anywhere.
2022-09-16 21:46:58 +02:00
reduz
95f8c781e1 Simplify Subresource Saving
Redo edited subresource (and resource) saving in a much more simplified way.
I think this should work (unless I am missing something) and be faster than what is there.
It should also supersede #55885.

I am not 100% entirely convinced that this approach works, but I think it should so please test.

(cherry picked from commit 9eb5f2a0d79fb761235e77d369ee2f38fceb094a)
2022-09-16 21:23:31 +02:00
Jummit
059d393d42 Keep Perspective menu open on selection
Makes the Perspective menu consistent with the View menu in the 3D
viewport. This allows for quicker inspection of the scene, and makes
missclicks more forgiving.

(cherry picked from commit e3ab344af9839bbe1ffa690093acd9ea7ffde554)
2022-09-16 21:19:38 +02:00
Hugo Locurcio
73588d4a25 Add support for documenting most editor settings in the class reference
Settings defined in editor plugins are missing (about 100 of them),
but all other settings (about 200 of them) can now be documented in the
EditorSettings class.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
(cherry picked from commit 63ce655e75e9d46c8b588ff258c3f50d5290c553)
2022-09-16 21:16:40 +02:00
Aaron Franke
a7d1445c9c Allow exporting PCK files without export templates installed
(cherry picked from commit 8d81ce9561748b9a231af70323ddffd288e189ab)
2022-09-16 19:49:35 +02:00
eecd2b11df Fix build. 2022-09-16 12:27:55 +02:00
8265045030 Ported: SceneTreeDock Toggling unique name in owner for all selected nodes - kleonc
6417b999ee
2022-09-16 12:16:37 +02:00
b886d14cf5 Added _3d postfix to the end of the World3D related getters and setters in Viewport. 2022-08-29 17:54:41 +02:00
24a1580dbf Renamed the files aswell. 2022-08-29 17:33:10 +02:00
e4ae7f2ebc Renamed Environment to Environment3D, and WorldEnvironment to WorldEnvironment3D. 2022-08-29 17:21:40 +02:00
2aee6ab0bb Renamed World to World3D. 2022-08-29 16:49:00 +02:00
94cbc5708d Fix include. 2022-08-28 16:51:24 +02:00
e558e0f700 Fix build when the new skeleton 3d module is disabled. 2022-08-28 16:01:50 +02:00
dc28777321 Moved Skeleton and it's related classes to a module. 2022-08-28 15:46:12 +02:00
b9f3d3b26a Moved Skeleton2D and it's related classes into a module. 2022-08-28 13:57:25 +02:00
bfc1679f14 Actually register EditorInterface, SpatialEditor, CanvasItemEditor, and WebNodeEditor as globals. 2022-08-23 13:21:09 +02:00
8d4e878ff6 Don't treat a hidden main button as an indicator that their editor plugin is disabled. This behavior was used to be a part of editor feature profiles, which I removed a long time ago. 2022-08-20 19:36:33 +02:00
98acdf8270 Now full screen editor plugins have the ability to hide their tab button in the top bar. 2022-08-20 17:20:34 +02:00
7e7126f2b0 Reorganized classes in editor_node.h so the public methods are at the top. 2022-08-20 16:52:17 +02:00
31ffaa1f9a New icon for Projection. 2022-08-20 02:51:15 +02:00
bafd6d1d8d Renamed AFTER_GUI_INPUT_DESELECT to AFTER_GUI_INPUT_NO_DESELECT. 2022-08-20 01:01:18 +02:00
e2d42db711 Also renamed the files. 2022-08-19 21:24:36 +02:00
cffe742085 Renamed the VisualServer to RenderringServer like in Godot4, as I think it's a lot better name for it. I did not yet rename the files. 2022-08-19 20:50:20 +02:00
1cab11a1c1 Removed tool mode external support from the spatial editor. 2022-08-19 14:53:18 +02:00
dfe183d3e0 Ported: Use FlowContainer to handle toolbar overflow more gracefully - YuriSizov
842c3a644f
2022-08-19 14:46:00 +02:00
56f71c7275 Ported: Refactor the export checking logic to improve separation of concerns - m4gr3d
d2213f76a9
2022-08-19 12:08:35 +02:00
0438da9841 Ported: [3.x] Add ShapeCast and ShapeCast2D nodes - PrecisionRender
47a62e28ac
2022-08-19 03:12:32 +02:00
0cbc01144d Now custom file creation entries can be added to the editor's FilesystemDock. 2022-08-18 21:33:55 +02:00
521934ff55 Ported from Godot4: New and improved IK system for Skeleton2D
This PR and commit adds a new IK system for 2D with the Skeleton2D node
that adds several new IK solvers, a way to control bones in a Skeleton2D
node similar to that in Skeleton3D. It also adds additional changes
and functionality.
This work was sponsored by GSoC 2020 and TwistedTwigleg.
Full list of changes:
* Adds a SkeletonModifier2D resource
  * This resource is the base where all IK code is written and executed
  * Has a function for clamping angles, since it is so commonly used
  * Modifiers are unique when duplicated so it works with instancing
* Adds a SkeletonModifierStack2D resource
  * This resource manages a series of SkeletonModification2Ds
  * This is what the Skeleton2D directly interfaces with to make IK possible
* Adds SkeletonModifier2D resources for LookAt, CCDIK, FABRIK, Jiggle, and TwoBoneIK
  * Each modification is in its own file
  * There is also a SkeletonModifier2D resource that acts as a stack for using multiple stacks together
* Adds a PhysicalBone2D node
  * Works similar to the PhysicalBone3D node, but uses a RigidBody2D node
* Changes to Skeleton2D listed below:
  * Skeleton2D now holds a single SkeletonModificationStack2D for IK
  * Skeleton2D now has a local_pose_override, which overrides the Bone2D position similar to how the overrides work in Skeleton3D
* Changes to Bone2D listed below:
  * The default_length property has been changed to length. Length is the length of the bone to its child bone node
  * New bone_angle property, which is the angle the bone has to its first child bone node
  * Bone2D caches its transform when not modified by IK for IK interpolation purposes
  * Bone2D draws its own editor gizmo, though this is stated to change in the future
* Changes to CanvasItemEditor listed below:
  * Bone2D gizmo drawing code removed
  * The 2D IK code is removed. Now Bone2D is the only bone system for 2D
* Transform2D now has a looking_at function for rotating to face a position
* Two new node notifications: NOTIFICATION_EDITOR_PRE_SAVE and NOTIFICATION_EDITOR_POST_SAVE
  * These notifications only are called in the editor right before and after saving a scene
  * Needed for not saving the IK position when executing IK in the editor
* Documentation for all the changes listed above.
- TwistedTwigleg
8aa3c2f091
2022-08-18 18:47:30 +02:00
4c4e19223e Added _theme_ infix to the theme helper methods in Control. 2022-08-17 20:57:16 +02:00
9757c39f05 Moved a few more core classes. 2022-08-17 17:43:49 +02:00
99e94b08c4 Moved base input related classes to core/input. 2022-08-17 17:02:24 +02:00
686663d3e4 Moved around more classes in core. 2022-08-17 16:01:01 +02:00
04feb63860 Moved Engine and projectSettings. 2022-08-17 15:35:28 +02:00
be16fe23ad Moved the error macros. 2022-08-17 15:14:19 +02:00
220b2db443 Moved String and related classes under a string folder in core. 2022-08-17 14:19:55 +02:00
dc9cc716c7 Moved Object related classes under core/object. 2022-08-17 13:45:14 +02:00
9555ee56b9 Moved Variant related classes under a variant folder in core. 2022-08-17 13:17:12 +02:00
388b88678e Moved container related classes in core under a new containers directory. 2022-08-17 12:53:49 +02:00
0d2fc2e9f2 Moved color to core/math. 2022-08-17 11:38:15 +02:00
9e1588160f Now all Variant math types are structs. 2022-08-16 22:09:26 +02:00
e71e3ed897 Now Vector4, Vector4i, Projection, PoolVector4Array, PoolVector4iArray, are built in variant types. Also reordered the Variant's Type enum, renamed _RID in it to RID, fixed a few smaller issues and removed some very old compat code. 2022-08-16 21:55:56 +02:00
8c2e76840c Removed CameraMatrix, and switched to Projection. 2022-08-16 10:26:35 +02:00
220954cf08 Backported most of the improvements to String from Godot4. 2022-08-15 22:54:03 +02:00
5cd44e02d0 Backported the improvements to Transform from Godot4. 2022-08-14 20:35:11 +02:00
e4cad690a3 Renamed elements in Transform2D to columns. 2022-08-14 15:37:05 +02:00
d9a8497546 Renamed translate in Transform2D to translate_local. 2022-08-14 14:59:46 +02:00
170a41ca82 Backported improvements to Basis from Godot4. Also bound all eligible methods. 2022-08-14 00:18:21 +02:00
d9e094ab9a Renamed elements in Basis to rows. 2022-08-13 19:07:59 +02:00
730bce8587 Renamed Quat to Quaternion for consistency with the other engine math classes. 2022-08-13 15:22:33 +02:00
f423b30714 Backported from Godot4: Fix secondary handles in editor gizmos
Primary and secondary handles are no longer differentiated by their ids, so a bool was added to tell them apart in all the handle-related methods.
Includes a minor fix in CollisionPolygon3DEditor, unrelated to editor gizmos.
- JFonS
5ebea2d120
2022-08-12 22:21:00 +02:00
e3918692a3 Backported from Godot 4: Fixed animation insertion in SkeletonEditor - TokageItLab
653e2a550c
2022-08-12 01:34:45 +02:00
2bc7355910 Ported from Godot4: Fixes to editor subgizmos
* Fixed subgizmo editing on scaled nodes.
* Added more clarifications on the coordinate space of subgizmos.
* Given input priority to the transform gizmo over subgizmo selection.
- JFonS
d7b58ebc9c
2022-08-12 00:43:53 +02:00
4b939998a7 Removed AnimationTreePlayer, as it was deprecated (and also practically unusable). 2022-08-11 23:01:27 +02:00
92600420ba Backported from Godot4: Implemented SkeletonEditorGizmo.
-TokageItLab, lyuma
f2e9867e9f
- It still has some issues, as this one works differently than the 3.x version, they will be fixed later.
2022-08-11 17:31:02 +02:00
aebf3ecc9d Ported some missing changes. 2022-08-11 11:20:37 +02:00
b6eb2db442 Backported returning AfterGUIInput from forward_spatial_gui_input from Godot4. Also removed the first index parameter. This fully broke the skeleton editor, it will be fixed soon. 2022-08-11 02:24:30 +02:00
061bdd1f2e Fix shadowed declaration. 2022-08-11 01:33:57 +02:00
e3e39a1b2a Now EditorNode3DGizmo::add_mesh accepts a Mesh instead of an ArrayMesh. 2022-08-11 01:30:54 +02:00
58539a22b6 Backported from Godot4: Node3D gizmo improvements
* Clean-up of node_3d_editor_plugin.{h,cpp}: removed unused code, fixed some bugs.
* Moved node_3d_editor_gizmos.{h,cpp} to editor/plugins.
* Added support for multiple gizmos per node. This means custom gizmos will no longer override the built-in ones and that multiple gizmos can be used in more complex nodes.
* Added support for handle IDs. When adding handles to a gizmo, an ID can be specified for each one, making it easier to work with gizmos that have a variable number of handles.
* Added support for subgizmos, selectable elements that can be transformed without needing a node of their own. By overriding _subgizmo_intersect_frustum() and/or _subgizmo_intersect_ray() gizmos can define which subgizmos should be selected on a region or click selection. Subgizmo transformations are applied using get/set/commit virtual methods, similar to how handles work.
- JFonS
cfb555a081
- Note: MeshDataResourceEditor is now kind of painful to use, it will be fixed a bit later.
2022-08-11 01:24:29 +02:00
ed5024d3c3 Moved AnimationPlayerEditor::singleton to private, and added getter method for it. 2022-08-10 18:53:15 +02:00
7e451e0f30 Removed the built in SkeletonSpatialGizmoPlugin. (The skeleton editor module used to remove it anyway.) 2022-08-10 14:44:15 +02:00
22ce231a4e Backported from Godot 4: New and improved IK system for Skeleton3D
This PR and commit adds a new IK system for 3D with the Skeleton3D node
that adds several new IK solvers, as well as additional changes and functionality
for making bone manipulation in Godot easier.
This work was sponsored by GSoC 2020 and TwistedTwigleg
Full list of changes:
* Adds a SkeletonModification3D resource
  * This resource is the base where all IK code is written and executed
* Adds a SkeletonModificationStack3D resource
  * This node oversees the execution of the modifications and acts as a bridge of sorts for the modifications to the Skeleton3D node
* Adds SkeletonModification3D resources for LookAt, CCDIK, FABRIK, Jiggle, and TwoBoneIK
  * Each modification is in it's own file
* Several changes to Skeletons, listed below:
  * Added local_pose_override, which acts just like global_pose_override but keeps bone-child relationships intract
    * So if you move a bone using local_pose_override, all of the bones that are children will also be moved. This is different than global_pose_override, which only affects the individual bone
  * Internally bones keep track of their children. This removes the need of a processing list, makes it possible to update just a few select bones at a time, and makes it easier to traverse down the bone chain
  * Additional functions added for converting from world transform to global poses, global poses to local poses, and all the same changes but backwards (local to global, global to world). This makes it much easier to work with bone transforms without needing to think too much about how to convert them.
  * New signal added, bone_pose_changed, that can be used to tell if a specific bone changed its transform. Needed for BoneAttachment3D
  * Added functions for getting the forward position of a bone
* BoneAttachment3D node refactored heavily
  * BoneAttachment3D node is now completely standalone in its functionality.
    * This makes the code easier and less interconnected, as well as allowing them to function properly without being direct children of Skeleton3D nodes
  * BoneAttachment3D now can be set either using the index or the bone name.
  * BoneAttachment3D nodes can now set the bone transform instead of just following it. This is disabled by default for compatibility
  * BoneAttachment3D now shows a warning when not configured correctly
* Added rotate_to_align function in Basis
* Added class reference documentation for all changes
- TwistedTwigleg
5ffed49907
Note: It still needs some work.
2022-08-10 01:01:38 +02:00
a478334d4a Backported from Godot master: Made low level changes to the Skeleton3D class and Skeleton3D inspector. Changes listed below:
* Added helper functions to Skeleton3D for converting transforms from bone space to global space, and vice versa.
* Updated the Skeleton3D class reference.
* Changed the icon used for bones in the Skeleton3D inspector to use BoneAttachement3D's icon.
* Changed the Skeleton3D inspector to use EditorPropertyTransform and EditorPropertyVector3 when possible.
* Placed the Transform/Matrix for each bone in a sub-section, so it is visually similar to the Node3D inspector.
- TwistedTwigleg
24905becb2
- Also fixed smaller issues.
2022-08-09 21:57:46 +02:00
6d293dc7a3 Removed Transform type track from the Animation. This leaves a few things, like the skeleton editor broken, it will be fixed soon. 2022-08-09 17:40:42 +02:00
8fd473f685 Backported: "Remove animation 3D transform track, replace by loc/rot/scale tracks" from Godot4.
ec19ed3723
Its a bit broken right now, more patches need to be ported. Also I kept the Transform track for now, and I did not touch the gltf module yet.
2022-08-08 23:49:18 +02:00
42607ee8ca Lots of work on GLTFDocument. 2022-08-08 02:53:46 +02:00
53f274de2f Ported: AnimatedSprite Fix updating inspector when SpriteFrames is modified - kleonc
8ae246f15e
2022-08-07 16:20:57 +02:00
4204828965 Ported: Improve some export error messages. - bruvzg
e0101e511c
2022-08-02 18:01:58 +02:00
c4e7bc1c45 Reused the old unused PROPERTY_HINT_SPRITE_FRAMES as PROPERTY_HINT_BUTTON. It allows you to add buttons to the inspectors. 2022-07-31 00:01:58 +02:00
Pedro J. Estébanez
285c2acefc Keep crash handler status on editor restart
(cherry picked from commit 116f03a1b68ecc59f9755cd0219e256c63955f55)
2022-07-29 23:49:10 +02:00
Hugo Locurcio
ed1a3f632f Require ScriptInstance to be valid in the editor debugger
This fixes an issue with visual scripts spamming error messages
in the editor when running the project with the remote scene tree
visible.

(cherry picked from commit 829c8247559a21d0b6f540e4a548d935c3a24643)
2022-07-29 23:20:46 +02:00
Alfred R. Baudisch
3354642b33 Script Editor: Don't switch to 2D/3D viewports when selecting nodes
Selecting nodes in the Scene dock automatically switches to the relevant 2D
or 3D viewport. This behavior can be annoying while using the Script Editor
and wanting to inspect node properties, so it's now disabled by default when
the Script Editor is active.

This new behavior can be changed back to the previous auto-switching using
the `text_editor/navigation/stay_in_script_editor_on_node_selected` editor
setting.

(cherry picked from commit c4433c37932aca14b45e76a0b3498561532a0055)
2022-07-29 23:20:27 +02:00
9596474a36 Ported: [Command line export] return 0 exit code when export is finished with warnings. - bruvzg
d6698c1f81
2022-07-29 23:01:04 +02:00
45a1c98332 Ported: SpriteFramesEditor Add animation searchbox - kleonc
728a725b7b
2022-07-29 22:45:57 +02:00
Nathan Franke
56779597de dependency editor: set current directory to closest existing directory
(cherry picked from commit 905c43119133ab244d81c06e3e2d14d32dea1e91)
2022-07-29 22:38:17 +02:00
kobewi
7b02b1df64 Fix node dragging not working when dock is moved
(cherry picked from commit b42bbca2666bb0b52156b8b396af54a1429c7077)
2022-07-29 22:35:27 +02:00
Haoyu Qiu
a7b0364908 Fix heap-use-after-free when closing a scene with its builtin script open
(cherry picked from commit 61bc7d65768ebe4baa9b2f888d656cce5109dd5b)
2022-07-29 19:59:39 +02:00
Thakee Nathees
cb93141c27 Fix FileDialog file name autocompletion with filters
Fixes #38195.

(cherry picked from commit 446f1b70522d86b9afe93b6543028cbab60ffb61)
2022-07-29 19:58:34 +02:00
Haoyu Qiu
0ed75059cc Update TextureRegion editor when NinePatchRect/StyleBoxTexture changes
Updates the editor when the region rect or margins change.
2022-07-29 19:57:55 +02:00
d480073228 Ported: Use % when dropping unique scene nodes into script
This expands uppon #60708, using `get_node("%NodeName")` for nodes that
have a unique scene name to avoid having to change the onready
statements when the paths of the nodes change.
- Jummit
63f35d24c6
2022-07-29 19:36:33 +02:00
Sosasees
7eca7de502 recolor FlowContainer icons to the same color as Control icon according to the discussion in issue #62553, the FlowContainer icons don't get color-adjusted for Light theme and it's because the color code is off.
to fix this issue, i recolored them to be the same icon as the Control icon,
an icon that i already know Does get recolored for Light theme.
2022-07-29 16:48:55 +02:00
Sosasees
ac81f33921 recolor Remove Theme Items icons from Godot 4 colors to Godot 3 follow-up to #62559. we found more icons that mistakenly had the Godot 4 colors, so i fixed them too. 2022-07-29 16:33:24 +02:00
648b9fce40 Ported: Add an option to drag'n'drop selected text in TextEdit - ConteZero
a13b3028a2
2022-07-29 16:29:53 +02:00
Haoyu Qiu
dea38c63e2 Fix prompt dialog title for Animation operations 2022-07-29 11:10:38 +02:00
Hugo Locurcio
55a9d5bc55 Tweak editor icons for navigation nodes and SkeletonIK
Co-authored-by: Haoyu Qiu <timothyqiu32@gmail.com>
2022-07-29 11:04:26 +02:00
cow-neaz
d25bae8559 Stop game on reloading project
(cherry picked from commit 8935cf17cf674b0cb027e5c82a21a64d3a43feb1)
2022-07-29 11:01:55 +02:00
8ca3043a28 Ported: ProjectSettings: Ensure 'editor/' settings aren't nested
Having a mix of settings with and without subcategory makes the 'Editor'
section stand out with a weird UX, as instead of simply being a foldable
section like the others, it also holds its own top-level settings and is
therefore selectable.
This wasn't the case in 3.4, and is fixed in 4.0 by refactoring, so for
3.5 we should preserve the 3.4 UX, even if it's not the best.
- akien-mga
acd4a01b8c
2022-07-29 10:45:12 +02:00
Haoyu Qiu
36afe803a9 Fix EditorFileDialog filename default selection 2022-07-29 10:37:28 +02:00
FireForge
0609c362bc Allow folding in sub-inspectors in Array and Dictionary editors
(cherry picked from commit 4e469886e803793c9c2dc7d402da8e9cf98343f9)
2022-07-29 09:07:24 +02:00
kobewi
8a60933e6d Fix NodePath property dragging 2022-07-29 09:03:29 +02:00
bb5acfd745 Ported: [3.5] Update NavigationServer backport
Backports features and bugfixes from current Godot 4.0 to 3.5 and brings functions and codebase of both version largely in sync to make tutorials more compatible and future backports easier.
- smix8
8bd7c6188b
2022-07-28 22:34:28 +02:00
152f9728b0 Ported: [Windows, 3.x] Add support for handling network share paths. - bruvzg
11a7997a67
2022-07-28 19:33:43 +02:00
Hugo Locurcio
309d538703 Print messages when textures are detected as used in 3D/normal map
This detection automatically changes some import options, so it's
important that users are aware of this.
2022-07-28 19:22:55 +02:00
Haoyu Qiu
52d0f7eef9 Fix scene tree dock focus after using "Add Child Node" button 2022-07-28 19:05:03 +02:00
Hugo Locurcio
3268544299 Rename "Convert to Mesh2D" to "Convert to MeshInstance2D" in the editor
These actions create MeshInstance2D nodes, not Mesh2D resources.
2022-07-28 19:04:16 +02:00
kobewi
24a7bbc9ea Don't handle pending clicks outside scene tree
(cherry picked from commit ec6bbd486f31245af3764c466431ffc2d13d52ed)
2022-07-28 19:03:25 +02:00
43131ad4cb Ported: Add readable export errors. Add RTL image vertical alignment support. - bruvzg
f5fa1ca944
2022-07-28 18:40:46 +02:00
Haoyu Qiu
ddac7ae8ed Add tooltips to Export dialog icon buttons
(cherry picked from commit f78943b08b4568dc1c7aa85e1d6b351f18f9472c)
2022-07-28 15:16:08 +02:00
Danny Chung
737942ac85 Increase AnimationPlayer position SpinBox to fit more decimals
Fixed UI bug where it appeared that pushing the up or down incrementing
arrows did not increment the SpinBox value appropriately. Just needed
to increase the size of the box horizontally, to display four decimal
points consistently.

(cherry picked from commit 09658f7e3ba7ffc87ae9f90aa42f64dfeeb33f40)
2022-07-28 15:04:58 +02:00
kobewi
f23274bbf2 Properly release LMB even while panning 2022-07-28 15:00:05 +02:00
kobewi
bbf62e97b8 Improve title of DependencyEditorOwners
(cherry picked from commit 847eee71dfb9462df69195e8415a29258994584c)
2022-07-28 14:57:30 +02:00
Johannes Witt
eb1fa27364 Fix EditorSpinSlider mouse reset position on tree exit
(cherry picked from commit 784b1adb188f6003f01201d8cff3dab574c6beab)
2022-07-28 14:56:09 +02:00
Arsh Panesar
a55cfb671b Fixed Populating MultimeshInstance Crash
When populating a MultimeshInstance (node), Godot would set the
new Multimesh's color and custom data format as the current node's
multimesh, which would cause a crash if node's multimesh is null.

Populate Function will now check if node has a multimesh or not, and
set the new multimesh with default (NONE) values if node's multimesh is
null.

Fixes Issue #61553
2022-07-28 13:46:23 +02:00
a8a140af27 Ported: Fix empty space after project sort options - timothyqiu
03e84abfa5
2022-07-28 13:42:15 +02:00
Hugo Locurcio
0f28c94c91 Increase the editor profiler frame history default and maximum limit
The new default value (1800) allows storing 30 seconds of profiling
at 60 FPS.

The new maximum value (10000) allows storing about 3 minutes of
profiling at 60 FPS.

The profiler graph will scale accordingly to the chosen setting,
so the default value is kept relatively low to prevent the graph
from looking too squished on narrow displays.
2022-07-28 11:35:24 +02:00
FireForge
2c0ca59835 Remove extra space in property editors - NodePath, Resource, and multiline string 2022-07-28 11:16:23 +02:00
lawnjelly
fb4c62b273 Fix Occluder Poly gizmo warning spam
The call to draw the handles in the OccluderPoly was spamming errors when the hole has no points. This PR prevents trying to draw the gizmo for the hole when there are no points, which prevents the spam.
2022-07-28 11:11:37 +02:00
132fd3ad10 Ported: Only switch to node when not dragging it - KoBeWi
8f52320310
2022-07-28 10:18:16 +02:00
Hugo Locurcio
0177073d53 Increase saturation of accent color on the Grey editor theme preset
This makes activated icons easier to distinguish from non-activated icons.
2022-07-28 00:01:51 +02:00
d161a30a4b Ported: Backport TextMesh and expose dynamic font vector outlines - bruvzg
d502bd4847
2022-07-28 00:01:20 +02:00
7fd0b29642 Ported: Backport Label3D node implementation and Sprite*3D material render priority. - bruvzg
dc6d8d6098
2022-07-27 23:40:35 +02:00
kleonc
3f7569cb91 EditorPropertyArray Fix crash when drag-reordering elements in the inspector
(cherry picked from commit 33b29704926f623f97402e0cfbf2591a163b8ab6)
2022-07-27 23:13:09 +02:00
e00c158647 Ported: Fix incorrect separators in Scene tree menu - timothyqiu
78ec40e9ff
2022-07-27 23:08:12 +02:00
bruvzg
5b66d10760 Fix incorrect encoding used in _error_handler functions
Co-authored-by: Haoyu Qiu <timothyqiu32@gmail.com>
2022-07-27 23:05:03 +02:00
SnailRhymer
45f12bc8be Fix _class_desc_select to handle Variant.Type
Change the order of checks in _class_desc_select to first try checking current page and GlobalScope before resorting to slicing either side of the first ".". This may change previous search behaviours - previously if both x.y and @GlobalScope.x.y existed, _class_desc_select would select the former; it will now select the latter.

Also tidies up some comments.
2022-07-27 23:03:55 +02:00
Hugo Locurcio
35a813b06c Fix project manager display at small window sizes
- Don't use minimum size for project order/filter controls.
  This also allows the filter field to become longer at large
  window sizes.
- Hide the loading label instead of changing its opacity.
  This causes a reflow during loading, but this is preferable to having
  the UI overflow.
- Hide the language dropdown on Android as it doesn't work correctly.

This allows the project manager to be displayed correctly at much
lower window sizes than previously.
2022-07-27 23:01:46 +02:00
85776387c5 Fix compile. 2022-07-27 20:07:29 +02:00
53f8707713 Ported: Add node list param to GraphEdit::delete_nodes_request signal - Chaosus
32b9818965
2022-07-27 20:01:38 +02:00
Haoyu Qiu
9281e140dd Properly clean button_add_item ref in Dict property editor
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2022-07-27 19:50:29 +02:00
Douglas Leão
92d4c75d57 ResourceImporterWAV: Add support for 64-bit IEEE float 2022-07-27 19:48:12 +02:00
FireForge
cacca31e08 Expose EditorSpinSlider.hide_slider
(cherry picked from commit 8e752b06e8a0f116991a0e618cc47e4fe2f3d270)
2022-07-27 19:11:34 +02:00
Haoyu Qiu
9912a99675 Fix crash when editing pinned StyleBox
(cherry picked from commit 4b013a9c967ecc063801b3d4a0e833dcbc865f83)
2022-07-27 19:07:26 +02:00
kleonc
929216d32a AnimationTrackEditor Fix signal connection on root exiting the tree
(cherry picked from commit 2ede2bac0bb14b96b0d6f65e99d4eeccdc00702b)
2022-07-27 18:29:41 +02:00
FireForge
71d20ea670 Add interpolation modes to Gradient - Linear, Constant, and Cubic interpolation modes - Partial backport of #53321 2022-07-27 18:12:14 +02:00
Red Headphone
7ddeae2e23 fix: no quit confirmation on project reload if files are saved 2022-07-27 17:46:15 +02:00
4964f541e7 Revert afc9407ae0. 2022-07-27 15:43:40 +02:00
c94e099389 Fix compile. 2022-07-27 15:16:45 +02:00
Hugo Locurcio
f7585bea99 Rename profiler "Idle Time" to "Process Time"
References to "idle time" are progressively being replaced by
"process time" throughout the engine to avoid confusion.

This also changes some debug prints to be printed only when verbose
mode is enabled (like in `master`).
2022-07-27 15:08:06 +02:00
Haoyu Qiu
afc9407ae0 Make import defaults inspector honor property style settings 2022-07-27 15:07:38 +02:00
18bb8e671a Ported: [3.x] [Debugger] Add --debug-server CLI option.
Automatically starts the editor debug server at given <IP>:<PORT>.
E.g.:
 # Run editor and debug server listening on any interface, port 8080
godot3 -e --path proj/proj_empty --debug-server *:8080
 # Run the godot project connecting to that debug server.
godot3 --path proj/proj_empty --remote-debug 127.0.0.1:8080
- Faless
225e75daba
2022-07-27 15:07:09 +02:00
kobewi
89b5c84fd1 Cache script icons in editor
(cherry picked from commit 3f50dad460dc2239343e0eb9ba8fb63b8fd20b88)
2022-07-27 15:00:41 +02:00
Haoyu Qiu
957fcb67b1 Load fallback icon for custom class when no icon available
(cherry picked from commit ba90778f1cb670db34e3d51923456e90b29fa1c4)
2022-07-27 14:27:25 +02:00
Hugo Locurcio
263c6ab535 Use physical keys for numpad emulation in the 3D editor
This makes numpad emulation work on non-QWERTY keyboard layouts
more reliably.
2022-07-27 14:17:52 +02:00
Gustav
7126f79cc6 Stop reset of MultiMesh properties on populate
ColorFormat and CustomFormat is not changed when populate is called.
2022-07-27 14:17:19 +02:00
bruvzg
127060d953 Fix export plugins after embedded PCK loading changes. 2022-07-27 14:10:05 +02:00
kleonc
e992e44d75 Fix inspecting nested dictionaries/arrays when debugging 2022-07-27 14:09:44 +02:00
3a4cd703ac Fix compile. 2022-07-27 14:07:52 +02:00
37413614eb Ported: Add an inspector preview for BitMap - fire-forge, timothyqiu
e8d1552af2
2022-07-27 14:04:48 +02:00
FireForge
57bdac4e2b Add a RayCast2D.cast_to editor handle 2022-07-27 14:02:38 +02:00
Haoyu Qiu
1980eeaa36 Fix external link icon black background 2022-07-27 13:07:56 +02:00
b26a1cd3b4 Ported: [3.x] Improve embedded PCK loading and exporting. - bruvzg
bea7c9be5d
2022-07-27 09:33:39 +02:00
9eee70dbb7 Ported: Add an external link editor icon
This replaces the existing "chainlink" instance icon that was
used for external links. That icon is still used for scene instancing.
The icon was designed by redlamp.
Co-authored-by: Taylor Wright <taylor@redlamp.org>
- Calinou
2bc036dad5
2022-07-27 09:02:28 +02:00
FireForge
3f22cc9f3b Fix UndoRedo in Gradient editor
(cherry picked from commit a384031326b96dd1185b7ba33809660ba5551549)
2022-07-27 08:54:15 +02:00
Daniel Kříž
028a39f49b Fix missing favorite files in filesystem dock
(cherry picked from commit cbe363d7161d765577e9babf22a2d6f158b6259a)
2022-07-27 01:25:52 +02:00
Haoyu Qiu
5d03519e6d Make more import preset name translatable 2022-07-27 01:17:35 +02:00
Haoyu Qiu
122a796535 Fix custom class icon when it inherits from a script 2022-07-27 01:17:09 +02:00
74dc60ec5f Fix compile. 2022-07-27 01:05:16 +02:00
d1108dc8bc Ported: Implement Scene Unique Nodes - KoBeWi
e1c74ae83f
2022-07-27 00:45:48 +02:00
Hugo Locurcio
416258cd55 Fix project manager window position when editor scale is above 100%
This backports a fix from `master` to `3.x` (with simplified code).
2022-07-26 15:00:44 +02:00
FireForge
d4d913bd4c Fix EditorProperty text and icon overlap bugs
(cherry picked from commit dbc380af59b28de8243f945c6cb965bee83efadf)
2022-07-26 14:59:48 +02:00
2b6b95db1f Fix compile. 2022-07-26 12:55:53 +02:00
Haoyu Qiu
6191e0f0b8 Add option to paste animation as duplicate
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2022-07-26 12:45:49 +02:00
Haoyu Qiu
0658cad124 Localize unnamed project name in editor window title
(cherry picked from commit 35d087813981d05a699221f6bc7e5c72fc55c665)
2022-07-26 12:36:44 +02:00
Jason Yundt
983eec5521 Improve autoload inheritance error message
Autoloaded scripts should always inherit from Node. When you run a
project that tries to autoload a script which doesn’t inherit from Node,
then Godot gives an error.

Before this change, the error said “Script does not inherit a Node”.
That error message is a little bit misleading. If a class inherits a
Node, then one of its superclasses has a Node. If a class inherits
_from_ Node, then one of its superclasses is Node. This change corrects
that mistake.

Fixes #59884.

(cherry picked from commit 1cc7e7ec33a652647d63cb32fa164eceef87c653)
2022-07-26 12:34:50 +02:00
Haoyu Qiu
5dc677822d Clip animation track keyframe rects
(cherry picked from commit c7e06e2202c97dbd75933fe1b587d668a717c5f2)
2022-07-26 11:51:46 +02:00
9d9a394af6 Ported: Add an explicit way to remove a theme type. - timothyqiu and YuriSizov
f6251724af
2022-07-25 23:46:08 +02:00
48366a8490 Ported: Refactor editor extract.py - timothyqiu
545e2ceb8a
2022-07-25 23:04:53 +02:00
79c193aabb Ported: Improve Select Frames dialog of SpriteFrames editor. - timothyqiu
32488b46a6
2022-07-25 22:25:18 +02:00
15b447d880 Ported: Update the editor display scale based on the device's scaled density - m4gr3d
3ba0508f79
2022-07-25 22:07:34 +02:00
d85caf2c71 Ported:
[3.x] Add option to make selection unique - ConteZero
0ffacff998
2022-07-25 19:46:09 +02:00
9017b5bf26 Ported:
Restore hidden folder behavior for project manager - Ev1lbl0w
5f05cb8696
2022-07-25 19:11:45 +02:00
335d98afcd Ported:
Add missing newlines to the generated default_env.tres in new projects. This prevents unnecessary whitespace changes in VCS diffs when saving a scene for the first time in a new project. - Calinou
053b54b67c
2022-07-25 19:05:27 +02:00
eb99e955d9 Ported:
Update SceneTree debug colors when settings changed - timothyqiu
37d4306c2e
2022-07-25 18:55:29 +02:00
Ev1lbl0w
5dbc95691c Hide .gdignore'd folders
(cherry picked from commit 057a0e00ebb3a7cbfd5692363c9d219156f0373c)
2022-07-25 18:48:54 +02:00
Haoyu Qiu
168b1c2ae5 Fix popup dialog UI in AnimationTreePlayer editor 2022-07-25 18:48:32 +02:00
82aaf6d586 Fix build. 2022-07-25 18:42:16 +02:00
Haoyu Qiu
8eb81855d9 Disable "Open in Inspector" when there is no animation 2022-07-25 18:18:44 +02:00
Haoyu Qiu
c0010ad0f1 Focus filter LineEdit after Theme Type dialog popup 2022-07-25 18:15:49 +02:00
Haoyu Qiu
9e0a1c88a0 Add missing CheckBox & CheckButton editor icons
Co-authored-by: Silc 'Tokage' Renew <tokage.it.lab@gmail.com>
Co-authored-by: Yuri Sizov <yuris@humnom.net>
2022-07-25 18:12:28 +02:00
ConteZero
d45100b57b Fix Copy Selection on editor_log 2022-07-25 18:10:21 +02:00
Nicholas Huelin
344d18b2ee Hide "Normal Map" import option when using lossless compression on Texture
This pull request resolves an issue where images being imported with lossless compression allowed you to select a normal map, but the normal map only applies if you're using VRAM compression. Thereby making it redundant to appear when using lossless compression. This pull request hides the normal map option when lossless compression is selected.

Resolves: #59435
(cherry picked from commit 01ca9d3eec71154b6b0d32d34cab6b9fdb6fd24c)
2022-07-25 17:49:58 +02:00
Daniel Kříž
62dc43396c Fix persistent favorites after rename
Signed-off-by: Daniel Kříž <Daniel.kriz@protonmail.com>
(cherry picked from commit 0535ef549a6563e374c95ff9bdf6171117a59e6a)
2022-07-25 17:49:27 +02:00
Vitika9
41eb735bb2 Made reload current project ask for confirmation with unsaved changes
(cherry picked from commit eb81ac8fc524edf7fa3fdcaaa1e7f22ffbbe287c)
2022-07-25 17:48:55 +02:00
taigi100
4ce3baf8f9 Update properties to properly filter for templates.
(cherry picked from commit d8d73cdd023253d778acf0e826b38be4046a6e1f)
2022-07-25 17:45:18 +02:00
Haoyu Qiu
10eba686fb Fix crash when exporting projects with shared libraries
(cherry picked from commit 680bcef82546fa0f50b431f20423b62621d1c5ac)
2022-07-25 17:43:42 +02:00
Rémi Verschelde
92561386ec ResourceImporterWAV: Allow configuring loop mode on import
The new `edit/loop_mode` import options lets user choose to either:
- Detect loop points from the WAV (default, same behavior as before)
- Set the loop mode and loop points manually like in AudioStreamSample

Fixes #46164.

(cherry picked from commit b389ce5ccd664c993772a0b71ba99a875106b523)
2022-07-25 17:42:23 +02:00
Vitika9
b6273a70ce Removed extra separator in absence of ChangeType and Rename
(cherry picked from commit 46ca4737f19f3701ec352f2e898514109c096587)
2022-07-25 17:41:16 +02:00
Priyansh Rathi
a834816352 fix same project opening mutliple times from project manager 2022-07-25 17:38:49 +02:00
Haoyu Qiu
c14e9cc48b Update inspector layer names when project settings changed 2022-07-25 17:32:32 +02:00
fb02d16983 Now custom controls can be added to the top bar of the plugin settings page. 2022-07-16 19:28:39 +02:00
73ac91dc86 Fixed remaining issues and added cscript to the build. 2022-07-12 22:58:44 +02:00
2093cef963 Ported the EditorZoomWidget from Godot4. 2022-04-10 23:29:21 +02:00
85536b1134 Removed the online docs link from the top of the script editor. 2022-03-23 23:29:58 +01:00
c054c4db58 Cleaned up more remnants of the mono module. 2022-03-23 23:10:27 +01:00
408cd17225 Removed all translations except hungarian, as I won't be able to keep them updated. 2022-03-23 22:04:58 +01:00
2c5d5b7d3f Removed download support from the export templates manager for now. 2022-03-23 21:48:34 +01:00
32f148ac0c Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
b74c00ea65 Backported the 3.x android editor port pr by m4gr3d and thebestnom. (Godot pr 57747). 2022-03-22 19:35:57 +01:00
14a7a209af Fix the new errors during the start of the editor. 2022-03-22 09:38:47 +01:00
4871c46ec0 Also hackfix Rect2i's icon name . 2022-03-22 01:53:24 +01:00
beb83b286d Also implement editor property support for PoolVector2i, and PoolVector3i, and all new class support for the Dictionary and Array properties. 2022-03-22 01:52:54 +01:00
68c0469aa5 Added editor properties for Vector2i, Vector3i, and Rect2i. 2022-03-22 01:34:43 +01:00
6c91c3f9d5 Added a hack to the editor icon builder script, because it capitalized The new int classes wrong. (Vector2i was capitalized Vector2I). 2022-03-22 00:40:56 +01:00
84955fab68 Added icons for the newly added core classes. 2022-03-21 23:50:08 +01:00
c4811ebf6f Removed the arvr related icons. 2022-03-21 23:49:48 +01:00
c9b612f012 Added StringName as a variant type, with eventually the help of 3c0059650d . 2022-03-21 21:29:06 +01:00
aa1fb22309 Backported: Add missing navigation node icons - timothyqiu, YeldhamDev - bb257543d8 2022-03-20 20:30:43 +01:00
5f7421974c Backported by hand: Add a GradientTexture2D editor plugin - fire-forge. (d76c9f8d92) 2022-03-20 14:59:19 +01:00
b287513656 Replaced the godot editor icon. 2022-03-20 13:50:41 +01:00
bad39216b9 Reworked the entries in the help menu. Also added pandemonium specific entries to the about window. Also fixed a crash when opening the about popup. 2022-03-20 13:30:49 +01:00
77ed14e2f8 Fix 2 runtime errors found by tools. 2022-03-19 10:23:56 +01:00
d740ef5d18 Finished cleaning up includes for the classes under the editor folder. I skipped removing a few that needed more changes to the headers / cpp files for now. 2022-03-19 04:08:34 +01:00
7fd581f987 An another set of header include cleanups for the classes in the engine directory. 2022-03-19 03:10:01 +01:00
bca78798ef Header include cleanups for the classes in the editor folder. 2022-03-19 02:25:58 +01:00
2ce53f2b9e Ran include-what-you-use on the classes in the editor/ floder. 2022-03-19 00:01:30 +01:00
b41f01cb92 Cleaned up the rest of the includes in the headers under engine/plugins. They can still be improved, by moving references too, but that will be done later. 2022-03-18 22:55:47 +01:00
2b5cc26584 More include cleanups to the classes under editor/plugins. 2022-03-18 21:48:35 +01:00
6f637e65b0 Include cleanps. 2022-03-18 21:07:58 +01:00
a112bd877c Ran include-what-you-use on classes under editor/plugins. It still needs cleanups though. 2022-03-18 20:18:56 +01:00
1ab4a46da0 Moved som of the includes from headers to cpp files under the editor folder. 2022-03-18 19:32:23 +01:00
4d7df62b8e Clang format all files. 2022-03-18 19:00:13 +01:00
c545717186 Fix EditorScriptCodeCompletionCache::Cache::time_loaded may be used uninitialized error. 2022-03-18 18:53:24 +01:00
f8e54698e4 Include cleanups for resources. 2022-03-18 18:48:49 +01:00
1f4f9c761e Version include cleanups to ESS. 2022-03-18 00:38:45 +01:00
340cc8ba45 Run the include guard script on the editor folder. 2022-03-17 22:15:35 +01:00
3965d70ac5 Moved more includes to cpp files. 2022-03-17 19:35:23 +01:00
ad43fd50bd Moved more includes. 2022-03-17 13:58:13 +01:00
3ca78453da Moved more includes. 2022-03-17 12:47:22 +01:00
f55afe20ef More include moves. 2022-03-17 12:12:41 +01:00
85475900e8 More include moves. 2022-03-17 12:06:40 +01:00
866569d22a Moved more includes to cpp files. 2022-03-17 11:52:53 +01:00
2c88c46101 Moved more includes to cpp files. 2022-03-17 11:28:57 +01:00
d34ba0a7f4 Moved more includes from headers to cpp files. 2022-03-17 10:58:07 +01:00
84d139213d Moved more includes to cpp files. 2022-03-17 10:39:38 +01:00
052027dce4 Moved more includes to cpp files. 2022-03-17 10:26:23 +01:00
c621049e61 Moved more includes to cpp files. 2022-03-17 09:07:18 +01:00
38fc0c402e Moved more includes from headers to cpp files. 2022-03-17 08:38:34 +01:00
2c1eb4182b Limit property default value in the editor's docs, to fix formatting for properties that return lots of data by default (Like Entity's sresources). 2022-03-16 21:37:03 +01:00
c1ebd9905a Moved more includes. 2022-03-16 21:09:41 +01:00
eeb7c04aaf Moved more includes to cpp files. 2022-03-16 20:53:38 +01:00