Commit Graph

109 Commits

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

[CL 31470741 by yoan stamant in ue5-main branch]
2024-02-14 09:15:30 -05:00
alex kahn
cdfd11e33e [Backout] - CL31425693 - CIS UE Error Backout 4/4
[FYI] Yoan.StAmant
Original CL Desc
-----------------------------------------------------------------
Removed some headers dependencies on 'FHitResult' and 'FOverlapResult'
#rb Mieszko.Zielinski

[CL 31440421 by alex kahn in ue5-main branch]
2024-02-13 14:37:03 -05:00
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
kiaran ritchie
ffde41037b Fixes issue, brush radius does not update in realtime in viewport
#rb halfdan.ingvarsson
#JIRA UE-191149

[CL 31407385 by kiaran ritchie in ue5-main branch]
2024-02-12 19:21:26 -05:00
kiaran ritchie
1281576805 Fixing build break from 30978118
#rb halfdan.ingvarsson

[CL 30981166 by kiaran ritchie in ue5-main branch]
2024-01-29 19:07:03 -05:00
kiaran ritchie
484fda5403 Fixes bug skin paint tool properties not synchronized with viewport brush adjustments.
Fixes issue with brush settings not save per brush mode

#rb halfdan.ingvarsson
#JIRA UE-199992, UE-199994

[CL 30980384 by kiaran ritchie in ue5-main branch]
2024-01-29 18:29:09 -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
1501b2e7dd InteractiveToolsFramework: Fix context object store FindContextByClass not being able to look up context objects based on UInterfaces.
#rb lonnie.li
#jira UE-196706

[CL 30600757 by semion piskarev in ue5-main branch]
2024-01-12 14:43: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
benoit gadreau
a9607bbff7 New TRS Gizmo: partial view dependent rendering improvements
- use the ViewAlignAxialMaxCosAngleTol property instead of the default one to enable per-element customization
    - reduced the max partial angle of rotation handles so that they don't depth fight with the arcball handle on edges

#rb brooke.hubert
#rnx

[CL 29680588 by benoit gadreau in ue5-main branch]
2023-11-13 06:09:58 -05:00
benoit gadreau
9fd417fa97 New TRS Gizmo: fixed UGizmoElementBase::GetViewDependentVisibility that was using the local axis for angle computation
- this had the effect of not hidding the axis and plane handles in the correct scenarios

#rb brooke.hubert

#rnx

[CL 29566351 by benoit gadreau in ue5-main branch]
2023-11-08 13:01:40 -05:00
jimmy andrews
477d623650 fix issue where pressing modifier keys during a mouse drag could cause the drag to report spurious mouse input at 0,0 for a few ITF behaviors
#rb semion.piskarev

[CL 29320107 by jimmy andrews in ue5-main branch]
2023-11-01 12:06:39 -04:00
jimmy andrews
7e1b8e46d9 add concept of saving-on-clear/restoring the selection manager's selection, so that tools can restore the before-tool selection if the tool is cancelled, or if the tool otherwise did not change the underlying meshes.
+ add a callback to the modeling editor mode so it can know whether a tool was cancelled, and make the modeling mode use the selection manager's new save-on-clear/restore feature automatically when its tools are cancelled.

 + make some tools (normals, tangents, inspector) restore the before-tool-start selection after tool use via a utility function, since they shouldn't change mesh IDs that the selection relies on.

#jira UE-195948
#rb Ryan.Schmidt

[CL 29027037 by jimmy andrews in ue5-main branch]
2023-10-23 22:46:23 -04:00
semion piskarev
c28ca17955 InteractiveToolsFramework: Fix hover behaviors terminating when a modifier key is pressed.
#rb Brooke.Hubert

[CL 28779390 by semion piskarev in ue5-main branch]
2023-10-13 19:25:57 -04:00
jimmy andrews
355aea3bd1 fix cancel drag being turned into accept on the MeshSurfacePointTool-derived classes
#rb semion.piskarev

[CL 28540282 by jimmy andrews in ue5-main branch]
2023-10-06 10:48:24 -04:00
jimmy andrews
78fbcb1c6b Use deprecated typedef to fix FSelectedOjectsChangeList typo in ITF's ToolContextInterfaces
#jira UE-192620
#rb matija.kecman
#rb lonnie.li

[CL 27782397 by jimmy andrews in ue5-main branch]
2023-09-12 00:11:43 -04:00
benoit gadreau
7c004866a5 New TRS Gizmo updates
- arcball rotation: the rotation is computed using a spherical+hyperbolic projection (see code for more explanation)
    - indirect manipulation via MMB: hit parts are stored per mode then are used to drive the proper drag function
    - defered drag function: in order to avoid notifications storm, the drag functions can be applied on tick instead using a pending function
    - a single default TRS gizmo is now created when needed (instead of creating several thru selection changed or when the gizmo manager was ticking) and its visibility is set based on rules

TODO
    - UEditorInteractiveGizmoManager is now closer to UInteractiveGizmoManager so I don't think we need ActiveEditorGizmos, CachedGizmoMap, etc. that are not used anymore. This should be cleaned in another CL
    - UEditorTransformGizmo::OnGizmoTransformBegin should set the current axis (needed for some modes, including IKRig) but this is disabled for now has there are some side effects with dragging (this will be treated in another CL)


#jira UE-152973
#jira UE-161236
#rb brooke.hubert zach.rammell

[CL 27751789 by benoit gadreau in ue5-main branch]
2023-09-11 09:54:48 -04:00
helge mathee
c0786a81dd ITF: Sphere, LineStrip and TriangleList elements
#rb ryan.schmidt

[CL 27703880 by helge mathee in ue5-main branch]
2023-09-08 01:21:11 -04:00
kiaran ritchie
17585f4a38 Minor changes to BaseBrushTool, added ability to disable brush adjustment input, and removed platform specific header.
#rb ryan.schmidt
#JIRA https://jira.it.epicgames.com/browse/UE-183079
#preflight https://horde.devtools.epicgames.com/job/646d2ccd64351d76f349e26a

[CL 25590791 by kiaran ritchie in ue5-main branch]
2023-05-23 17:23:06 -04:00
kiaran ritchie
8b1da6298e Adding ability to adjust brush size and strength while click-dragging with B hotkey pressed.
#rb halfdan.ingvarsson
#JIRA https://jira.it.epicgames.com/browse/UE-183079
#preflight
#preflight 646d10141134ffac703ed612

[CL 25588550 by kiaran ritchie in ue5-main branch]
2023-05-23 15:22:34 -04:00
kiaran ritchie
6e44e257d7 Removed code that should not have made it into last change (25500261) due to shelving incident.
#rb trivial
#JIRA none
#preflight

[CL 25500552 by kiaran ritchie in ue5-main branch]
2023-05-16 19:49:12 -04:00
kiaran ritchie
e6d62a49db Added ability to disable base brush tool. Added toggle to skin paint tool while in selection mode.
#rb halfdan.ingvarsson
#JIRA none
#preflight https://horde.devtools.epicgames.com/job/64640cb84404e3cdd2833e1e

[CL 25500261 by kiaran ritchie in ue5-main branch]
2023-05-16 19:33:41 -04:00
semion piskarev
582964265a MeshModelingTools: Harden tool targets against underlying objects being replaced via blueprints and/or garbage collected.
#rb Lonnie.Li, Jimmy.Andrews
#jira UE-184401
#preflight 64525c58743c256cd692d59e

[CL 25334286 by semion piskarev in ue5-main branch]
2023-05-04 09:51:24 -04:00
ryan schmidt
96d47b526d InteractiveToolsFramework: add UInteractiveToolManager::bInToolShutdown flag, set during DeactivateToolInternal and use in DeactivateTool() to prevent tool shutdown from being called while tool is actively shutting down. This can occur if higher-level Mode calls shutdown on (eg) editor delegates, which might be fired by a shutdown that is actively ocurring.
#rb jimmy.andrews
#preflight 64430297b14f1faacf30fcaf

[CL 25175466 by ryan schmidt in ue5-main branch]
2023-04-24 23:20:54 -04:00
benoit gadreau
c58b1167bf Skeleton Mesh Editing tool: multi selection + transform gizmo
- multiselection: bones can be multi-selected (using shift/ctrl) so that they can be bulk edited
    - bones can be transformed individually (unlike in the level editor where the last selected element's transform is used as pivot)
    - added USkeletalMeshGizmoContextObject to manage gizmo wrappers for skeletal mesh tools
    - gizmo: re-used the transform gizmo work done with several fixes/improvements so that they can be used in other contexts
        - UTransformGizmo can be used without TransformGizmoSource, most of the infos can be retrieved from the IToolsContextQueriesAPI
        - UTransformGizmo can be passed an external StateTarget to handle transaction externally
        - UTransformGizmo fixed rotations going in the wrong direction when dragging

#jira UE-183454
#jira UE-183453
#rb kiaran.ritchie
#preflight 643d63df8e01968448cf53db

[CL 25085825 by benoit gadreau in ue5-main branch]
2023-04-18 10:17:27 -04:00