Commit Graph

30 Commits

Author SHA1 Message Date
Olaf Piesche
57dfc6a74d Fix for UE-11697
With many particle emitters open, perf tanks. Cascade is ticking even if the editor tab is not visible/active, which can cause all sorts of performance issues. Cascade ticks through engine tick, so the only way to properly avoid this is to check for ticking of the viewport widget; added a flag to it to keep track of ticking in the last frame, then checking and clearing that in the Cascade tick function.

#codreview nick.atamas dave.ratti

[CL 2523454 by Olaf Piesche in Main branch]
2015-04-23 17:36:57 -04:00
Andrew Rodham
5194f5cfc0 Fixed some windows not gaining focus when opened
On mac, window activation is not guaranteed syncronously when a window is created, thus any code that opened a window, then immediately opened some focus-sensitive operation, may fail.

I've fixed up three of the most common cases (SAssetView::ItemScrolledIntoView, STextEntryPopup and STextComboPopup) so they register an active tick to focus the widget when the window gains focus (optionally controllable from the .AutoFocus() argument)

This addresses UE-12929.

[CL 2521062 by Andrew Rodham in Main branch]
2015-04-22 10:34:02 -04:00
Dan Oconnor
15c50b5a5d Fixes for warnings found by PVS-Studio, these have been modified from PR#996
[CL 2500335 by Dan Oconnor in Main branch]
2015-04-02 16:32:47 -04: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
Ben Marsh
149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00
Richard TalbotWatkin
c83a8e8e98 Fixed issue with Undo when converting a particle module to seeded.
#jira UE-1204 - CRASH: EDITOR: CASCADE: Undo convert to a seeded module does not correctly undo the action and can lead to a crash

[CL 2374538 by Richard TalbotWatkin in Main branch]
2014-12-03 02:57:48 -05:00
Jamie Dale
d21cff33f7 Fixed code relying on SLATE_TEXT_ARGUMENT for STextEntryPopup
Made sure everything was using FText rather than FString.

[CL 2373660 by Jamie Dale in Main branch]
2014-12-02 08:37:25 -05:00
Mikolaj Sieluzycki
51f5333986 Prepare cpp files for header cleanup.
#codereview Robert.Manuszewski

[CL 2356864 by Mikolaj Sieluzycki in Main branch]
2014-11-12 04:58:53 -05:00
Mikolaj Sieluzycki
59df49651b Engine private PCH cleanup.
#codereview Robert.Manuszewski

[CL 2348191 by Mikolaj Sieluzycki in Main branch]
2014-11-04 06:12:25 -05:00
Chris Gagnon
0e6d657c3d Refactor to unify keyboard and controller input and focus.
Native controller navigation support.

[CL 2345039 by Chris Gagnon in Main branch]
2014-10-30 12:29:36 -04:00
Dan Hertzka
2ab1556645 Adjusted access to the LocalWorkspaceMenuRoot within FTabManager - GetLocalWorkspaceRoot() now returns a const and provides methods to expose adding a category and clearing categories
#codereview nick.atamas

[CL 2338925 by Dan Hertzka in Main branch]
2014-10-23 15:11:28 -04:00
Wes Hunt
31e2bb00ac Removed a bunch of stuff from Slate standard include, created SlateBasics.h
* Moved Slate.h into SlateBasics.h and began shifting less commonly used headers into SlateExtras.h.
* Slate.h now simply includes SlateBasics.h and SlateExtras.h.
* Slate.h includes a deprecated warning now to indicate that SlateBasics.h + specific includes should be used instead.
* Moved dozens of inlined functions using Slate widgets into .cpp files to avoid header dependencies.
* All code samples now include SlateBasics.h and SlateExtras.h so future shifts will not break most those projects, but not trigger the deprecation warning of including Slate.h.
#BUN

[CL 2329610 by Wes Hunt in Main branch]
2014-10-14 22:50:06 -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
Dan Hertzka
f3092790eb Window menu refactor & polish
- Window menu is now sectioned and labeled based on the current editor. There's now a local workspace root member in FTabManager and a workspace category in FAssetEditorToolkit (both are FWorkspaceItem objects). Individual editors attach their local category to the tab manager's local root. Workflow app modes have their own category members that are swapped out when the mode changes.

- Finally, the AssetEditorCategory of FWorkspaceMenuStructure has been removed entirely.

- Replaced the AddMenuSeparator() call in FTabManager::PopulateSpawnerMenu_Helper() with a section of the same title as the workspace category.

- Tab spawner menu entries for the local editor now properly show the icon of the associated tab. To accomplish this it was necessary to change FWorkflowTabFactory::TabIcon to be an FSlateIcon instead of an FSlateBrush*. All factory instances have been updated accordingly.

- Added & updated lots of icons! (those missing will be TTP'd)

- The nomad tab spawner section (named "General" in the menu) has been largely compressed into the Developer Tools submenu, which has also been organized into sections for readability.

- Unreal frontend options were also moved into a context menu within the General section

- Moved all experimental tools to their own section of the Window menu. When they're no longer experimental they should register as nomads in the appropriate category

- Undo history now under Edit menu

[CL 2324285 by Dan Hertzka in Main branch]
2014-10-09 12:34:55 -04:00
bruce nesbit
1daeba007e More Tutorial metatags - mostly on various editors (Persona, cascade etc)
[CL 2295417 by bruce nesbit in Main branch]
2014-09-12 15:56:59 -04:00
Ori Cohen
e0872056b1 Particles can specify object types to collide with (fix build)
[CL 2292481 by Ori Cohen in Main branch]
2014-09-10 12:31:05 -04:00
Max Preussner
f167dce37e Slate: Moved TestSuite and ColorPicker into new module AppFramework
The AppFramework module is intended to be used for compound widgets and UI related classes that are too specific (not basic enough) for Slate, but also not Editor specific (reusable in non-Editor applications and games). The test suite has been moved in its entirety for now, but core widget specific test classes will eventually be split off and moved back into Slate, so that they can live alongside of their corresponding widgets.

Other changes:
- moved to "include what you use" scheme for SColorPicker
- broke out color picker related widgets that may be reusable
- added forward declarations to reduce header include dependencies

#CodeReview: saul.abreu

[CL 2275496 by Max Preussner in Main branch]
2014-08-27 20:35:19 -04:00
Olaf Piesche
0d44827384 Fixing crash in curve editing; Cascade crashes if keyboard focus is in an edit field in the details pane when selecting and dragging a curve point. Now clearing keyboard focus explicitly on curve edit, which prevents this crash, but requires two clicks into the curve editor (one to focus, one to start dragging) for curve editing.
[CL 2275015 by Olaf Piesche in Main branch]
2014-08-27 16:09:11 -04:00
Andrew Brown
3cb097972c Modified analytics to include .Usage in the name
[CL 2239630 by Andrew Brown in Main branch]
2014-08-01 05:31:22 -04:00
Andrew Brown
4d4f4845d7 Added analytics reporting to cascade
#ttp 340620 - FIXIF: EDITOR:ANALYTICS: Cascade Editor Instrumentation Pass

#branch UE4

#added Added analytics for various cascade usage; whenever a particle effect is opens it gives a breif overview of how many emitters/lods/modules there are, and also reports when any emitter/lod/modules gets added/removed

reviewed by Thomas.Sarkanen

[CL 2229945 by Andrew Brown in Main branch]
2014-07-24 10:54:53 -04:00
Graeme Thornton
9e0c448386 Mobile Preview Continued Work:
* For several preview components (cascade + a couple of animation previews), don't create a separate FXSystem for the preview world. Just use the one created internally by the world
* Several bug fixes and improvements to dynamic feature level switch
* Continued conversion of code that references to global feature level.

#codereview Nick.Penwarden

[CL 2229679 by Graeme Thornton in Main branch]
2014-07-24 05:23:50 -04:00
Andrew Brown
861aecc117 Particle effect meshes now adhere to the view mode correctly
#ttp 340954 - CASCADE: Switching view mode from wireframe will keep mesh in wireframe mode

#branch UE4

#change Particle system component is re-added to the scene so that it picks up the correct viewmode

reviewed by Thomas.Sarkanen

[CL 2217513 by Andrew Brown in Main branch]
2014-07-15 05:08:47 -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
Mikolaj Sieluzycki
c11610c881 Remove Particle headers from Engine.h and include only where needed.
#codereview Robert.Manuszewski

[CL 2085445 by Mikolaj Sieluzycki in Main branch]
2014-05-29 17:02:05 -04:00
Graeme Thornton
e1700afed8 First pass of changes to remove GRHIFeatureLevel, allowing for multiple scenes with different feature levels to exist. First step towards dynamic mobile preview in the editor.
#ttp 331829 - Mobile Preview in Editor
#proj Engine
#branch UE4

#summary First pass of changes to remove GRHIFeatureLevel, allowing for multiple scenes with different feature levels to exist. First step towards dynamic mobile preview in the editor.

#change Added GMaxRHIFeature level which contains the highest supported feature level on this machine
#change Added a cvar "r.FeatureLevelPreview" which, when set to 1, enables a feature level selection in the quick settings menu. Not wired up to anything at the minute
#change Added a feature level variable to FScene, which is currently initialized to whatever GRHIFeatureLevel is. Accessed with GetFeatureLevel()
#change Added a helper accessor GetFeatureLevel() to FSceneView which gets the feature level from the relevant scene. Purely to reduce the amount of typing needed to get to a feature level
#change Many changes across the renderer to try and read the current feature level from the view or scene. Not everything is done yet, but this is almost all of the "easy" stuff. As there is still just a global feature level in the engine, nothing should change.

[CL 2066905 by Graeme Thornton in Main branch]
2014-05-08 09:05:50 -04:00