Commit Graph

84 Commits

Author SHA1 Message Date
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
Lina Halper
ddffe4fb9f Merging
//depot/UE4-Orion/Engine/Source/Editor/AnimGraph/...

to //depot/UE4/Engine/Source/Editor/AnimGraph/...

[CL 2486884 by Lina Halper in Main branch]
2015-03-20 18:05:34 -04:00
Phillip Kavan
e67b6775e3 [UE-11369] Fix potential crash on select of existing "Two Bone IK" nodes in an animation graph.
- introduced in CL# 2443244 (Fix manipulation of transforms on bone control nodes so that selecting a node doesn't overwrite its conents)
- seems like existing (older) nodes could potentially have serialized an empty default value string for the vector location pins; fixed by checking for that and allowing it to fall back to the zero vector in that case

#codereview Martin.Wilson

[CL 2471588 by Phillip Kavan in Main branch]
2015-03-06 16:33:54 -05:00
Gil Gribb
35cf42566a UE4 - merge GDC branch, code @2465640 to main
[CL 2468685 by Gil Gribb in Main branch]
2015-03-04 08:31:40 -05:00
Saul Abreu
79a26091bf Fixed behavior on FString::ParseIntoArray (muliple delimiters overload) functionality to support optionally culling empty strings. Greatly simplified implementation logic. Output parameter now properly named and taken by reference.
#codereview Steve.Robb, Robert.Manuszewski

[CL 2466824 by Saul Abreu in Main branch]
2015-03-02 15:51:37 -05:00
Marc Audy
5a9d2471d9 Fix shadowed variables
[CL 2456886 by Marc Audy in Main branch]
2015-02-23 16:18:13 -05:00
Marc Audy
e5ba044eb0 Fix shadowed variables
[CL 2451810 by Marc Audy in Main branch]
2015-02-19 12:13:52 -05:00
Matthew Griffin
2a70e91797 [INTEGRATE] Change 2443244 by Martin.Wilson@Pitbull-MWilson on 2015/02/12 07:06:56
Fix manipulation of transforms on bone control nodes so that selecting a node doesn't overwrite its conents

	#codereview Michael.Noland

[CL 2449794 by Matthew Griffin in Main branch]
2015-02-18 03:59:11 -05:00
Matthew Griffin
2d19921ebd [INTEGRATE] Change 2440548 by Dan.Oconnor@epic_3298 on 2015/02/10 17:50:56
[UE-9334] Fix for crash that occured when working with anim blueprints and the old menuing system. Origin was 2340250

[CL 2448569 by Matthew Griffin in Main branch]
2015-02-17 08:54:08 -05:00
Martin Wilson
9f07fc3c71 Fix crash in bone control widget when blueprint needs recompiling
[CL 2441883 by Martin Wilson in Main branch]
2015-02-11 12:30:09 -05:00
Graeme Thornton
b7f66f40b8 Change many string replace/compare/find operations which use a fixed case search pattern to be case sensitive. This avoids unnecessary expensive string case operations when searching for things like dots and slashes.
[CL 2425834 by Graeme Thornton in Main branch]
2015-01-30 10:52:42 -05:00
Thomas Sarkanen
4cefea89d7 Native transition rules & state entry/exit event delegates
Added support for binding native delegates to transition rules.
Changed callback for state entry/exit to also use delegates.
Bindings are registered before InitializeAnimation() is called (usually in your class constructor), then bound to states & transitions after the state machine has been initialized.
Added indicator in details panel when a transition is using a native rule.
Modified AnimBlueprint compiler so that 'always transition' warnings are not generated when a native delegate is installed.

reviewed by Martin.Wilson

[CL 2418613 by Thomas Sarkanen in Main branch]
2015-01-26 10:27:51 -05:00
Dan Oconnor
2efabfa541 Back out changelist 2411626
I fixed the crash found in the material editor, but discovered some rendering issues. Backing this out for now.

[CL 2412583 by Dan Oconnor in Main branch]
2015-01-20 14:04:44 -05:00
Dan Oconnor
b0c9f152da We no longer refresh the graph panel when a user deletes or adds a graph node. This is a substantial improvement in responsiveness, especially when the user is editing large graphs.
[CL 2411626 by Dan Oconnor in Main branch]
2015-01-19 18:54:38 -05:00
Jamie Dale
a569f6b356 Fixed code relying on SLATE_TEXT_ATTRIBUTE for STextBlock.
UETOOL-213 - Minimize Slate FString -> FText conversion (remove SLATE_TEXT_ATTRIBUTE)

This fixes any editor/engine specific code that was passing text to Slate as FString rather than FText.

[CL 2399803 by Jamie Dale in Main branch]
2015-01-07 09:52:40 -05:00
Lina Halper
4770fc4c22 #Anim : Fixed save cached pose node warning message
- We now don't check verification on skeleton class
- Moved Validation to EarlyValidation

#lockdown  Zachary.EdgertonJones

[CL 2390497 by Lina Halper in Main branch]
2014-12-16 17:44:46 -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
Hyojong Shin
22f2c45997 support WER keys to change gizmo mode for Bone Controller Preview in Anim blueprint
#code_review : Lina.Halper

[CL 2373321 by Hyojong Shin in Main branch]
2014-12-01 21:27:36 -05:00
Hyojong Shin
6455be9436 Fixed compile errors on Mac
[CL 2360110 by Hyojong Shin in Main branch]
2014-11-14 10:55:42 -05:00
Hyojong Shin
93c4e2c807 Bone Controller Preview Feature - Applied to Two Bone IK, ModifyBone and Fabrik nodes for now
#code_review : Michael.Noland, Lina.Halper

[CL 2359834 by Hyojong Shin in Main branch]
2014-11-14 05:00:37 -05:00
Lina Halper
e108fbb56e #Animation Editing Feature
- If you select bone and modify, you can add to the additive layer track
- You can also move curve keys during SIE

[CL 2359126 by Lina Halper in Main branch]
2014-11-13 17:30:49 -05:00
Martin Wilson
001f439d87 Double buffered bone space bases
[CL 2356960 by Martin Wilson in Main branch]
2014-11-12 08:43:50 -05:00
Lina Halper
c76ec48fd3 Fixed crash when layer node data is corrupted, fix up manually.
https://jira.ol.epicgames.net/browse/OR-83

[CL 2351009 by Lina Halper in Main branch]
2014-11-06 15:00:42 -05:00
Benn Gallagher
2909caea7c Montage Improvements
- Allow relative and proportional linking for montage elements
- Show trigger thresh of notifies in details panel
- Fixup segments on reimport to stop t-pose or frozen animations
- Only automatic improvements in this CL, requring no resave for assets

[CL 2342383 by Benn Gallagher in Main branch]
2014-10-28 11:42:50 -04:00
Laurent Delayen
b96f1c8d03 Multi-Montages support
. Slots now belong to a Group. One montage can play at a time per group.
. Removed old Slot and Group name lists and created new Anim Slot Manager. Add, Create Slots and Groups, assign Slots to groups and save changes.
. New Montage assets and Slot nodes default to a valid 'DefaultSlot' so they are functional when created. (Eliminates common mistake of empty slot names).
. Montage tracks and slot nodes picks slots from a combo box of valid entries, no more typing name by hand.
. Montage tracks will warn if not setup properly (different groups used, same slot used multiple times).

#codereview lina.halper

[CL 2340250 by Laurent Delayen in Main branch]
2014-10-24 15:46:54 -04:00