Commit Graph

73 Commits

Author SHA1 Message Date
Zak Middleton
d2cdcf9cee #ue4 - Deprecated CharacterMovementComponent::AdjustUpperHemisphereImpact() and UpperImpactNormalScale.
- Implementations of AdjustUpperHemisphereImpact() should override ComputeSlideVector() instead.

[CL 2326137 by Zak Middleton in Main branch]
2014-10-10 19:43:50 -04:00
Jaroslaw Palczynski
a04bd52271 FString comparison with an ANSI string literal constructs a temporary FString
#ttp 322488

#codereview Robert.Manuszewski

[CL 2318432 by Jaroslaw Palczynski in Main branch]
2014-10-03 08:04:40 -04:00
Ori Cohen
6134c3f164 Forgot file
[CL 2317646 by Ori Cohen in Main branch]
2014-10-02 14:38:36 -04:00
Simon Tovey
12cb585927 Global CVar for simple scaling of emitter spawn rates.
Bool property to enable/disable in spawn module. Defaults to enabled.
Existing data with constant spawn rates of <= 1.0 have this scaling disabled.

[CL 2317484 by Simon Tovey in Main branch]
2014-10-02 12:30:24 -04:00
Michael Noland
cf61cf2c85 Core: Coding-standards fixes (TypeName [*|&] VariableName -> TypeName[*|&] VariableName)
[CL 2316335 by Michael Noland in Main branch]
2014-10-01 14:40:06 -04:00
Brian Karis
363888f540 Fix material expression mask issue again.
[CL 2304561 by Brian Karis in Main branch]
2014-09-19 18:05:44 -04:00
Zak Middleton
c449e153c6 #ue4 - Rename USpringArmComponent::bUsePawnViewRotation to bUsePawnControlRotation. Rename UCameraComponent::bUsePawnViewRotation to bUsePawnControlRotation.
[CL 2301523 by Zak Middleton in Main branch]
2014-09-17 16:07:25 -04:00
Jamie Dale
b1076751ff Made FName case-preserving by storing case-variant strings in its string table
This is controlled by the macro "WITH_CASE_PRESERVING_NAME", which is currently just set to "WITH_EDITORONLY_DATA" so that it works in editor builds (and UHT).

Added an extra NAME_INDEX entry to FName to store a second string table index for a case-variant string. The previous Index value (now called ComparisonIndex) is still used for comparison purposes (as FNames are still case-insensitive).

The Init process for an FName now works like this:
 1) It will find or add a string table entry for the given string (not matching case) - this entry index is stored in ComparisonIndex.
 2) It will then compare the string table entry string against the given string (matching case) to see if it also needs to add a case-variant entry for the FName.
 3) If it does, it finds or adds a second string table entry (matching case) for the string - this entry index is stored in DisplayIndex.

Hard-coded FNames (those listed in UnrealNames.h) do not support case-variants (due to existing network replication rules for hard-coded FNames), so they skip steps 2 and 3.

I added FMinimalName, which is the same size as FName was previously. This shouldn't really be used (and as such, is deliberately awkward to make/use) as it loses the case-preserving behaviour of FName, however it was required for some things (like stats) that had a hard-coded upper limit on FName size.

I added FScriptName, which always contains the extra display index (even when WITH_CASE_PRESERVING_NAME is disabled). This is used by Blueprint bytecode, as the types used by Blueprint bytecode must be a consistent size between all build configurations.

Other changes:

 - Fixed up any places that were passing an Index into the FName constructor which was supposed to take an EName.
     - Some places were doing this to make the number unique when replicating an object, but this was losing the case-variant information, so I had to fix them.
     - FName will now assert if the EName constructor is used with an value outside the range of hard-coded FNames.

 - Ensured that assets, actors, and blueprint components could all be renamed in a way that only changed their case, and that these changes were correctly persisted.

 - Added FLinkerNamePairKeyFuncs and TLinkerNameMapKeyFuncs for use with TSet and TMap.
     - These allow ULinkerSave and ULinkerLoad to correctly write out case-variants for FNames, and also fixes an issue where the linker would erroneously write out duplicate string table entries for FNames which had a different number (causing package bloat).

 - Bumped VER_MIN_SCRIPTVM_UE4 so that all Blueprint bytecode is recompiled using FScriptName.

ReviewedBy Robert.Manuszewski, Gil.Gribb

[CL 2300730 by Jamie Dale in Main branch]
2014-09-17 05:24:55 -04:00
Zak Middleton
1880b8c440 #ue4 - Rename CameraComponent.bUseControllerViewRotation to bUsePawnViewRotation, and change its default to false.
- Also rename SpringArmComponent.bUseControllerViewRotation to bUsePawnViewRotation for consistency (default was already false).

- IMPORTANT UPGRADE NOTE: C++ projects using CameraComponents should ensure that they initialize bUsePawnViewRotation with the correct value if previously there was no initialization, since the default behavior has changed.
- The correct way to be backwards-compatible for CameraComponents is demonstrated in the C++ project templates:
   - add "_DEPRECATED" to any initialization of bUseControllerViewRotation (which becomes bUseControllerViewRotation_DEPRECATED).
   - add initialization of bUsePawnViewRotation to your desired default value.
   - if there was no previous initialization of bUsePawnViewRotation in code, then you MUST add initialization to "true" if you wish to maintain the same behavior as before (since the default has changed).

[CL 2298842 by Zak Middleton in Main branch]
2014-09-15 18:02:55 -04:00
Michael Schoell
72e42cffbd Fixes issues with Text pins stomping eachother's values after duplicating a Blueprint.
NodeGuids will be recreated when duplicating a Blueprint.

Version bump to handle giving Nodes a new Guid for all Blueprints.

[CL 2298607 by Michael Schoell in Main branch]
2014-09-15 15:37:14 -04:00
Matt Kuhlenschmidt
bc09f1dedb UMG - Deprecated style template on buttons
[CL 2291398 by Matt Kuhlenschmidt in Main branch]
2014-09-09 16:55:35 -04:00
Rolando Caloca
db3a94f08e UE4 - Remove Feature Level SM3 & replace it with ES 3.1.
- Fixes up the featurelevel switch on material nodes to default all ES2 inputs to also occur on ES3.1

[CL 2286623 by Rolando Caloca in Main branch]
2014-09-05 15:06:43 -04:00
Brian Karis
108371e776 Generate lightmap UVs on mesh import.
Moved layout UVs to static mesh build process.

[CL 2285439 by Brian Karis in Main branch]
2014-09-04 19:22:07 -04:00
Zak Middleton
a9df9ba45f #ue4 - Rename UCharacterMovementComponent.bCrouchMovesCharacterDown to bCrouchMaintainsBaseLocation.
- Also make UnCrouch() check this flag rather than the current movement mode when deciding how to grow the capsule.

[CL 2273293 by Zak Middleton in Main branch]
2014-08-26 18:41:05 -04:00
Ori Cohen
61806199ba Remove autowelding ifdef
[CL 2270523 by Ori Cohen in Main branch]
2014-08-25 11:08:52 -04:00
Robert Jones
566d29dd25 #ttp 334858 Android : Support ADPCM
Added support for ADPCM decoding.
Added 'sound type' information to USoundWave
- Android uses this to detect which type of asset it needs to deal with
Added support for selected encoding type via project settings

#codereview Daniel.Lamb, Chris.Babcock

[CL 2260750 by Robert Jones in Main branch]
2014-08-18 09:13:38 -04:00
Matt Kuhlenschmidt
c9e6d019a8 UMG - Animation setup overhaul. You can now create multiple animations. Each animation will create a variable which you can use to Play/Stop animations at runtime in a widget blueprint graph
[CL 2253547 by Matt Kuhlenschmidt in Main branch]
2014-08-12 16:34:22 -04:00
Steve Robb
82fcd06c42 enum class support for UENUMs. Currently only supports enum classes of underlying type uint8, because the property system needs to be updated to handle more than that.
EPropertyReferenceFlags removed too, because it is unused.

#ttp 329394: UHT: Support the C++ "enum class" syntax for UENUMs

#codereview robert.manuszewski

[CL 2252907 by Steve Robb in Main branch]
2014-08-12 08:51:25 -04:00
Justin Sargent
7a0823a4b2 Added the option to specify a currency code when formatting a number as currency.
[CL 2247444 by Justin Sargent in Main branch]
2014-08-07 15:59:02 -04:00
Benn Gallagher
f7eddba5cb Unshelved from pending changelist '2065351':
Added Smartnames to skeletons to manage elements of sequences centrally. Added new animation metadata as the first feature to use smartnames
#ttp - 332035

[CL 2244403 by Benn Gallagher in Main branch]
2014-08-05 13:03:42 -04:00
Benn Gallagher
4b9fe4721f Fixes to anim notify placement issues.
- Non-state notifies shouldn't end up with end offsets
- State notifies no longer jump around when dragged
- Begin and end snaps no longer sometimes offset on the wrong side

[CL 2239954 by Benn Gallagher in Main branch]
2014-08-01 11:37:54 -04:00
Chris Gagnon
3444d084ab Removed "InterpreteAsLinear", Deprecated FColor DrawColor and added FLinearColor LevelColor to replace it. Changed the underlying FColor's to FLinearColor in the rendering classes, cleaned up a bunch of color conversions.
#codereview matt.kuhlenschmidt

[CL 2235025 by Chris Gagnon in Main branch]
2014-07-28 17:16:21 -04:00
Phillip Kavan
182a4f8b5b [341253] Blueprints - Apply custom scale to non-native root components at construction time.
This matches what's done for native root components when Blueprint actor instances are constructed.

Existing Blueprint assets with non-native RootComponents will first be reset back to unit scale if necessary in order to avoid any unexpected scaling of existing actor instances as a result of this change.

#codereview David.Nikdel,Zak.Middleton

[CL 2230938 by Phillip Kavan in Main branch]
2014-07-24 20:11:48 -04:00
Jaroslaw Palczynski
cfcda1df30 CORE: In-editor fixup redirects not working with string asset ref
TTP# 341126

[CL 2230254 by Jaroslaw Palczynski in Main branch]
2014-07-24 13:25:23 -04:00
Graeme Thornton
747d2a9b9d Mobile Preview In Editor
- Material editor preview nodes now work when the editor is in es2 mode
 - Make editor primitives work in ES2 mode
 - Fix slate font rendering in ES2 mode
 - Remove ES2 shader de-gamma when in the editor
 - Add a new linear sampler type for linear textures
 - Various fixes for dynamic feature level switching
 - When in an emulated feature level mode, display some text in the level editor viewport saying what feature level we're running
 - Removed feature level parameter from USkeletalMesh::GetResourceForRendering. Not used for anything
 - ParticleVertexFactoryPool is now creates feature level specific vertex factories.

[CL 2187558 by Graeme Thornton in Main branch]
2014-07-10 10:39:54 -04:00