Commit Graph

803 Commits

Author SHA1 Message Date
sebastien hillaire
eff56c2a11 Substrate - Renaming - Strata class redirection to Substrate class.
#rb none
[FYI] charles.derousiers

[CL 27518277 by sebastien hillaire in ue5-main branch]
2023-08-31 07:55:22 -04:00
charles derousiers
98b2687a22 Fix CIS non-unity build.
#rb none

[CL 27515646 by charles derousiers in ue5-main branch]
2023-08-31 05:24:50 -04:00
charles derousiers
38bf8fb30e Fix CIS unity build issue.
#rb none

[CL 27515351 by charles derousiers in ue5-main branch]
2023-08-31 05:00:46 -04:00
charles derousiers
195d4a8fe8 * Fix Substrate colored connection on input
* Add colored pin for Substrate data flow

#rb none
[FYI] sebastien.hillaire

[CL 27515051 by charles derousiers in ue5-main branch]
2023-08-31 04:49:11 -04:00
sebastien hillaire
b7f8af4297 Substrate - Rename/move file(s)
#rb none
[FYI] charles.derousiers

[CL 27515000 by sebastien hillaire in ue5-main branch]
2023-08-31 04:48:07 -04:00
sebastien hillaire
4f274d1ef3 Substrate - Rename/move file(s)
#rb none
[FYI] charles.derousiers

[CL 27514986 by sebastien hillaire in ue5-main branch]
2023-08-31 04:47:50 -04:00
charles derousiers
fc598811b5 Add color Substrate wire.
#rb none
[FYI] sebastien.hillaire

[CL 27514913 by charles derousiers in ue5-main branch]
2023-08-31 04:46:18 -04:00
Mateo Egey
3d5afe2ae9 Made the title border margin configurable via protected member
#jira none
#rb patrick.boutot

[CL 27485897 by Mateo Egey in ue5-main branch]
2023-08-30 11:35:14 -04:00
Mateo Egey
c0bdf180d5 Graph Nodes can now specify what overflow policy to use for the node title
#jira none
#rb

[CL 27443290 by Mateo Egey in ue5-main branch]
2023-08-29 09:23:12 -04:00
sara schvartzman
20fd023194 RigVM: Fix crash when clicking on pin of default node in details panel
#jira UE-189034
#rb helge.mathee
#rnx

[CL 27071658 by sara schvartzman in ue5-main branch]
2023-08-14 11:33:22 -04:00
kirill zorin
e1d4ae74ed Preemprively fixing compile errors ahead of API deprecation.
#rb trivial

[CL 26785872 by kirill zorin in ue5-main branch]
2023-08-02 16:05:28 -04:00
geordiemhall
57ee928f20 PR #9389: Allow using "spawn node" keyboard shortcuts while dragging from a pin
#jira UE-159588

[CL 26780272 by geordiemhall in ue5-main branch]
2023-08-02 14:08:05 -04:00
dan oconnor
2113776926 Fix ensure after a drag enter handler runs after a mouse down handler has invalidated the graph
#rb Jodon.Karlik
#jira UE-187287

[CL 26749417 by dan oconnor in ue5-main branch]
2023-08-01 15:06:21 -04:00
luc rosenzweig
47187a5b36 Added copyright boilerplate to SGraphNodeMaterialCustom.cpp
#jira UE-146779
#rb jason.nadro

[CL 26678553 by luc rosenzweig in ue5-main branch]
2023-07-28 13:24:36 -04:00
luc rosenzweig
c9eb19e6cd This changelist contains both a refactor of the material graph system, as well as an improved custom HLSL node.
The first series of changes relate to modifying the way that SGraphNode* inheritants are created. Previously, NodeFactory was responsible of creating the SGraphNode* inheritants based on some runtime type checking (which basically means a series of if statements checking if the passed in pointer is of a certain child class type). Now, the UMaterialGraph* inheritants (the controller classes in the MVC paradigm of the material graph) are responsible for creating their own UI components (SGraphNode* inheritants). This just means that we now polymorphically create the proper SGraphNode* for the given UMaterialGraph* inheritant.

This refactor allows us to more flexibly create a variety of nodes types instead of relying on SGraphNodeMaterialBase as a one size fits all solution, leading to the new HLSL custom node. Previously, this node didn't support showing the syntax-highlighted code inline in the node itself. Because we now use polymorphism to create the nodes, it was very easy to create new UMaterialGraph* and SGraphNode* inheritants to support this new change.

Other changes which relate to propagating changes (to affect previews) in MaterialGraphNode.cpp are needed because there previously wasn't the mechanism to do so (which may have been a bug). For instance, suppose you had a constant vector3 feeding into a custom HLSL node which just outputs the color coming from that constant vector3 node. It would be obvious that changing the vector3, requires a preview update of the HLSL node. However, that wouldn't happen - the preview on the HLSL node just stayed the same. These changes addresses that issue.

There is one last series of changes which relates to collapsing the HLSL code in the node. We want to make sure that this change doesn't mess up the layouts of artists' already made material graphs which use the custom HLSL node. In order to address this, we added the ability to collapse the code in order to hide it. Furthermore, we had to make sure that projects which previously used a custom HLSL node, have the code collapsed by default (because it wasn't there before). However, creating a new HLSL node once this change comes in, would yield an uncollapsed node. The collapsing of nodes uses the "Advanced Pins" chevron/collapser which doesn't save its state after saving and exiting the material. It was crucial, in order to preserve the layout of the material graph, that the saving happens. However, previously, the only way to save state, was to go through a recompile/regeneration of the previews. Therefore, it was necessary to add a special function in the material editor utilities which would just mark the material as dirty such that states like whether the code was collapsed save throughout sessions.

#jira UE-146779
#rb jason.nadro

[CL 26677757 by luc rosenzweig in ue5-main branch]
2023-07-28 13:01:00 -04:00
jordan hoffmann
91c069406a [BugFix] False positive "Link Moved" diff callouts on Blueprint Diff tool
#jira UE-186242
#rb dan.oconnor, jodon.karlik

[CL 26558817 by jordan hoffmann in ue5-main branch]
2023-07-24 18:55:16 -04:00
tyson brochu
d5364aa75a GraphEditor: add a new delegate that is called when the user single-clicks on a node
Cloth Editor: fix for interactive tool starting when the user drags a node in the dataflow graph editor


#jira UE-190816
#rb daren.cheng alex.mcadams

[CL 26547957 by tyson brochu in ue5-main branch]
2023-07-24 12:55:46 -04:00
ben hoffman
c5763e7ee0 Add custom styleset support for K2Nodes
#rb JeanMichel.Dignard

#ushell-cherrypick of 26229658 by kristof.morva1

[CL 26232169 by ben hoffman in ue5-main branch]
2023-06-26 09:13:49 -04:00
marc audy
dbe38354bf Remove #pragma once in cpp
#rnx
#jira

[CL 26023553 by marc audy in ue5-main branch]
2023-06-15 15:43:09 -04:00
charles derousiers
8e2b49e234 Fix CIS issue.
#rb none

[CL 26008408 by charles derousiers in ue5-main branch]
2023-06-15 06:30:59 -04:00
charles derousiers
6e8c3956cb Fix CIS issue.
#rb none

[CL 26007973 by charles derousiers in ue5-main branch]
2023-06-15 06:07:01 -04:00
sebastien hillaire
2659a75eed Substrate - added support for progressive simplification of material, starting from operators at the bottom.
#rb none
[FYI] charles.derousiers

[CL 26006829 by sebastien hillaire in ue5-main branch]
2023-06-15 05:22:20 -04:00
charles derousiers
399028fca0 Change Substrate topology node color.
#rb none

[CL 26006822 by charles derousiers in ue5-main branch]
2023-06-15 05:22:15 -04:00
charles derousiers
604f834cb5 Add Subsutrate topology previsualization on the Substrate node within material editor.
#rb none
[FYI] sebastien.hillaire

[CL 26006816 by charles derousiers in ue5-main branch]
2023-06-15 05:22:00 -04:00
marc audy
d1f48fc5c8 Fix implicit capture of this using [=] deprecated in C++20
#jira
#rnx

[CL 25989494 by marc audy in ue5-main branch]
2023-06-14 15:07:58 -04:00