Commit Graph

98 Commits

Author SHA1 Message Date
Matt Kuhlenschmidt
11dcdec78c Renamed AllowMatineePreview to AllowCinematicPreview since it will be used for Sequencer and Matinee for the time being.
[CL 2603841 by Matt Kuhlenschmidt in Main branch]
2015-06-29 09:24:16 -04:00
Max Chen
4b7838bddb Viewport: Add begin/end camera broadcast messages when changing the camera view.
[CL 2592272 by Max Chen in Main branch]
2015-06-18 13:56:10 -04:00
Timothy Reynolds
48204dbc18 Allows viewport to move when piloting for focus, move to, etc.
The piloting was overwriting the viewport transition code resulting in no movement.

UE-7376

#codereview Matt.Kuhlenschmidt

[CL 2586227 by Timothy Reynolds in Main branch]
2015-06-12 15:28:56 -04:00
Michael Noland
44ebc4a237 Editor: Gated editor flight controls to only take effect while modifier keys (ctrl, alt, shift, cmd) are not held down, to allow things like [modifier]+PageUp can be bound to other actions
#codereview matt.kuhlenschmidt

[CL 2554366 by Michael Noland in Main branch]
2015-05-17 20:32:13 -04:00
Guillaume Abadie
914b9aa266 Fixes a bug similar to UE-9450 with planar translations in the editor viewport client.
[CL 2520202 by Guillaume Abadie in Main branch]
2015-04-21 18:16:17 -04:00
Guillaume Abadie
4ccbb26f55 UE-9450: Recalculates the view's location when rotating with the orbit mode in the editor viewport client.
[CL 2520162 by Guillaume Abadie in Main branch]
2015-04-21 18:00:43 -04:00
Guillaume Abadie
a288d6af49 UE-13697: Fixes camera position in material editor's view
#code_review: Martin.Mittring

[CL 2515946 by Guillaume Abadie in Main branch]
2015-04-17 11:12:10 -04:00
Dan Hertzka
e842cc8569 Fixed active timer registration issue when simulating if the viewport wasn't realtime
[CL 2514370 by Dan Hertzka in Main branch]
2015-04-16 11:49:24 -04:00
Mikolaj Sieluzycki
a96989f147 Add includes to files to remove the need of including Engine.h.
[CL 2508000 by Mikolaj Sieluzycki in Main branch]
2015-04-10 03:30:54 -04:00
Michael Noland
65ec110d7c Editor: Changed FDragTool to take in a reference to FEditorModeTools* instead of referencing the global one
[CL 2507029 by Michael Noland in Main branch]
2015-04-09 13:39:43 -04:00
Dinesh Kumar
f0a9771d33 Paper2D: 2D Mode
- Combined 2D Rotate / Translate widget
- 2D Layer Snap planes
- Some UI stuff to go with it
#codereview michael.noland

[CL 2500349 by Dinesh Kumar in Main branch]
2015-04-02 16:44:37 -04:00
Rolando Caloca
ce168f2846 UE4 - Renamed depth compare enums, changed some checks to static_asserts
[CL 2498658 by Rolando Caloca in Main branch]
2015-04-01 10:53:07 -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
Rolando Caloca
cb32891b3c UE4 - Added sanity checks for Inverted/Normal Depth Buffers; use ERHIZBuffer::NearPlane & FarPlane to switch from 0-1 to 1-0 on Depth
- Added shader define HAS_INVERTED_Z_BUFFER
- Added RHIHasInvertedZBuffer()
#codereview Martin.Mittring, Brian.Karis, Nick.Penwarden

[CL 2497481 by Rolando Caloca in Main branch]
2015-03-31 14:02:45 -04:00
Richard TalbotWatkin
10f522161b Added a RawDelta property to MouseDeltaTracker which holds a simple mouse delta in pixels, untransformed.
#jira UE-12070 - Cursor disappears and reappears when creating a selection box while zoomed

Fixed issue where the drag start position in zoomed ortho modes is incorrect, due to the trigger for drag start being determined by a scaled delta.  Now uses the new RawDelta property.

[CL 2497152 by Richard TalbotWatkin in Main branch]
2015-03-31 09:52:15 -04:00
Michael Noland
5c5659769b Editor: Promote FAssetEditorModeManager into UnrealEd and make it the default for FEditorViewportClient::ModeTools when the derived class doesn't specify anything
- Prevents some types of selection highlighting issues where editors would use the global selection state incorrectly
[UE-11603]

[CL 2485624 by Michael Noland in Main branch]
2015-03-19 22:50:13 -04:00
Richard TalbotWatkin
689c7ae93b Fixed issue where orbit camera delays hiding the mouse cursor until the next tick.
#jira UE-11737 - Viewport focus can be lost when zooming while Alt+LMB orbiting now (regression?)
#reviewedby Matt.Kuhlenschmidt

[CL 2484618 by Richard TalbotWatkin in Main branch]
2015-03-19 11:44:56 -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
1d7768ff2b Added 3 new orthographic viewport modes.
#jira UE-1143 - LIVE: Include option to view Orthographic views from both angles Front Back Left Right Top Bottom
#reviewedby Matt.Kuhlenschmidt

[CL 2480276 by Richard TalbotWatkin in Main branch]
2015-03-16 12:50:15 -04:00
Richard TalbotWatkin
d929e07d2e Improved viewport gizmo control mechanism.
#ttp 345815 - NUX: MVP: Quality pass on viewport gizmos (esp rotation)
#ttp 345479 - NUX:Level Viewport: Frustratingly glitchy input when trying to drag gizmos after right clicking (moves camera instead of actor!)
#jira UE-8762 - Extrude BSP on certain faces does not move in the corresponding direction of the mouse
#reviewedby Matt.Kuhlenschmidt

[CL 2476880 by Richard TalbotWatkin in Main branch]
2015-03-12 11:12:25 -04:00
Dan Hertzka
4bac21f822 If a realtime viewport is visible, Slate will correctly stay awake after ending a PIE session
[CL 2472374 by Dan Hertzka in Main branch]
2015-03-09 09:59:45 -04:00
Richard TalbotWatkin
a03239cfc8 Fixed issue where BSP flickered off and on when moving a brush in a level.
#jira UE-10692 - BSP flickers off and on when moving a brush in the level

- Fixed issue in FEditorViewportClient::StopTracking() where the HitProxy was being invalidated with immediate effect.  When this is done, the viewport must be redrawn directly afterwards.

#reviewedby Matt.Kuhlenschmidt

[CL 2472020 by Richard TalbotWatkin in Main branch]
2015-03-08 15:26:07 -04:00
Marc Audy
7effd7ebec Shadow variable fixes
[CL 2469447 by Marc Audy in Main branch]
2015-03-04 17:45:56 -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
Michael Noland
de50ff2821 Remove pragma disable opts accidentally checked in
[CL 2461799 by Michael Noland in Main branch]
2015-02-26 02:07:26 -05:00