Commit Graph

85 Commits

Author SHA1 Message Date
Matt Kuhlenschmidt
e5c04df58a Fix crash copy and pasting material function call nodes while live preview is disabled. We now properly update the node from the material function resource
https://jira.ol.epicgames.net/browse/UE-17746

[CL 2607678 by Matt Kuhlenschmidt in Main branch]
2015-07-01 12:55:20 -04:00
Simon Tovey
d76ace05e2 UE-17106 - Change the dynamic parameter default value back to 1.
Added DefaultValue property to DynamicParameter material node. This defaults to 1 for new materials but 0 for existing ones to maintain current behavior.
This default is used for all vertex factories other than those for particles. In particle vertex factories, the dynamic parameter is used, as before. Sometimes coming from vertex data, others coming from a default vertex buffer filled with 1.0.

Also, defaulted the DynamicParameter on the cascade side to 1.0 to improve workflow that side too.

#codereview Olaf.Piesche

[CL 2605332 by Simon Tovey in Main branch]
2015-06-30 05:54:23 -04:00
Matt Kuhlenschmidt
b191daa248 Undo/Redo for switching material domains now properly updates the views in the material editor
[CL 2596064 by Matt Kuhlenschmidt in Main branch]
2015-06-22 16:10:43 -04:00
Matt Kuhlenschmidt
9f83927366 Added a UI material domain for all Slate and UMG materials
- Automatically upgraded all materials

When using the UI material domain the material editor and material instance editor is streamlined and only displays parts of the UI that are relevant:
- Changes to a preview material rendered with the UI shader
- Removes non-UI specific settings
- Renames some output pins and hides irrelevant ones
- Shows stats for UI shader

[CL 2596027 by Matt Kuhlenschmidt in Main branch]
2015-06-22 15:55:50 -04:00
Matt Kuhlenschmidt
6cda1e8193 Added error message if a material expression parameter name is too long.
Added the ability to display an error popup on the node if text verification fails.  The code existed for this but was non-functional

[CL 2583007 by Matt Kuhlenschmidt in Main branch]
2015-06-10 13:53:25 -04:00
Richard TalbotWatkin
3b33869a71 Fixed crash converting texture sample to parameter when MipValue is set to "Level" or "Bias".
#jira UE-16181 - UDN: Crash: Converting Texture Sample to Parameter when MipValue set to "Level" or "Bias"

[CL 2568380 by Richard TalbotWatkin in Main branch]
2015-05-28 09:07:21 -04:00
Jamie Dale
837ec025dd Added overrides for GetToolkitToolTipText where required
UE-16078 - Crash hovering over texture reference in material

A lot of asset editors were overriding GetToolkitName to implement custom logic (sometimes because the default logic would cause a crash), and these asset editors now also need to override GetToolkitToolTipText too.

[CL 2564832 by Jamie Dale in Main branch]
2015-05-26 09:14:55 -04:00
bradgrantham
c3e1660cdc PR #1168: Added hooks to Material Editor for plugin support (Contributed by bradgrantham)
[CL 2561139 by Matt Kuhlenschmidt in Main branch]
2015-05-21 14:20:41 -04:00
Richard TalbotWatkin
3cb9d92e18 Backed out CL 2502504 and CL 2472018. This needs a different fix.
#jira UE-15101 - Re-importing a texture recompiles any open material that references it

[CL 2548945 by Richard TalbotWatkin in Main branch]
2015-05-13 10:34:08 -04:00
Richard TalbotWatkin
d42b467966 Fix so that material instance instances in placed meshes are not affected when a parent's parameter name is changed.
#jira UE-8392 - Renaming Parameters resets all Instances in Level and Thumbnails

[CL 2533697 by Richard TalbotWatkin in Main branch]
2015-05-01 11:01:10 -04:00
Dan Hertzka
dd74179c7a [UE-1518] - Simple hookup of new editor icons
[CL 2532543 by Dan Hertzka in Main branch]
2015-04-30 16:52:00 -04:00
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
Rolando Caloca
27d7a0e070 UE4 - Fix ES3.1 emulation shader issues
#codereview Allan.Bentham

[CL 2514517 by Rolando Caloca in Main branch]
2015-04-16 13:02:21 -04:00
Michael Schoell
3f52b7d131 In "Region and Language" you can toggle localization of node and pins in all graph editors.
SNodeTitle no longer compares cached node titles to the title the node wants to be to determine a reconstruction, it checks if the schema wants to purge all cached node titles.

#jira UE-8371 - Change Editor language while leaving Blueprint Editor node & pin names in English

[CL 2508681 by Michael Schoell in Main branch]
2015-04-10 14:37:56 -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
Marc Audy
4562acb429 Fix shadow variables
[CL 2507160 by Marc Audy in Main branch]
2015-04-09 15:23:52 -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
Richard TalbotWatkin
a7eb9c7a6d Fix so that material thumbnail is updated when a dependent texture is reimported.
#jira UE-10802 - Re-importing and overwriting a normal texture that is used by a material breaks the material

[CL 2502504 by Richard TalbotWatkin in Main branch]
2015-04-06 05:12:48 -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
Dan Hertzka
c3e27d84e2 Material editor viewport now properly drives Slate tick/paint when realtime is enabled
[CL 2472375 by Dan Hertzka in Main branch]
2015-03-09 10:00:46 -04:00
Richard TalbotWatkin
439cad4f2a Material editor preview now refreshes correctly when a referenced texture is (re)imported.
#jira UE-10802 - Re-importing and overwriting a normal texture that is used by a material breaks the material
#reviewedby Matt.Kuhlenschmidt

[CL 2472018 by Richard TalbotWatkin in Main branch]
2015-03-08 15:25:46 -04:00
Michael Noland
a7aa52f10c Material Editor: Add support for previewing any kind of asset with an associated UMeshComponent subclass, such as static meshes, skeletal meshes, and Paper2D sprites
[UE-10085]

[CL 2451301 by Michael Noland in Main branch]
2015-02-19 00:33:19 -05:00
Mikolaj Sieluzycki
52c71176ab Rename StaticConstructObject to StaticConstructObject_Internal and use it only in CoreUObject module. Change rest of usages to NewObject.
#codereview Robert.Manuszewski

[CL 2437731 by Mikolaj Sieluzycki in Main branch]
2015-02-09 05:43:45 -05: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
Daniel Wright
30d41a588f Only recompile materials on save if dirty
[CL 2426340 by Daniel Wright in Main branch]
2015-01-30 16:12:10 -05:00