Commit Graph

42 Commits

Author SHA1 Message Date
Richard TalbotWatkin
f9a4757e27 Fix clang build error.
[CL 2524134 by Richard TalbotWatkin in Main branch]
2015-04-24 07:20:48 -04:00
Richard TalbotWatkin
a3cfc2f2bb Big revamp to SplineComponent (continuing work-in-progress).
#jira UE-11822 - Add up vector, roll and scale properties to USplineComponent which can be used when calculating rotations/transforms at a point on the spline
#jira UE-13333 - BP spline components do not update when setting points
#jira UE-3637 - SplineComponent: Add a get transform at distance accessor

Summary of changes:
- FInterpCurve now natively understands looping. A input key can be set, at which point the spline will loop back to its start point.  Adjusted FInterpCurve methods to take looped curves into account.
- Fixed bugs in FInterpCurve regarding returning default values (T(ForceInit) instead of T() otherwise FVectors and FQuats are not initialized correctly).
- SplineComponent now holds three separate splines (location, rotation and scale).
- The SplineReparamTable is no longer transient, but is built and saved as part of the asset.
- Changed the SplineComponent API. All methods now take a ESplineCoordinateSpace value which specifies whether the values are intended for use in local or world space. The old methods have been deprecated but not removed (for now).
- bAllowSplineEditingPerInstance is deprecated. A new member (bSplineHasBeenEdited) has superseded it, and is set automatically when editing the spline with the visualizer. Added "Reset to Default" option in the visualizer, which restores the archetype defaults.
- SplineComponentVisualizer determines if spline points have been initialized by the user construction script, and, if so, will disallow editing. This is to conform with the general idea that the UCS always overrides property values.
- Fixed a number of bugs in the visualizer, and added new facilities to allow the scale and rotation to be edited (still work-in-progress).

[CL 2524087 by Richard TalbotWatkin in Main branch]
2015-04-24 06:25:50 -04:00
Mike Fricker
114458bf0f Clang warning fixes: Fixed missing 'override' specifiers
- Also removed some unreferenced functions that adding 'override' revealed

PR #1002 -- Thank you, Omar007!

[CL 2498415 by Mike Fricker in Main branch]
2015-04-01 07:20:55 -04:00
Marc Audy
a425eba9ed Unify Slate's FInputGesture and Engine's FInputChord as FInputChord defined in Slate
[CL 2481648 by Marc Audy in Main branch]
2015-03-17 11:36:28 -04:00
Richard TalbotWatkin
77a2e22bd3 Added SplineMeshComponent visualizer.
#jira UE-6788 - Implement Spline Mesh Component visualizer

[CL 2414117 by Richard TalbotWatkin in Main branch]
2015-01-21 13:58:47 -05:00
Richard TalbotWatkin
85412a495b Added facility to select multiple spline component keys.
#jira UE-6165 - Ability to multi-select spline component keys

[CL 2388280 by Richard TalbotWatkin in Main branch]
2014-12-15 03:05:31 -05:00
Ben Marsh
149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00
Gil Gribb
89ad70df9d Merging development branch (CL 2365488) to //depot/UE4/... Engine only, mostly hierarchical foliage
[CL 2376199 by Gil Gribb in Main branch]
2014-12-04 12:41:25 -05:00
Matthew Griffin
f1c4513760 Renaming FVector ClampSize and SafeNormal functions for clarity
Used DEPRECATED Macro to keep old names around in case I've missed anything

[CL 2370785 by Matthew Griffin in Main branch]
2014-11-26 10:01:12 -05:00
Richard TalbotWatkin
8adc094be5 Added tangent handles to spline visualization.
#jira UE-2726 - No tangent handle when editing

[CL 2364934 by Richard TalbotWatkin in Main branch]
2014-11-19 10:29:43 -05:00
sebastian kowalczyk
b5d27560b2 Extended functions for debug drawing (API from SceneManagement.h file):
- Added "Thickness" parameter to some functions (only for wired shapes rendering and with 0 as default value)
- Added GetHalfSphereMesh, GetConeMesh and GetCapsuleMesh functions

#codereview Daniel.Wright

[CL 2363368 by sebastian kowalczyk in Main branch]
2014-11-18 10:15:20 -05:00
Mikolaj Sieluzycki
51f5333986 Prepare cpp files for header cleanup.
#codereview Robert.Manuszewski

[CL 2356864 by Mikolaj Sieluzycki in Main branch]
2014-11-12 04:58:53 -05:00
Richard TalbotWatkin
4a236558c9 Added to SplineComponent: get/set spline point type; set editor colors for selected/unselected spline segments.
#jira UE-5024 - Implement user-definable colors for spline component visualizations

[CL 2354667 by Richard TalbotWatkin in Main branch]
2014-11-10 11:49:45 -05:00
Richard TalbotWatkin
c4eab00971 Added spline component Modify() calls in the various transactions, so that native components are undoable.
#jira UE-3418 - EDITOR: SPRITES: Cannot undo the duplicating of a 2D terrain spline point

[CL 2351387 by Richard TalbotWatkin in Main branch]
2014-11-06 15:09:39 -05:00
Mikolaj Sieluzycki
59df49651b Engine private PCH cleanup.
#codereview Robert.Manuszewski

[CL 2348191 by Mikolaj Sieluzycki in Main branch]
2014-11-04 06:12:25 -05:00
Wes Hunt
31e2bb00ac Removed a bunch of stuff from Slate standard include, created SlateBasics.h
* Moved Slate.h into SlateBasics.h and began shifting less commonly used headers into SlateExtras.h.
* Slate.h now simply includes SlateBasics.h and SlateExtras.h.
* Slate.h includes a deprecated warning now to indicate that SlateBasics.h + specific includes should be used instead.
* Moved dozens of inlined functions using Slate widgets into .cpp files to avoid header dependencies.
* All code samples now include SlateBasics.h and SlateExtras.h so future shifts will not break most those projects, but not trigger the deprecation warning of including Slate.h.
#BUN

[CL 2329610 by Wes Hunt in Main branch]
2014-10-14 22:50:06 -04:00
Ori Cohen
9860c6f1da Add COM visualization
[CL 2327635 by Ori Cohen in Main branch]
2014-10-13 16:13:29 -04:00
Ori Cohen
d4445d84cc New spring component
[CL 2326606 by Ori Cohen in Main branch]
2014-10-11 23:04:16 -04:00
Richard TalbotWatkin
4257b9ad67 Added a closed loop property to SplineComponent. Also fixed small rendering bug (local space widget) in SplineComponent visualizer.
#ttp 338259 - SplineComponent: Add an option flag to close the spline
#branch UE4
#proj Editor.ComponentVisualizers, Runtime.Engine

[CL 2315996 by Richard TalbotWatkin in Main branch]
2014-10-01 11:14:01 -04:00
Mieszko Zielinski
a2e29532e5 [GitHub] 435: SensingComponentVisualizer fix
by timdonks
(with minor refactoring)

[CL 2297184 by Mieszko Zielinski in Main branch]
2014-09-14 13:41:05 -04:00
Mieszko Zielinski
d55910995b [GitHub] 323: New SensingComponentVisualizer
by timdonks

[CL 2253076 by Mieszko Zielinski in Main branch]
2014-08-12 11:18:17 -04:00
Marc Audy
990d32289d Collect all potential attenuation shapes for an audio component correctly
[CL 2236293 by Marc Audy in Main branch]
2014-07-29 17:33:16 -04:00
Richard TalbotWatkin
21f4bd5f3f Miscellaneous improvements to SplineComponentVisualizer.
#ttp 341724 - FEATURE REQUEST: PAPER2D: Add or insert a key into a terrain spline
#ttp 341720 - FEATURE REQUEST: PAPER2D: Rename Key on terrain splines
#ttp 341378 - Spline Component/Meshs: Controls points only editable in worldspace. no localpace transformation
#reviewedby James.Golding

[CL 2228433 by Richard TalbotWatkin in Main branch]
2014-07-23 09:40:19 -04:00
Ori Cohen
eae671c927 Expose constraint angular reference frame offset
[CL 2122365 by Ori Cohen in Main branch]
2014-06-30 17:05:40 -04:00
Richard TalbotWatkin
8515ee0486 Further SplineComponent improvements:
- Changed USplineComponent::SplineReparamTable to a transient member and force rebuild each time in PostLoad() / PostDuplicate().
- Initialize the SplineReparamTable size at the start to save needless reallocations (as its size is known from the beginning).
- Added menu options to set spline key types (curve, linear, constant)
- Added Reset to Automatic Tangent to allow resetting to either a clamped or an unclamped tangent.
#branch UE4
#proj Runtime.Engine, Editor.ComponentVisualizers
#reviewedby James.Golding, Michael.Noland

[CL 2119717 by Richard TalbotWatkin in Main branch]
2014-06-27 14:18:10 -04:00