Commit Graph

25 Commits

Author SHA1 Message Date
Daniel Wright
3dbbbb5083 Fixed missing include
[CL 2590559 by Daniel Wright in Main branch]
2015-06-17 14:31:35 -04:00
Daniel Wright
e0a92fca80 Area shadowing for precomputed shadows from stationary lights
* New light Lightmass setting 'bUseAreaShadowsForStationaryLight'
* Removed 'DistanceFieldPenumbraSize' project setting, uniform penumbra size comes from each light's LightSourceAngle or SourceRadius using a heuristic now

[CL 2590302 by Daniel Wright in Main branch]
2015-06-17 12:22:02 -04:00
Michael Noland
db747d277d Split the UEditorEngine implementation out from Editor.cpp into EditorEngine.cpp, removed some GWorld references, and purged some dead code
UEditorEngine cleanup:
- Split all UEditorEngine methods from Editor.cpp into EditorEngine.cpp (though more are still scattered around in other files like EditorServer.cpp)
- Removed GetClassFromPairMap, ClassMapPair, and associated keyboard shortcuts to place nav pylons, since they don't exist anymore
- Removed dead variable StreamingBoundsTexture and associated method SetStreamingBoundsTexture
- Split out the implementations of SplitActorLabel and SetActorLabelUnique into statics on FActorLabelUtilities, the non-static versions will be deprecated in the future
- Moved SoundWaveQualityPreview to be a static in FSoundPreviewThread
- Moved FPreviewInfo into DlgSoundWaveOptions.h
- Removed empty method HandleCreateMeshFromBSPCommand and associated exec command

GWorld cleanup:
- Removed EditorClearComponents and updated the few existing uses to call ClearWorldComponents directly on their world reference
- Removed UpdateSkyCaptures and updated the only existing use to call UpdateAllSkyCaptures directly on a world reference

[CL 2515212 by Michael Noland in Main branch]
2015-04-16 19:29:55 -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
PaulEremeeff
c9a246101e PR #1013: Fixing PVS-Studio warnings. (Contributed by PaulEremeeff)
Some files have been omitted and will be submitted with modified corrections

[CL 2505544 by Dan Oconnor in Main branch]
2015-04-08 14:46:25 -04:00
Matt Kuhlenschmidt
5420992119 Made BSP hit proxies use weak pointers to avoid stale data still in the hit proxy buffers when BSP geometry is recreated
[CL 2500341 by Matt Kuhlenschmidt in Main branch]
2015-04-02 16:34:30 -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
Matthew Griffin
aa236448b1 [INTEGRATE] Change 2431741 by Matt.Kuhlenschmidt@matt_kuhlenschmidt_main on 2015/02/04 10:41:14
Fixed issue where Surface properties for BSP would not appear due to multiple selection notify bug

[CL 2438164 by Matthew Griffin in Main branch]
2015-02-09 11:20:34 -05:00
Ben Marsh
0e72b733b3 [INTEGRATE] Change 2422295 by Dan.Hertzka@Dan.Hertzka_T4682_4010 on 2015/01/28 11:19:26
[UE-7812] - Pivot location of a component in world is properly transformed to be in the same space as the component

[CL 2425830 by Ben Marsh in Main branch]
2015-01-30 10:52:18 -05:00
Ben Marsh
7561c0df72 [INTEGRATE] Change 2420685 by Dan.Hertzka@Dan.Hertzka_T4682_4010 on 2015/01/27 13:15:05
[UE-8251] [UE-8216] - Can no longer have a component selected in addition to an actor that isn't the component owner
	- Fixed a number of undo issues with the new in-tree Actor root node
	- Fixed undo issue where going from select component->select different actor->undo would cause the different actor to incorrectly still be flagged as selected
	- Fixed component selection visualization undo issues (components were not being modified when override delegates were bound/unbound)

[CL 2425757 by Ben Marsh in Main branch]
2015-01-30 10:24:54 -05:00
Ben Marsh
b1f7918492 [INTEGRATE] Change 2413255 by Dan.Hertzka@Dan.Hertzka_T4682_4010 on 2015/01/20 20:29:49
In-world component editing
	- Proper name is given to a new component on creation and when pasting nodes for IWCE component tree
	UE-7864 - fixed as by-product of naming changes
	UE-7831 - numbering follows the same pattern as the blueprint SCS editor
	UE-7801 - Selection & selection overrides all work for "invisible" components that have an editor-only component

[CL 2419481 by Ben Marsh in Main branch]
2015-01-26 18:53:46 -05:00
Ben Marsh
ee496e0308 [INTEGRATE] Change 2411014 by Dan.Hertzka@Dan.Hertzka_T4682_4010 on 2015/01/19 11:59:12
In-World Component Editing - fixed up a variety of cases where selection/details didn't update properly

[CL 2419249 by Ben Marsh in Main branch]
2015-01-26 17:13:33 -05:00
Dan Hertzka
e58aac384b - Fixed undo bug when translating components in the BP editor (instance on preview actor will now properly return to the old transform and stay in sync with the component template)
- Removed CDO-editing capabilities of in-world component editing
- Level details SCS tree now refreshes instead of being reconstructed
- Updated SCSEditor::GetNodeFromActorComponent to work in ActorInstance mode
- Cannot select hidden editor-only components in the world

[CL 2409822 by Dan Hertzka in Main branch]
2015-01-16 19:24:54 -05:00
Dan Hertzka
9b9c3d2d3e In-world component selection improvements:
- Right-clicking a selected actor will open the context menu, not select the component
- Clicking the selected actor will not select a component if the click also focused the level viewport
- Right-clicking a selected component opens a 1-option context menu to select the owning actor

[CL 2402541 by Dan Hertzka in Main branch]
2015-01-09 19:49:04 -05:00
Dan Hertzka
dd4fdd7906 First-pass on in-world component selection
- Must enable experimental In-World Component Editing
- To select a component in the world, click on the component when the owning actor is already selected

[CL 2401364 by Dan Hertzka in Main branch]
2015-01-08 16:49:49 -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
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
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
Robert Manuszewski
af80979bb7 First phase of deprecating TSubobjectPtr<> replacing TSubobjectPtr properties in the Engine with normal pointers and adding subobject accessors for derived classes/client code.
[CL 2331521 by Robert Manuszewski in Main branch]
2014-10-16 09:02:30 -04:00
Hyojong Shin
deee617f9e Fixed TTP #344536 : LIVE: EDITOR: Socket Snapping does not attach Actors to Sockets of Skeletal Mesh components in Blueprint Actors
[CL 2309319 by Hyojong Shin in Main branch]
2014-09-25 01:49:13 -04:00
Andrew Rodham
8c7093330b Added abililty to snap actors to surfaces in the world whilst dragging in the viewport.
#ttp 323078 - Actor drag preview does not respect actor factory spawn position offset
#ttp 309631 - TOOLS FEATURE: Asset placement: Align placed assets with surface placed on
#ttp 335001 - UE4: EDITOR:"Paste here" works inconsistently
#ttp 334066 - EDITOR: PAPER2D: Dragging a mesh into an ortho viewport does not provide a preview

There is a lot of work here:
    * I have moved and unified all the prop preview and drag alignment code that attempted to align objects to surfaces in the world to a new class, FActorPositioning. This fixes inconsistent behaviour between the drop previews, actual placement, and drag alignment.
    * I have tidied up the methods by which surface alignment is performed in UActorFactory. There is now a virtual method for factories to define *how* an actor should be aligned to the surface. This allows us to specify different alignment routines for things like static meshes, decals and lights.
    * Actor factories now create actors with an FTransform rather than specifying pointers to location and rotation vectors. This makes creation simpler and parameter passing less error prone. As far as I can see, the rotation was only used for surface snapping which is now handled by the factory anyway.
    * Surface snapping can be controlled by the editor viewport toggle button, or via a keyboard command set in the editor preferences
    * It is possible to override the default placement offset when aligning actors to surfaces. SnapOffsetExtent can be found in the editor viewport preferences.
    * Finding a valid snap position no longer uses a hitproxy as this was prone to error and does not work correctly when dragging actors that render their own hit proxies.
    * ClickLocation and ClickPlane are now more consistently set and managed. I have tried to remove excess assignment to these variables to clarify their use and purpose.

[CL 2223237 by Andrew Rodham in Main branch]
2014-07-18 10:09:21 -04:00
Andrew Rodham
ba3528c9d4 Made it possible for asset editors to maintain their own FEditorModeTools lists
Breaking changes include:
    * Rename of GEditorModeTools -> GLevelEditorModeTools to signify that it applies only to the level editor modes
    * Addition of FEditorModeRegistry, responsible for managing and creating new editor modes. Modes are no longer registered with an instance of the mode, instead with a mode factory that is able to create a new mode of that type.
    * Editor modes now operate on FEditorViewportClients rather than FLevelEditorViewportClients
    * Added ability to specify an FEditorModeTools when creating an FEditorViewport

Moved component vizualiser manager handling outside of individual editor modes, and into FLevelEditorViewportClient. This should make it easier to transplant in future.

This work addresses TTP#334640 - EDITOR: Investigate making editor modes a per-'editor' concept

Reviewed by Michael Noland, Matt Kuhlenschmidt

[CL 2109245 by Andrew Rodham in Main branch]
2014-06-18 10:16:16 -04:00
Richard TalbotWatkin
644bd6943e BSP actor is now deselected when none of its surfaces are selected.
#ttp 331756 - UE4: unable to deselect a BSP brush once selected
#branch UE4
#proj Editor.UnrealEd
#add When toggling the selection state of a BSP surface, if afterwards there are no surfaces selected, the BSP actor will also be deselected (in ClickHandlers::ClickSurface).
#reviewedby Chris.Wood, Max.Preussner

[CL 2056460 by Richard TalbotWatkin in Main branch]
2014-04-25 10:44:40 -04:00
Max Preussner
dbfd063a44 moved remaining viewport settings from EditorUserSettings into LevelEditorViewportSettings class
[CL 2037996 by Max Preussner in Main branch]
2014-04-23 16:33:38 -04:00
Tim Sweeney
324683ce78 Engine source (Main branch up to CL 2026164) 2014-03-14 14:13:41 -04:00