Commit Graph

12 Commits

Author SHA1 Message Date
Andrew Rodham
712719d060 Fixed crashes caused by shared pointer delegate bindings when reloading the level editor
Using AddSP to bind onto a multicast delegate that's removed in a class's destructor is dangerous because the weak pointer used to compare against the 'this' pointer passed to .RemoveAll() will be invalid by the time it is compared. This causes "HasSameObject" to fail as the object cannot be pinned. I've have changed these to be raw bindings so that the ownership is explicit and thus force the call to RemoveAll to succeed correctly without leaving behind a null delegate instance. Previously, with a null delegate instance still in the list when the module is reloaded, that memory becomes invalid causing a crash when the event attempts to purge invalid delegate instances from its invocation list.

Also fixed one place where OnTakeHighResScreenShots was being bound but never removed (this looked like a copy paste error)

This addresses TTP#337596 - CRASH: EDITOR: Reload after Recompile causes crash

#codereview Max.Preussner

[CL 2108007 by Andrew Rodham in Main branch]
2014-06-17 07:35:57 -04:00
Marc Audy
1281bea0c7 Shadow variable fixes
[CL 2085770 by Marc Audy in Main branch]
2014-05-29 17:14:20 -04:00
Max Preussner
c9d85971be Editor: refactored FLayoutService to be INI file agnostic; moved Editor layout from EditorUserSettings.ini to EditorLayout.ini
I also added code to retain backwards compatibility. Existing settings from EditorUserSettings.ini will be migrated to EditorLayout.ini

#CodeReview: nick.atamas, matt.kuhlenschmidt

[CL 2074798 by Max Preussner in Main branch]
2014-05-15 17:34:02 -04:00
Dmitriy Dyomin
c6d6f9446d World Browser UX improvements
Splitted World Browser views into three independent windows, each window can be summoned from a hierarchy view or details view toolbar
World composition can now be toggled through WorldSettings - bEnableWorldComposition. Once enabled persistent level will be treated as a world root. No more '?worldcompistion' parameter workarounds. 'Open World' command was removed, as levels saved with world composition enabled can be open through 'Open Level' command.
Added bEnableWorldOriginRebasing parameter to WorldSettings, which contols whether world origin shifting should be used

[CL 2072584 by Dmitriy Dyomin in Main branch]
2014-05-14 02:16:14 -04:00
Nick Darnell
10d3cd7e77 UMG - Checkpointing more work to try and get a main menu system working. Adding a slider. Root creation is now possible. Can sort of delete, super buggy. Less polling, more active function calls for most things.
[CL 2060671 by Nick Darnell in Main branch]
2014-04-30 20:35:16 -04:00
Max Preussner
a936df84c1 implement a News Feed feature for the Level Editor (TTP# 331113)
[CL 2047121 by Max Preussner in Main branch]
2014-04-23 19:04:54 -04:00
Nick Darnell
feb31bdb7f * Adding the initial UMG Editor and runtime modules. Currently it's all a lot of placeholders. You can enable the UMG editor by using the -umg command.
[CL 2046682 by Nick Darnell in Main branch]
2014-04-23 18:53:31 -04:00
Dmitriy Dyomin
f836be9d80 World Browser: - Changed splitters to be more visible
[CL 2046503 by Dmitriy Dyomin in Main branch]
2014-04-23 18:49:37 -04:00
Andrew Rodham
4ff32e224c #ttp 330988 - EDITOR: 'Paste Here' should maybe be removed from scene outliner edit sub menu since it doesn't function as intended there
#branch UE4
#proj Editor
#summary Removed position based menu actions from the scene outliner context menu
#change FLevelViewportContextMenu has been renamed to FLevelEditorContextMenu as it is not actually specific to viewports (it has been used in the scene outliner for some time now)
#change Added an enum to specify a broad context for the level editor context menu (whether it should show position based menu actions or not)
#reviewedby Matt.Kuhlenschmidt

[CL 2041433 by Andrew Rodham in Main branch]
2014-04-23 17:50:29 -04:00
Andrew Rodham
3f8bb98d1c Added ability to extend the default context menu in the scene outliner
This tidys up some logic and duplication between the level editor viewport context menu and the scene outliner, since the level viewport menu can now extend the scene outliner, rather than having to duplicate its functionality. The ability to completely override the menu still remains by way of an override delegate.
#reviewedby Matt.Kuhlenschmidt

[CL 2038566 by Andrew Rodham in Main branch]
2014-04-23 16:39:22 -04:00
UnrealBot
db494a6e69 Engine source (Main branch up to CL 2037954) 2014-04-02 18:09:23 -04:00
Tim Sweeney
324683ce78 Engine source (Main branch up to CL 2026164) 2014-03-14 14:13:41 -04:00