Commit Graph

17 Commits

Author SHA1 Message Date
Andrew Rodham
8ff0d8b98b Added config migration path for newer versions of the engine.
Newly installed versions of the engine will now attempt to copy the project-agnostic config settings from a previous engine installation. This happens by way of a versioned manifest that copies old versions when the manifest does not exist, or is a different version. This code path is benign for non-installed versions of the engine (or FPaths::ShouldSaveToUserDir() is false).

EditorGameAgnosticSettings and EditorUserSettings ini paths have been renamed to EditorSettings and EditorPerProjectUserSettings respectively to better convey their purpose. In general, most settings should be saved in EditorSettings (project-agnostic) so that they apply regardless of which project is open. We have some way to go migrating existing settings for this to be the case, however.

Some previously per-project configuration files are now project-agnostic (such as Editor.ini, EditorKeyBindings.ini, and EditorLayout.ini)

GEditor->Access...Settings and GEditor->Get...Settings have been removed in favor of direct access of the CDO through GetMutableDefault<> and GetDefault<> respectively. Global config ini filenames that are not set up are now neither loaded nor saved on build machines, to handle the problem of indeterminate state more generically.

This addresses UETOOL-270 (Most editor preferences should be project-agnostic)

[CL 2517558 by Andrew Rodham in Main branch]
2015-04-20 10:12:55 -04:00
Michael Schoell
73a4a605c3 Added a menu option when right clicking on Blueprint nodes to view node's documentation.
Moved the "GoToDocumentation" command from MaterialEditorCommands up to GraphEditorCommands.

#jira UE-11783 - Right click on BP nodes should offer link to API docs for node.

[CL 2506859 by Michael Schoell in Main branch]
2015-04-09 11:34:39 -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
Saul Abreu
e9a1f089e7 Fixed UI_COMMAND macro implementation so that it requires use of the LOCTEXT_NAMESPACE macro in the same file it is invoked from. Added necessary LOCTEXT_NAMESPACE definitions to files missing them using UI_COMMAND.
[CL 2477295 by Saul Abreu in Main branch]
2015-03-12 15:26:31 -04:00
Richard TalbotWatkin
df5265a9a7 Made the "Set Preview Mesh" in the Material Editor Viewport highlight when selected.
#jira UE-7007 - Preview mesh button does not become highlighted when selected
#reviewedby Matt.Kuhlenschmidt

[CL 2472014 by Richard TalbotWatkin in Main branch]
2015-03-08 15:24:57 -04: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
Marc Audy
39e3392c3e Do not swap what Mac control/command map to at the Platform level and instead manage it at the modifier level
Simplify/fix FText name generation for modifier keys
Have FInputGesture store a bit mask and expose helper functions instead of public boolean parameters (required to switch meaning of command/control on Mac)
#codereview Michael.Trepka

[CL 2365131 by Marc Audy in Main branch]
2014-11-19 12:45:49 -05:00
Daniel Wright
845b9cb571 Material parameters are now allowed in functions
Scalar and Vector Parameter default value changes are applied to materials in the scene in realtime
Code view tab no longer updates or compiles shaders on each edit while closed
Right click menu options to convert between float parameter and constant types

[CL 2339422 by Daniel Wright in Main branch]
2014-10-23 21:38:06 -04:00
James Golding
8724424c6b Add context menu option to material nodes for viewing documentation
#codereview matt.griffin

[CL 2286150 by James Golding in Main branch]
2014-09-05 08:25:23 -04:00
Simon Tovey
500b937055 - Removed UI for Dev/Release shaders in material editor. Dropped to a CVar and using release shaders by default.
- Removed UI for Built-In Stats. Martin didn't like the feature but I've left the code in just in case people miss it.
- Removed useless bar at the bottom of the stats window.
- Hackily canceled some unnessessary compilaton when opening the editor.

[CL 2272297 by Simon Tovey in Main branch]
2014-08-26 14:02:18 -04:00
Simon Tovey
74868c39f8 Live preview material editor button
Toggles the compilation of the preview material everytime an edit is made.

#ttp 333463 - LIVE: RENDERING: Shaders compile automatically even when Live Nodes and Live Updates are Deselected

The Live Update, Live Nodes (and now Live Preview) toggles clearly aren't universally understood. I've added the live preview toggle to do what this user wanted. It may be an idea to have some UI guys see if extra clarity can be had from tootips/docs/icons etc.

#reviewedby Graeme.Thornton

[CL 2130403 by Simon Tovey in Main branch]
2014-07-03 09:13:33 -04:00
James Golding
507c402a4e Remove Material Expression headers from Engine.h and only include where needed
#codereview nick.penwarden

[CL 2082041 by James Golding in Main branch]
2014-05-22 11:33:54 -04:00
Richard TalbotWatkin
adc520c0cd Added shortcut for component mask on Shift+C.
#ttp 332908 - Material editor: shortcut for component mask
#branch UE4
#proj Editor.MaterialEditor
#add Added new material editor action for CreateComponentMaskNode.
#add Created callback for creating a component mask node at the cursor.
#reviewedby Chris.Wood

[CL 2066775 by Richard TalbotWatkin in Main branch]
2014-05-08 05:29:54 -04:00
Simon Tovey
8693d7f362 Altered material editor stats to optionally use relase shaders and to display a "built-in" shader cost.
I've altered the preview material directly to compile with release shaders so that this incurs no overhead.
Refactored the empty material stuff to be neater and to report the base cost of the shader.
Reduced the shaders compiled for this empty stats material to the bare minimum. Typically 3-5, adding a near insignificat cost.

[CL 2054645 by Simon Tovey in Main branch]
2014-04-23 20:20:58 -04:00
Matthew Griffin
5bc027a1a0 #ttp 315757 - EDITOR: ME2: Add Find results window similar to the Blueprint Editor
#proj UE4.Engine

#summary Added Find Results tab to Material Editor

#add Added SFindInMaterial class to search and display results from materials, similar to the Blueprint version but didn't seem like there was an obvious method of splitting it up into a base class that could be used by both. Made sure to use the search functions from Material Expressions as well to ensure that the results will be the same or better than they were previously.

#change Added new function to UMaterialExpression to get a one line description of it. Most of the time this is just all of the expressions captions combined into one line using spaces, though there were exceptions for constants, textures and function calls so that better information is shown in the results window. Also added a JumpToNode function to FMaterialEditor so that the find results can show the nodes when clicked on.

#extra This is only for searching the current material at present, adding support for searching all assets would be a lot more work as we would need to store meta data allowing materials to be searched before they are loaded.

[CL 2043640 by Matthew Griffin in Main branch]
2014-04-23 18:21:07 -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