Commit Graph

35 Commits

Author SHA1 Message Date
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
Andrew Rodham
86850fe0f8 Changed editor project unit settings to be more flexible
Users can now choose a set of relevant units to display applicable properties in.
Setting a single unit for a given type will result in only that unit ever being used. When multiple exist, the most appropriate unit will be shown when a property editor is opened, and will remain in this unit until something else is selected.

[CL 2519064 by Andrew Rodham in Main branch]
2015-04-21 08:27:25 -04:00
Jaroslaw Palczynski
d9e4f8f862 UE-8954: Update commonly-subclassed actor and component classes to take a default FObjectInitializer constructor argument.
[CL 2518882 by Jaroslaw Palczynski in Main branch]
2015-04-21 04:37:32 -04:00
Marc Audy
5c936c7c3e Remove virtual from BlueprintImplementableEvents that have clear native virtual already
[CL 2483629 by Marc Audy in Main branch]
2015-03-18 17:50:49 -04:00
Jaroslaw Palczynski
8e8aa26725 Changed "WITH_HOT_RELOAD && WITH_HOT_RELOAD_CTORS" to "WITH_HOT_RELOAD_CTORS".
#codereview Robert.Manuszewski

[CL 2467443 by Jaroslaw Palczynski in Main branch]
2015-03-03 05:28:51 -05:00
Jaroslaw Palczynski
3c450b9477 UE-10111: Hot Reload crash with Scene Component tied to Actor class
We've changed the way vtable ptr are obtained for UClasses. Right now we use special empty constructor to get it, so we don't have to use normal one which was causing troubles. This special vtable helper constructor is generated automatically for most cases, but sometimes it's not possible (e.g. no default constructor for members types). In such case there is a possibility to override that generated constructor and write a custom one. The signature is UCustomClass::UCustomClass(FVTableHelper& Helper) and it needs to call base class'es constructor with the same parameter. Please do not use these constructors for anything else. There is no guarantee the object will be in correct state after calling this.

You can still disable this functionality if something breaks, just set WITH_HOT_RELOAD_CTORS to 0.

[CL 2466152 by Jaroslaw Palczynski in Main branch]
2015-03-02 06:44:04 -05:00
Laurent Delayen
e586cd3a8f Dev to Main integration from CL #2446290
[CL 2456855 by Laurent Delayen in Main branch]
2015-02-23 15:58:14 -05:00
Dmitriy Dyomin
715f28666d Templatized FInterval
Added Interval details customization, prerequisite for new foliage UI

[CL 2439365 by Dmitriy Dyomin in Main branch]
2015-02-10 00:12:23 -05:00
Ryan Gerleve
b63812acd1 Remove obsolete FNetworkGUID USTRUCT, FNetworkGUIDs should not be UPROPERTY()s
#codereview john.pollard

[CL 2412261 by Ryan Gerleve in Main branch]
2015-01-20 11:08:05 -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
Dan Oconnor
8c490369bc GitHub pull request #618 from user stephenwittle. Forced calls to the FRandomStream constructor when creating an FRandomStream in a blueprint. Does not work for FRandomStreams located on the CDO (see UE-5974)
[CL 2370372 by Dan Oconnor in Main branch]
2014-11-25 19:48:01 -05:00
Niklas Smedberg
f39fe4e6a2 Integrated Intel ISPC texture compression for BC6H / BC7
[CL 2365669 by Niklas Smedberg in Main branch]
2014-11-19 19:14:13 -05:00
Michael Noland
6d2b7ff428 Editor: Add LogTimestampMode editor config setting to control how timestamps are displayed in the output log (still defaults to None)
[CL 2354931 by Michael Noland in Main branch]
2014-11-10 15:13:41 -05:00
Max Preussner
7bae41e1ac Core: Reverted CL# 2342799 for mock GUID properties, because it broke blueprints (does not and will not support uint32)
#CodeReview: ben.zeigler

[CL 2351025 by Max Preussner in Main branch]
2014-11-06 15:00:56 -05:00
Max Preussner
8c16aa08f5 Core: Made the mock FGuid properties match the actual types
[CL 2342799 by Max Preussner in Main branch]
2014-10-28 16:38:47 -04:00
Jaroslaw Palczynski
7c41927cf4 Rename FPostConstructInitializeProperties to something simpler
Changed it with FObjectInitializer.

UECORE-7

[CL 2328384 by Jaroslaw Palczynski in Main branch]
2014-10-14 10:29:11 -04:00
Jaroslaw Palczynski
399074d7ea DonÆt default to æpublicÆ protection level in classes.
UECORE-8

[CL 2327190 by Jaroslaw Palczynski in Main branch]
2014-10-13 10:31:50 -04:00
Jaroslaw Palczynski
cc0f6d9a4e UObject custom constructors.
In order to use new feature user have to change GENERATED_UCLASS_BODY() macro to the new GENERATED_BODY(). Then no constructor is implicitly declared. If there is no constructor declared in UCLASS then PCIP one is declared and defined that passes PCIP down to super-class. On the other hand if there is a constructor declared then UObject system expects to have one of the default or PCIP constructor to initialize a class during loading from disk, default object creation, etc. and it expects that user will declare and define one.

There is a possibility now to create UCLASS with the default constructor (i.e. no PCIP).

New macro is encouraged by standard classes and in-editor wizards templates.

#codereview Robert.Manuszewski

[CL 2325282 by Jaroslaw Palczynski in Main branch]
2014-10-10 04:34:56 -04:00
Zak Middleton
ac72e78446 #docs - Cleaned up comments in Object.h (skeleton definitions for core object module)
- Added links to actual source files. Lots of times intellisense/VA will take you to the less helpful skeleton file rather than the actual source file.

[CL 2313538 by Zak Middleton in Main branch]
2014-09-29 18:07:04 -04:00
Max Preussner
9161c8766f BP: Added some initial support for using GUIDs in blueprints (GitHub PR# 467 by james0x0A)
https://github.com/EpicGames/UnrealEngine/pull/467

- did not expose FGuid fields in BPs
- removed ZeroedGuid() because NewGuid() is already zeroed
- made the string conversion function match ToString() behavior
- cosmetic changes

[CL 2311319 by Max Preussner in Main branch]
2014-09-26 14:12:18 -04:00
Niklas Smedberg
bb8f417304 Support for OpenGL ES 3.1 + Android Extension Pack
[CL 2303212 by Niklas Smedberg in Main branch]
2014-09-18 17:49:40 -04:00
Max Preussner
e8fec6b059 Core: better Blueprint and serialization support for FDateTime and FTimespan
[CL 2283641 by Max Preussner in Main branch]
2014-09-03 18:45:37 -04:00
Max Preussner
473ca54b50 Core: temp fix for destructable mesh deserialization crash
[CL 2283304 by Max Preussner in Main branch]
2014-09-03 14:48:00 -04:00
Max Preussner
509791f48e Core: temp hack to make FTimespan BP math functions work
#CodeReview: nick.whiting

[CL 2283276 by Max Preussner in Main branch]
2014-09-03 14:22:52 -04:00
Max Preussner
8717dd9637 Editor: Added details view customization for FDateTime and FTimespan; also some code cleanup
#CodeReview: david.nikdel

[CL 2282244 by Max Preussner in Main branch]
2014-09-02 19:28:15 -04:00