Commit Graph

50 Commits

Author SHA1 Message Date
Richard TalbotWatkin
383fd8858c Moved component visualizer headers to Public folder to allow their use as base classes for project code. Also moved some spline visualizer members from private to protected scope.
#jira UE-20203 - Move Component Visualizer headers to Public folder

[CL 2694925 by Richard TalbotWatkin in Main branch]
2015-09-17 06:24:43 -04:00
Richard Hinckley
6ceaa5aba7 Cleaning out programmer-only comments that were harvested by Doxygen.
#platformnotify Josh.Adams

[CL 2690143 by Richard Hinckley in Main branch]
2015-09-14 09:25:39 -04:00
Richard TalbotWatkin
35beea5ea2 Fixed issue where SplineComponents added dynamically through the in-world details panel were not editable with the visualizer.
#jira UE-18204 - Spline Components aren't editable if added via in-world component editing.

[CL 2689657 by Richard TalbotWatkin in Main branch]
2015-09-13 12:27:25 -04:00
Richard TalbotWatkin
018991d9ec Fixed selection bug in SplineComponent visualizer. Now correctly selects points on a new spline when a different spline was previously selected.
#jira UE-19279 - Attempted to select 2 spline points from 2 different blueprints

[CL 2662485 by Richard TalbotWatkin in Main branch]
2015-08-20 08:45:24 -04:00
Martin Mittring
27cb0254a6 UE-8324 Default values for decal components are not suitable for a component workflow
added DecalSize to the decal component

[CL 2629028 by Martin Mittring in Main branch]
2015-07-22 12:03:24 -04:00
Nick Darnell
d287c6143f More Gamma Correction - Didn't catch this on the previous pass, apparently there was an implicit constructor allowing FLinearColor to FColor that was doing pow(2.2) gamma conversion inversion. Rather than leave the implicit constructor, I'm making it private and making people use ToFColor(true). Which is slightly more expensive, but performs the proper sRGB conversion. While fixing this, I found several terrible uses of the implicit constructor, when Hashing FLinearColors we were converting them to FColors first, when clearing FCanvas we were manually gamma correcting but leaving it as an FLinearColor, then implicitly converting to FColor, double gamma corrrecting. Neither of which should even be required as the RHI Clear command expects an FLinearColor. Additionally fixing a myriad of Slate widgets that were all doing FColor conversions needlessly only to convert back to FLinearColor when queuing slate draw commands.
#codereview nick.penwarden, martin.mittring, andrew.brown, gareth.martin

[CL 2593605 by Nick Darnell in Main branch]
2015-06-19 11:17:11 -04:00
Matt Kuhlenschmidt
4ba9833254 Fixed crash on when enabling Visualize Scale and Roll for a Spline Point
[CL 2578096 by Matt Kuhlenschmidt in Main branch]
2015-06-04 23:58:10 -04:00
Steve Robb
f6817cb2ed Redundant reads extracted into local variables to avoid a VC bug in TMultiMap iteration.
#codereview robert.manuszewski,dan.oconnor

[CL 2539100 by Steve Robb in Main branch]
2015-05-06 09:32:44 -04:00
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