Commit Graph

320 Commits

Author SHA1 Message Date
yoan stamant
00a0c5ac5d Removed some headers dependencies on 'FHitResult' and 'FOverlapResult'
#rb Mieszko.Zielinski

[CL 31425867 by yoan stamant in ue5-main branch]
2024-02-13 09:57:09 -05:00
jimmy andrews
b4bb1bfb9a disable workarounds for now-fixed collision update bug, so bake transform, edit pivot, and the various voxel/boolean tools will not create two transactions per operation for static meshes that have convex collision
#jira UE-165856
#rb David.Hill, lonnie.li

[CL 31347696 by jimmy andrews in ue5-main branch]
2024-02-09 13:16:32 -05:00
nickolas drake
7d8003023f MeshModelingToolset: Fix crash when hiding actors deleted by tools with Delete Inputs option.
Our approach to deleting actors was apparently not sufficient to notify various editor systems of the deletion. This CL replaces AActor::Destroy with calls to UUnrealEdEngine::DeleteActors and UWorld::DeleteActor (depending on the context)

#rb lonnie.li
#jira UE-204240

[CL 31304400 by nickolas drake in ue5-main branch]
2024-02-08 16:20:34 -05:00
jimmy andrews
5a6525c6d5 fix polyedit's edge loop selection modifying the edge selection while it iterates through it
#jira UE-205955
#rb semion.piskarev

#changelist validated
#virtualized

[CL 31226919 by jimmy andrews in ue5-main branch]
2024-02-06 15:00:05 -05:00
katie caputo
7ec560568b Modeling Tools: Adds 'Local Frame Mode' toggle in the Mesh Element Selection Toolbar Settings so users can edit with the gizmo based either on the selected geometry only or on the entire object
#JIRA UE-202681
#rb lonnie.li, nickolas.drake

[CL 31128610 by katie caputo in ue5-main branch]
2024-02-02 11:59:31 -05:00
jimmy andrews
be2e1f07c9 Fix CopyMeshFromComponent in geometryscript not being able to see instance colors for renderdata lod
#rb David.Hill

[CL 31126576 by jimmy andrews in ue5-main branch]
2024-02-02 11:04:32 -05:00
jimmy andrews
e42ce76d86 [Backout] - CL31123234
(will add in a different stream)
[FYI] Jimmy.Andrews
Original CL Desc
-----------------------------------------------------------------
add support for instance colors in scene component -> dynamic mesh geometry script conversion function
#rb David.Hill

[CL 31124528 by jimmy andrews in ue5-main branch]
2024-02-02 10:10:09 -05:00
jimmy andrews
f182595f4a add support for instance colors in scene component -> dynamic mesh geometry script conversion function
#rb David.Hill

[CL 31123300 by jimmy andrews in ue5-main branch]
2024-02-02 09:45:38 -05:00
nathan mitchell
917a11ca24 UVEditor: Improved handling of multiple object loading in the UVEditor's 3D viewport.
Two behaviors now exist. When selecting from the Level Editor viewport, relative transforms between all selected objects are preserved in the subsequent UVEditor's viewport. When selecting from the Content Browser, or other sources that don't wrap the selected objects in a Component, the UVEditor will provide an automatic layout based on the object's bounding spheres.

Further, there are two new CVARs:

modeling.UVEditor.EnableLivePreviewArrangement - Enables or Disables the auto arrangement feature when selecting from the Content Browser. This exists to support legacy behavior where users might want the object's baked in transform to position objects in the UVEditor.

modeling.UVEditor.LivePreviewArrangementMode - Selects the mode of the auto arrangement. 0 indicates a line formation. 1 indicates an adaptive circular arrangement.

#rb lonnie.li
#jira UE-202730

[CL 30944612 by nathan mitchell in ue5-main branch]
2024-01-26 17:36:22 -05:00
nickolas drake
3925fcdf2b MeshElementSelection: Remove deprecation markup from UGeometrySelectionManager::ActivePreviewSelection
This was mistakenly included as I thought the SubmitTool had finished its work and I started messing around and it picked up my change

[FYI] lonnie.li

[CL 30861865 by nickolas drake in ue5-main branch]
2024-01-24 16:21:08 -05:00
nickolas drake
471232acd1 MeshElementSelection: Make selectable mesh elements visible.
When we have a valid topology type (Triangle or Poly, not None), we render selectable mesh elements.

Added AccumulateElementsFromPredicate to the GeometrySelector interface which allows a predicate function to filter which geometry elements ought to be included in the provided FGeometrySelectionElements. The predicate is aware of the type of element (vert, edge, tri) and the selected element ID (which is a single value encoding the topology ID and the element ID). The predicate returns true for elements to include and false for elements to exclude. Internally, this function builds transient vert, edge, and tri selections with this predicate and then accumulates all selection elements into the provided FGeometrySelectionElements.

#rb lonnie.li
#jira UE-202674

[CL 30860867 by nickolas drake in ue5-main branch]
2024-01-24 16:06:11 -05:00
steve robb
f029468598 Fixed up a lot of bool-taking container resize functions to take EAllowShrinking instead.
[CL 30729174 by steve robb in ue5-main branch]
2024-01-19 16:41:35 -05:00
semion piskarev
3d4bf819a5 ModelingTools: Allow tools to customize the accept/cancel overlay for sub-activitites, and use this in PolyEd.
#rb lonnie.li
#jira UE-196706

[CL 30601293 by semion piskarev in ue5-main branch]
2024-01-12 15:01:55 -05:00
jimmy andrews
ec2b0dd6d6 fix static analysis complaint about always-true if statement in the non-editor build of SceneComponentToDynamicMesh.cpp
#rb jimmy.andrews

[CL 30366490 by jimmy andrews in ue5-main branch]
2023-12-15 20:03:56 -05:00
jimmy andrews
7b1c8818c8 Make the convert tool support a larger range of scene component sources, by switching away from tool targets to instead use a general scene component->mesh conversion function adapted from geometry script. Make the geometry script node also now use this function.
#jira UE-182348
#rb lonnie.li

[CL 30359853 by jimmy andrews in ue5-main branch]
2023-12-15 16:11:52 -05:00
jimmy andrews
6ba33263bd Add support for copying collision shapes in the Create From Selected base tool, so we get this feature in the derived tools (e.g., the Merge tool, Vox Wrap, a few others).
Customize derived tools to exclude the collision from subtracted shapes.

#jira UE-182340
#rb lonnie.li

[CL 30359256 by jimmy andrews in ue5-main branch]
2023-12-15 15:50:51 -05:00
jimmy andrews
1a4c8ce1b5 Make component collision util do needed 'Modify' calls before updating dynamic mesh simple collision shapes, to help avoid bugs where the collision shape update is not correctly captured in the undo transaction
#rb lonnie.li

[CL 30328489 by jimmy andrews in ue5-main branch]
2023-12-14 14:46:08 -05:00
benoit gadreau
8659b4c503 Selection mechanic: improve UI responsivness by proposing different notification types
- on drag: handles the rectangle change directly
    - on tick: stores a pending selection function when dragging and calls it when ticking
    - on realease: stores a pending selection function when dragging and calls it on release

#jira UE-201729
#rb semion.piskarev

[CL 30315792 by benoit gadreau in ue5-main branch]
2023-12-14 04:28:00 -05:00
jimmy andrews
81f87183bb Fix handling of external scaling of simple collision shapes across geometry script and modeling tools, to be consistent with how UE applies component transforms to the shapes while still keeping the invariants of the shapes (spheres/capsules remain spheres/capsules, etc)
#rb rinat.abdrashitov

[CL 29876309 by jimmy andrews in ue5-main branch]
2023-11-21 17:55:54 -05:00
marc audy
763a611985 Fix C4072 warnings
#rnx

[CL 29852844 by marc audy in ue5-main branch]
2023-11-20 17:26:53 -05:00
nickolas drake
5b4f2d0acc PatternTool: Fixed a bug causing the tool to not emit any actors when a normal StaticMeshActor is used. Now the tool properly emits FortStaticMeshActors.
#rb Jimmy.Andrews

[CL 29815558 by nickolas drake in ue5-main branch]
2023-11-17 14:00:58 -05:00
jimmy andrews
bf3ae9cbd2 better simple collision level set visualization: add optional marching-cubes-based level set triangulation to the simple-collision->mesh utility functions and use the new marching cubes triangulation in tools + optionally in geometry script's append simple collision function.
also do some cleanup / generalization of the utility functions and change geometry script's append simple collision function to use them.

#rb David.Hill

[CL 29763193 by jimmy andrews in ue5-main branch]
2023-11-15 18:04:18 -05:00
charles bloom
108b030948 Texture preventative fixes; clarify some mip locking code and fix 64 bit issues
#rb fabian.giesen
#rnx

[CL 29759416 by charles bloom in ue5-main branch]
2023-11-15 16:30:26 -05:00
jimmy andrews
3e18a78d99 Make the modeling components' scene snapping volumes filter also filter out shape components, so e.g. a trigger box is filtered (or not) the same way as trigger volume
#jira UE-194042
#rb matija.kecman

[CL 29718601 by jimmy andrews in ue5-main branch]
2023-11-14 13:23:52 -05:00
jimmy andrews
088295ebe0 add a solid collision visualization toggle to the mesh to collision and inspect collision tools
#jira UE-182347
#rb matija.kecman

[CL 29645609 by jimmy andrews in ue5-main branch]
2023-11-10 12:57:56 -05:00