From 5c69f5656f5ead005d97e7825f3945c93baa5fc7 Mon Sep 17 00:00:00 2001 From: Rakesh R Date: Tue, 28 May 2024 10:24:21 -0400 Subject: [PATCH] style changes --- .../sceneIndex/fvpPruneTexturesSceneIndex.cpp | 9 +++++---- lib/flowViewport/sceneIndex/fvpPruneTexturesSceneIndex.h | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/flowViewport/sceneIndex/fvpPruneTexturesSceneIndex.cpp b/lib/flowViewport/sceneIndex/fvpPruneTexturesSceneIndex.cpp index d2c1561bb2..b9a0929e54 100644 --- a/lib/flowViewport/sceneIndex/fvpPruneTexturesSceneIndex.cpp +++ b/lib/flowViewport/sceneIndex/fvpPruneTexturesSceneIndex.cpp @@ -14,9 +14,10 @@ // #include "flowViewport/sceneIndex/fvpPruneTexturesSceneIndex.h" -#include "pxr/base/tf/staticTokens.h" -#include "pxr/imaging/hd/sceneIndexPrimView.h" -#include "pxr/imaging/hd/materialSchema.h" + +#include +#include +#include #include namespace FVP_NS_DEF { @@ -46,7 +47,7 @@ _PruneTexturesFromMatNetwork( // Look for incoming connection(textures) to surface shader params TfTokenVector inputConnections = networkInterface->GetNodeInputConnectionNames(nodeName); for (TfToken const &connection : inputConnections) { - // Trivially input connections. + // Trivially remove all input connections to match Maya VP2 behavior networkInterface->DeleteNodeInputConnection(nodeName, connection); } } diff --git a/lib/flowViewport/sceneIndex/fvpPruneTexturesSceneIndex.h b/lib/flowViewport/sceneIndex/fvpPruneTexturesSceneIndex.h index 079616eabb..336dbbf8c1 100644 --- a/lib/flowViewport/sceneIndex/fvpPruneTexturesSceneIndex.h +++ b/lib/flowViewport/sceneIndex/fvpPruneTexturesSceneIndex.h @@ -18,9 +18,9 @@ #include "flowViewport/api.h" #include "flowViewport/sceneIndex/fvpSceneIndexUtils.h" -#include "pxr/imaging/hdsi/api.h" -#include "pxr/imaging/hd/materialFilteringSceneIndexBase.h" -#include "pxr/imaging/hd/materialNetworkInterface.h" +#include +#include +#include namespace FVP_NS_DEF {