Commit Graph

30 Commits

Author SHA1 Message Date
Ori Cohen 03061f978d Fix shadow variable
[CL 2582842 by Ori Cohen in Main branch]
2015-06-10 11:57:35 -04:00
Ori Cohen 55d388bde6 Improve PhAT workflow for switching between constraint mode and body mode
#UE-16705

[CL 2580408 by Ori Cohen in Main branch]
2015-06-08 16:29:08 -04:00
Ori Cohen 681db6f836 Fix show kinematic bodies for the case where they blend. Also turn it on by default
[CL 2536064 by Ori Cohen in Main branch]
2015-05-04 14:11:51 -04:00
PaulEremeeff 3d878d5a79 PR #996: Fixing PVS-Studio warnings (Contributed by PaulEremeeff)
I have reviewed each change carefully, but it is a large change and I could have missed something! Here is a summary of the types of changes in this CL:
 * Made nullptr checks consistent (the plurality of the changes are of this type)
 * Completed switch statements (IE, switch did not explicitly handle default case, but had unhandled enum entries - this is the second most popular type of fix)
 * Removed unused variables
 * Removed redundant initializations
 * WidgetNavigationCustomization.cpp was fixed by the owner
 * integers converted to floats where result was stored in a float
 * Removed redundent null checks (e.g. before delete statements)
 * Renamed variables to prevent non-obvious shadowing
 * Fixed use of bitwise & when checking for equality to an enum entry (which is often 0)
 * Fixes for some copy paste errors (e.g. FoliageEdMode.cpp)

[CL 2498053 by Dan Oconnor in Main branch]
2015-03-31 20:12:31 -04:00
Ori Cohen 32590dbe09 Remove manual transform toolbar. Replace with the functionality found in base class. UE-9577
[CL 2469105 by Ori Cohen in Main branch]
2015-03-04 14:46:06 -05:00
Marc Audy 79f610442c Fix shadowed variables
[CL 2467803 by Marc Audy in Main branch]
2015-03-03 12:30:55 -05:00
Mikolaj Sieluzycki fa01cacb6c Trim down the amount of UObject constructors.
#codereview Robert.Manuszewski

[CL 2429641 by Mikolaj Sieluzycki in Main branch]
2015-02-03 05:40:57 -05:00
Ori Cohen 81cc5944e6 Improve missing skeletal mesh warning message
[CL 2428159 by Ori Cohen in Main branch]
2015-02-02 10:34:20 -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
Lina Halper 521baeec13 Epic Friday :
- record animation from phat
- keep simulated position for skeletalmesh component

[CL 2362211 by Lina Halper in Main branch]
2014-11-17 13:49:07 -05:00
Mikolaj Sieluzycki d43e69c4b9 Prepare cpp files for header cleanup.
#codereview Robert.Manuszewski

[CL 2356854 by Mikolaj Sieluzycki in Main branch]
2014-11-12 04:43:54 -05:00
Michael Noland 928559eaa0 Editor: Coding-standards fixes (TypeName [*|&] VariableName -> TypeName[*|&] VariableName)
[CL 2316341 by Michael Noland in Main branch]
2014-10-01 14:45:23 -04:00
Ori Cohen 7cffe8ed8e phat mirroring phase 1
[CL 2295811 by Ori Cohen in Main branch]
2014-09-12 18:52:22 -04:00
Lina Halper e513ea2300 Named FMatrix/FTransform unsafe Inverse to InverseFast, and InverseSafe,InverseSlow to Inverse as people often use Inverse as default function.
- Inverse was one of the main reasons of crashes via lots of functions. Seems making default Inverse to be safer version seems better.

[CL 2255081 by Lina Halper in Main branch]
2014-08-13 15:29:41 -04:00
Michael Trepka 3293117f09 More fixes for Clang warnings
[CL 2238624 by Michael Trepka in Main branch]
2014-07-31 15:43:08 -04:00
Jaroslaw Palczynski b30666376e StringClassReference needs to work with cooking and redirects
TTP# 338203

Refactored StringClassReference to be a subclass of StringAssetReference.

[CL 2226863 by Jaroslaw Palczynski in Main branch]
2014-07-22 08:14:39 -04:00
Ori Cohen f910c63ee8 Fix crash when deleting bodies in phat that are not associated to any bone
[CL 2223722 by Ori Cohen in Main branch]
2014-07-18 14:22:12 -04:00
Ori Cohen 06a31bf60e deleting non leaf bodies in phat will automatically fixup constraints from parent and children
[CL 2192344 by Ori Cohen in Main branch]
2014-07-11 15:49:11 -04:00
Ori Cohen 20d5dfe640 Fix PhAT adding new bodies not correctly creating joints for non-leaf bodies
[CL 2191866 by Ori Cohen in Main branch]
2014-07-11 12:00:17 -04:00
Ori Cohen 0654d5b0a5 PhAT copying constraints now copies frame 2 relative to frame1
[CL 2191762 by Ori Cohen in Main branch]
2014-07-11 11:05:01 -04:00
Ori Cohen 4fd6415b4e Improve undo in PhAT so that non destructive undos maintain selection
[CL 2182205 by Ori Cohen in Main branch]
2014-07-09 18:54:34 -04:00
Ori Cohen 823b7f0a42 Fix crash in PhAT when trying to create multi convex hull with soft vertices
[CL 2123513 by Ori Cohen in Main branch]
2014-07-01 13:10:32 -04:00
Andrew Brown b0f3feca6f Static mesh editor can now create Box/Sphyl and have multiple collision primitives, which can be manipulated.
#ttp 334968 - TOOLS FEATURE: Add primitive collision inside the static mesh editor

#branch UE4

#change
GenerateSimpleCollision funcs now return true if any collision was built
Moved Prompt to build collision into a func (to remove duplicate code), and modified so that the options are Yes=Replace, No=Add-To, Cancel = Cancel.
Added CalcBoundingSphyl code which is loosely based on the Sphere code in that it finds the best axis to align the sphyl with (but locally rotates so it can treat the Z axis as length, regardless). It they finds the radius to best enclose the Sphyl (same as Sphere, but 2D). Then it increase the length of the Sphyl until that encapsulates all the remaining points.

Replace instances of AddZeroed with Add(FKTypeElem()) so that the vtable would be created correctly if a base struct was introduced.
Moved PhysX code which scales the Elems from ModifyPrimitiveSize to their own struct func (ScaleElem) so that it could be used elsewhere.

Added new struct FPrimData which contains the PrimType and PrimIndex so we can look the corresponding collision Elem up in our BodySetup. The static mesh editor session which is open for a particular static mesh keeps track of these using the following:
IsPrimValid û Checks to see if the prim data could be valid
HasSelectedPrims û Returns true if there are any selected prims
IsSelectedPrim û Check to see if the prim data is selected
AddSelectedPrim û Adds prim data to our selection
RemoveSelectedPrim û Removes prim data from our selection
RemoveInvalidPrism - Removes any prims which are no longer valid from the selection
ClearSelectedPrims û Removes all the prim data from our selection
DuplicateSelectedPrims û Duplicates the selected prims
TranslateSelectedPrims - Translates the selected prims by a specified amount
RotateSelectedPrims - Rotates the selected prims by a specified amount
ScaleSelectedPrims - Scales the selected prims by a specified amount
CalcSelectedPrimsAABB - Calculates the bounding box of the selected prims
DeleteSelectedPrims û Deletes the selected prims
GetLastSelectedPrimTransform û Gets the transform of the last prim which was added to the selection.
GetPrimTransform - Gets the transform of a specified prim
SetPrimTransform - Sets the transform of a specified prim
Added placeholder calls to begin/end transaction where itÆs needed whenever the bodysetup prims are modified.

Added new Static Mesh Editor menu option to create a capsule/sphyl
Added dedicated collision toggle flag to the Static Mesh Editor so we could manage our own handling of the draw functions in order to inject hit proxies where needed so we can test when theyÆve been clicked on in the viewport.
Widget now works when selecting collision Elems. Space toggles the manipulation method.
SelectedPrims can be trans/rot/scaled using the editor widget.
Prims can be duplicated or deleted either using menu entries or keyboard shortcuts. Alt+drag is also supported for duplication.
ProcessClick was updated so that whenever a new selection type is clicked on the previous types are deselected (sockets, prims, edges), and other code location were updated to clear the selected prims where appropriate.
Modified OnFocusViewportToSelection so that it also focuses on the selected elems too
Modified SetSelectedSocket so that when passing NULL it deselects all the sockets

[CL 2104326 by Andrew Brown in Main branch]
2014-06-13 05:03:24 -04:00
Ori Cohen 4f0b92aa9f Fix crash in PhAT when renaming constraint TTP#325202
[CL 2093820 by Ori Cohen in Main branch]
2014-06-03 18:47:27 -04:00
James Golding e4be295b45 Remove PhysicsPublic from Engine.h
[CL 2088098 by James Golding in Main branch]
2014-05-29 17:36:51 -04:00