Commit Graph

120 Commits

Author SHA1 Message Date
lonnie li
bd8cb163a1 InteractiveToolsFramework: Fixed brush resizing sensitivity when bSpecifyRadius is false.
#rb Jimmy.Andrews
#jira UE-215755

[CL 34092139 by lonnie li in ue5-main branch]
2024-06-04 09:21:26 -04:00
lonnie li
6f0b6b26b1 InteractiveToolsFramework: Separate the BaseBrushTool's BrushAdjusterInputBehavior click drag handling into its own behavior.
Previously BrushAdjusterInputBehavior was used to set a toggle that would be read during the On*Drag callbacks to differentiate between a "brush stroke" and a "brush adjustment". This was error prone for both new and old tools that derived off of BaseBrushTool as it broke or was easy to break assumptions made in the tool's drag callbacks. With this separation, OnBeginDrag/OnUpdateDrag/OnEndDrag will only be called for brush strokes.

Additional minor fixes:
- Disabled the BrushAdjusterBehavior for SeamSculpt.
- Fixed initial BrushAdjuster HUD display prior to first drag.

#rb Jimmy.Andrews
#jira UE-213223

[CL 33797602 by lonnie li in ue5-main branch]
2024-05-21 11:43:23 -04:00
lonnie li
bd2042e9f9 ModelingTools: Allow BrushAdjusterInputBehavior to drive BrushSize when bSpecifyRadius is false.
#rb jimmy.andrews
#jira UE-214898

[CL 33643358 by lonnie li in ue5-main branch]
2024-05-14 20:38:23 -04:00
kiaran ritchie
df36e9edea Speed when adjusting brush size is now proportional to distance from camera.
#rb halfdan.ingvarsson
#JIRA UE-213808

[CL 33385568 by kiaran ritchie in ue5-main branch]
2024-05-01 18:39:39 -04:00
kiaran ritchie
478f94de69 Improvements to skin paint relax mode
- Toggle to relax now uses relax mode settings
- Made relax operation iterative to prevent over-relaxing within a single operation.
- Added skin paint brush mode and color modes to config file

#rb halfdan.ingvarsson
#JIRA UE-209449, UE-211086, UE-211087

[CL 33319174 by kiaran ritchie in ue5-main branch]
2024-04-30 01:02:40 -04:00
David Hill
07d11f3cdc ToolDataVisualizer - fix type cast warning.
#jira none
#rb david.hill

[CL 33266587 by David Hill in ue5-main branch]
2024-04-26 11:59:13 -04:00
federico lopez
cff04ea5d1 Add DrawDisc to ToolDataVisualizer
The existing DrawCircle function draws a circle that cannot be filled

#rb brooke.hubert, david.hill, stuart.hill

[CL 33225690 by federico lopez in ue5-main branch]
2024-04-25 05:04:09 -04:00
steve robb
bd31b2021c Fixed miscelleneous potentially uninitialized FVectors.
#jira UE-87511

[CL 32980682 by steve robb in ue5-main branch]
2024-04-15 20:17:01 -04:00
kiaran ritchie
481762b232 Various fixes to skin paint tool
- improved brush falloff and strength rendering
- falloff updates in realtime in viewport when adjusted

#rb halfdan.ingvarsson, tyson.brochu
#JIRA UE-209447

[CL 32976766 by kiaran ritchie in ue5-main branch]
2024-04-15 17:07:34 -04:00
kiaran ritchie
cbf35d507a Backing out changelist 32526171 which was submitted accidentally.
#JIRA UE-210598, UE-210599

[CL 32527242 by kiaran ritchie in ue5-main branch]
2024-03-26 18:30:44 -04:00
kiaran ritchie
d5a1f3a4b9 Various fixes to skin paint tool
- improved brush falloff and strength rendering
- falloff updates in realtime in viewport when adjusted
- added multi-color bone support

#JIRA UE-210598, UE-210599

[CL 32527002 by kiaran ritchie in ue5-main branch]
2024-03-26 18:27:31 -04:00
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