Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address remaining feedback in lib/usd and plugin/adsk #408

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/usd/hdMaya/adapters/materialAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@
#include <pxr/usdImaging/usdImaging/tokens.h>
#include <pxr/usdImaging/usdImagingGL/package.h>

#if USD_VERSION_NUM >= 1911
#include <pxr/imaging/hdSt/textureResourceHandle.h>
#endif

#include <hdMaya/adapters/adapterRegistry.h>
#include <hdMaya/adapters/materialNetworkConverter.h>
#include <hdMaya/adapters/mayaAttrs.h>
#include <hdMaya/adapters/tokens.h>
#include <hdMaya/utils.h>

#if USD_VERSION_NUM >= 1911
#include <pxr/imaging/hdSt/textureResourceHandle.h>
#endif

PXR_NAMESPACE_OPEN_SCOPE

namespace {
Expand Down
13 changes: 6 additions & 7 deletions lib/usd/hdMaya/adapters/proxyAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,16 @@
#include <maya/MTime.h>
#include <maya/MGlobal.h>

#if WANT_UFE_BUILD
#include <ufe/rtid.h>
#include <ufe/runTimeMgr.h>
#endif // WANT_UFE_BUILD

#include <mayaUsd/nodes/proxyShapeBase.h>

#include <hdMaya/adapters/adapterRegistry.h>
#include <hdMaya/debugCodes.h>
#include <hdMaya/delegates/proxyDelegate.h>
#include <hdMaya/delegates/sceneDelegate.h>
#include <mayaUsd/nodes/proxyShapeBase.h>

#if WANT_UFE_BUILD
#include <ufe/rtid.h>
#include <ufe/runTimeMgr.h>
#endif // WANT_UFE_BUILD

PXR_NAMESPACE_OPEN_SCOPE

Expand Down
6 changes: 3 additions & 3 deletions lib/usd/hdMaya/delegates/delegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
#include <pxr/imaging/hdx/taskController.h>
#include <pxr/usd/sdf/path.h>

#include <hdMaya/api.h>
#include <hdMaya/delegates/params.h>

#if USD_VERSION_NUM >= 1911
#include <pxr/imaging/hd/rendererPlugin.h>
#else
Expand All @@ -43,9 +46,6 @@ PXR_NAMESPACE_CLOSE_SCOPE
#include <ufe/selection.h>
#endif // WANT_UFE_BUILD

#include <hdMaya/api.h>
#include <hdMaya/delegates/params.h>

PXR_NAMESPACE_OPEN_SCOPE

class HdMayaDelegate {
Expand Down
11 changes: 5 additions & 6 deletions lib/usd/hdMaya/delegates/proxyDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,16 @@
#include <pxr/base/tf/envSetting.h>
#include <pxr/base/tf/type.h>

#include <hdMaya/adapters/proxyAdapter.h>
#include <hdMaya/debugCodes.h>
#include <hdMaya/delegates/delegateRegistry.h>
#include <mayaUsd/nodes/proxyShapeBase.h>

#if WANT_UFE_BUILD
#include <ufe/rtid.h>
#include <ufe/runTimeMgr.h>
#endif // WANT_UFE_BUILD

#include <mayaUsd/nodes/proxyShapeBase.h>

#include <hdMaya/adapters/proxyAdapter.h>
#include <hdMaya/debugCodes.h>
#include <hdMaya/delegates/delegateRegistry.h>

PXR_NAMESPACE_OPEN_SCOPE

TF_DEFINE_PRIVATE_TOKENS(_tokens, (HdMayaProxyDelegate));
Expand Down
4 changes: 2 additions & 2 deletions lib/usd/hdMaya/delegates/proxyDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
#include <pxr/usd/usd/stage.h>
#include <pxr/usdImaging/usdImaging/delegate.h>

#include <hdMaya/delegates/delegate.h>

#if WANT_UFE_BUILD
#include <ufe/selection.h>
#endif // WANT_UFE_BUILD

#include <hdMaya/delegates/delegate.h>

PXR_NAMESPACE_OPEN_SCOPE

class HdMayaProxyAdapter;
Expand Down
2 changes: 1 addition & 1 deletion lib/usd/schemas/wrapALMayaReference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@

#include <boost/python.hpp>

#include <pxr/usd/usd/schemaBase.h>
#include <pxr/base/tf/pyContainerConversions.h>
#include <pxr/base/tf/pyResultConversions.h>
#include <pxr/base/tf/pyUtils.h>
#include <pxr/base/tf/wrapTypeHelpers.h>
#include <pxr/usd/sdf/primSpec.h>
#include <pxr/usd/usd/pyConversions.h>
#include <pxr/usd/usd/schemaBase.h>

#include <mayaUsd_Schemas/ALMayaReference.h>

Expand Down
36 changes: 0 additions & 36 deletions lib/usd/translators/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,42 +46,6 @@ target_sources(${TARGET_NAME}
xformReader.cpp
)

set(headers
api.h
cameraReader.h
cameraWriter.h
fileTextureWriter.h
instancerWriter.h
jointWriter.h
lightReader.h
lightWriter.h
locatorWriter.h
materialReader.h
mayaReferenceReader.h
mayaReferenceUpdater.h
meshReader.h
meshWriter.h
meshWriter_Primvars.h
meshWriter_Skin.h
meshWriter_Subdiv.h
nurbsCurvesReader.h
nurbsCurveWriter.h
nurbsPatchReader.h
nurbsSurfaceWriter.h
particleWriter.h
scopeReader.h
skelReader.h
strokeWriter.h
xformReader.h
)

# -----------------------------------------------------------------------------
# promoted headers
# -----------------------------------------------------------------------------
mayaUsd_promoteHeaderList(HEADERS ${headers}
BASEDIR ${TARGET_NAME}
)

# -----------------------------------------------------------------------------
# compile definitions
# -----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion lib/usd/translators/cameraWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef PXRUSDTRANSLATORS_CAMERA_WRITER_H
#define PXRUSDTRANSLATORS_CAMERA_WRITER_H

/// \file pxrUsdTranslators/cameraWriter.h
/// \file

#include <maya/MFnDependencyNode.h>

Expand Down
2 changes: 1 addition & 1 deletion lib/usd/translators/fileTextureWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef PXRUSDTRANSLATORS_FILE_TEXTURE_WRITER_H
#define PXRUSDTRANSLATORS_FILE_TEXTURE_WRITER_H

/// \file pxrUsdTranslators/fileTextureWriter.h
/// \file

#include <maya/MFnDependencyNode.h>

Expand Down
2 changes: 1 addition & 1 deletion lib/usd/translators/instancerWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef PXRUSDTRANSLATORS_INSTANCER_WRITER_H
#define PXRUSDTRANSLATORS_INSTANCER_WRITER_H

/// \file pxrUsdTranslators/instancerWriter.h
/// \file

#include <vector>

Expand Down
2 changes: 1 addition & 1 deletion lib/usd/translators/jointWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef PXRUSDTRANSLATORS_JOINT_WRITER_H
#define PXRUSDTRANSLATORS_JOINT_WRITER_H

/// \file pxrUsdTranslators/jointWriter.h
/// \file

#include <maya/MFnDependencyNode.h>

Expand Down
2 changes: 1 addition & 1 deletion lib/usd/translators/locatorWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef PXRUSDTRANSLATORS_LOCATOR_WRITER_H
#define PXRUSDTRANSLATORS_LOCATOR_WRITER_H

/// \file pxrUsdTranslators/locatorWriter.h
/// \file

#include <maya/MFnDependencyNode.h>

Expand Down
2 changes: 0 additions & 2 deletions lib/usd/translators/mayaReferenceUpdater.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
#ifndef PXRUSDTRANSLATORS_MAYAREFERENCE_UPDATER_H
#define PXRUSDTRANSLATORS_MAYAREFERENCE_UPDATER_H

/// \file pxrUsdTranslators/mayaReferenceUpdater.h

#include <maya/MFnDependencyNode.h>

#include <pxr/pxr.h>
Expand Down
2 changes: 1 addition & 1 deletion lib/usd/translators/meshWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef PXRUSDTRANSLATORS_MESH_WRITER_H
#define PXRUSDTRANSLATORS_MESH_WRITER_H

/// \file pxrUsdTranslators/meshWriter.h
/// \file

#include <set>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion lib/usd/translators/meshWriter_Primvars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <mayaUsd/utils/colorSpace.h>
#include <mayaUsd/utils/util.h>

#include <mayaUsd_Translators/meshWriter.h>
#include "meshWriter.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meshWriter.h to me is the related header for this file, so I'd think it should go at the top in a group of its own.


PXR_NAMESPACE_OPEN_SCOPE

Expand Down
4 changes: 2 additions & 2 deletions lib/usd/translators/meshWriter_Skin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
#include <mayaUsd/fileio/translators/translatorUtil.h>
#include <mayaUsd/fileio/writeJobContext.h>

#include <mayaUsd_Translators/jointWriter.h>
#include <mayaUsd_Translators/meshWriter.h>
#include "jointWriter.h"
#include "meshWriter.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meshWriter.h is the related header so it should go at the top.


PXR_NAMESPACE_OPEN_SCOPE

Expand Down
2 changes: 1 addition & 1 deletion lib/usd/translators/meshWriter_Subdiv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <pxr/pxr.h>
#include <pxr/usd/usdGeom/mesh.h>

#include <mayaUsd_Translators/meshWriter.h>
#include "meshWriter.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meshWriter.h is the related header so it should go at the top.


PXR_NAMESPACE_OPEN_SCOPE

Expand Down
2 changes: 1 addition & 1 deletion lib/usd/translators/nurbsCurveWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef PXRUSDTRANSLATORS_NURBS_CURVE_WRITER_H
#define PXRUSDTRANSLATORS_NURBS_CURVE_WRITER_H

/// \file pxrUsdTranslators/nurbsCurveWriter.h
/// \file

#include <maya/MFnDependencyNode.h>

Expand Down
2 changes: 1 addition & 1 deletion lib/usd/translators/nurbsSurfaceWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef PXRUSDTRANSLATORS_NURBS_SURFACE_WRITER_H
#define PXRUSDTRANSLATORS_NURBS_SURFACE_WRITER_H

/// \file pxrUsdTranslators/nurbsSurfaceWriter.h
/// \file

#include <maya/MFnDependencyNode.h>

Expand Down
3 changes: 2 additions & 1 deletion lib/usd/translators/particleWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
#ifndef PXRUSDTRANSLATORS_PARTICLE_WRITER_H
#define PXRUSDTRANSLATORS_PARTICLE_WRITER_H

/// \file pxrUsdTranslators/particleWriter.h
/// \file

#include <mayaUsd/fileio/transformWriter.h>
#include <mayaUsd/fileio/writeJobContext.h>

Expand Down
2 changes: 1 addition & 1 deletion lib/usd/translators/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <pxr/pxr.h>

#include <mayaUsd_Translators/api.h>
#include "api.h"

PXR_NAMESPACE_USING_DIRECTIVE

Expand Down
2 changes: 2 additions & 0 deletions lib/usd/translators/strokeWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#ifndef PXRUSDTRANSLATORS_STROKE_WRITER_H
#define PXRUSDTRANSLATORS_STROKE_WRITER_H

/// \file

#include <maya/MFnDependencyNode.h>

#include <pxr/pxr.h>
Expand Down
18 changes: 9 additions & 9 deletions plugin/adsk/plugin/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,6 @@
#include <pxr/base/plug/plugin.h>
#include <pxr/base/plug/registry.h>

#include <mayaUsd/utils/undoHelperCommand.h>
#if defined(WANT_QT_BUILD)
#include <mayaUsdUI/ui/USDImportDialogCmd.h>
#endif

#if defined(WANT_UFE_BUILD)
#include <mayaUsd/ufe/Global.h>
#endif

#include <mayaUsd/base/api.h>
#include <mayaUsd/nodes/proxyShapeBase.h>
#include <mayaUsd/nodes/proxyShapePlugin.h>
Expand All @@ -44,6 +35,15 @@
#include "importTranslator.h"
#include "ProxyShape.h"

#include <mayaUsd/utils/undoHelperCommand.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This include is not part of a conditional and should stay with the mayaUsd group above.

#if defined(WANT_QT_BUILD)
#include <mayaUsdUI/ui/USDImportDialogCmd.h>
#endif

#if defined(WANT_UFE_BUILD)
#include <mayaUsd/ufe/Global.h>
#endif

PXR_NAMESPACE_USING_DIRECTIVE

MAYAUSD_PLUGIN_PUBLIC
Expand Down