Commit Graph

1649 Commits

Author SHA1 Message Date
d9a8497546 Renamed translate in Transform2D to translate_local. 2022-08-14 14:59:46 +02:00
662c3a7e88 Also did Rect2i. 2022-08-14 14:00:32 +02:00
899ac5cbd8 Backported some improvements to Rect2 from Godot4. Also bound all eligible methods. 2022-08-14 13:15:22 +02:00
7650103ce7 Backported some improvements to Plane from Godot4. Also bound all eligible methods. 2022-08-14 10:52:57 +02:00
c7d2307bd5 Backported some of the improvements to Color from Godot4. Also bound all eligible methods. 2022-08-14 01:08:59 +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
c991043c95 Backported improvements to AABB from Godot 4. Also made sure all eligible methods are bound. 2022-08-13 18:21:54 +02:00
6523457c0f Backported the improvements to the Math class from Godot4. 2022-08-13 16:49:47 +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
88da0c8d4f Backported from Godot4: Fix animation player crashing when caching disabled tracks - MinusKube
a73882305c
2022-08-12 18:42:34 +02:00
47358bfaab Backported: add viewport.get_camera_2d()
* there is now a more clear distinction between camera_2d and camera_3d functions in the engine code
* simplified camera2d's exported interface - now everything happens directly with the 'current' variable and make_current and clear_current are no longer exposed- there were some situations where calling one instead of set_current would result in incomplete results
* rebased to current godot master
- verdog
879f84d8f8
- Note that i did not rename the original Camera related methods.
2022-08-12 18:29:04 +02:00
f51c08120e Backported from Godot4: improved way of getting method track keys - TokageItLab
dedc4710a3
2022-08-12 17:48:00 +02:00
65f8c774a8 Backported from Godot 4: Fixed value track blend animation without RESET - TokageItLab
0fe723a1ac
2022-08-12 17:28:51 +02:00
ec9eb18aaf Backported from Godot4: Make blend animation to use ResetTrack as default value - TokageItLab
860fac4e6f
2022-08-12 17:16:52 +02:00
d1fe0ae433 Backported from Godot4: Fix blend animation to solve TRS track bug & blend order inconsistency - TokageItLab
b06d253920
2022-08-12 16:48:31 +02:00
a84be665ec Use AnimationPlayer's root property instead of just getting it's parent when exprting a GLTFDocument. 2022-08-12 13:59:27 +02:00
82550d10e3 Also update BoneAttachment handling code. 2022-08-12 12:58:04 +02:00
d5158716d9 Update the logic of _convert_animation_track in GLTFDocument. 2022-08-12 12:57:02 +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
ab86ae7c2c Backported form godot4: Respect disabled animation tracks - reduz
11805ac01d
2022-08-11 22:50:39 +02:00
dc3500ec17 Fixed BoneAttachments. 2022-08-11 22:32:32 +02:00
502f8f85c5 Fix infinite recursion issues in Skeleton. 2022-08-11 22:32:25 +02:00
575b830f68 Fixed AnimationTree animating Spatials. 2022-08-11 22:08:44 +02:00
9d9271b518 Removed the SNAME macro, I'll probably keep static counting support for StringNames though. 2022-08-11 20:22:51 +02:00
6825202490 Removed warning. 2022-08-11 20:11:43 +02:00
5e3c3ff4d0 Ported from Godot4: Implement global rest - TokageItLab
4d4ffa3a2c
2022-08-11 20:10:26 +02:00
da62c587e8 Ported from Godot4: get rid set_bone_pose and fix some function in SkeletonEditor - TokageItLab
8e9897b6de
2022-08-11 19:57:23 +02:00
36b5334282 Ported from Godot4: Fix for SkeletonModification3Ds to work with the new bone pose changes, fixed global_pose_to_local_pose function
- TwistedTwigleg
0cedc04769
2022-08-11 19:09:58 +02:00
109a0ca81b Ported from Godot4: 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).
- reduz
2dc823273e
2022-08-11 19:06:33 +02:00
15a5bea727 Clear surfaces in ImmediateMesh before adding a new one. 2022-08-11 18:09:33 +02:00
4db7bba945 Now ImmediateMesh actually sends the expected data to the VisualServer. 2022-08-11 17:56:31 +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
d662b2f3c9 Fix unused variable. 2022-08-11 12:31:24 +02:00
1b743e8a6d Fixed comparison of integer expressions of different signedness warnings. 2022-08-11 12:28:04 +02:00
dd250bf678 Backported ImmediateMesh from Godot4. 2022-08-11 12:23:36 +02:00
aebf3ecc9d Ported some missing changes. 2022-08-11 11:20:37 +02:00
3cbdd9cfa1 Removed Module prefix / infix from the skeleton editor's classes. Also now the module only has one EditorPlugin. 2022-08-11 10:59:22 +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
07fa703645 Improvements to the skeleton's gizmo. It still has issues though. I'll get back to it later. 2022-08-10 14:28:26 +02:00
73fa94274b Fixed the bone editor's bone tree. 2022-08-10 12:51:20 +02:00
b352060a62 Added a new bones_updated signal to Skeleton. 2022-08-10 12:42:04 +02:00