Skip to content

Commit

Permalink
Merge pull request #807 from Autodesk/kxl-adsk/fixes_for_clang_format
Browse files Browse the repository at this point in the history
Necessary fixes required before we can apply clang format
  • Loading branch information
Krystian Ligenza authored Oct 2, 2020
2 parents f94bcfa + 4b05960 commit 2135906
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ IncludeBlocks: Regroup
IncludeCategories:

# Desired final ordering:
# 0. Glew must be included before any other GL header
# 1. Related header
# 2. All private headers
# 3. All public headers from this repository (maya-usd)
Expand All @@ -35,6 +36,11 @@ IncludeCategories:
# 8. C system headers
# 9. Conditional includes

# 0. Glew must be included before any other GL header
# Negative priority puts it above the default IncludeIsMainRegex
- Regex: '<pxr/imaging/glf/glew.h>'
Priority: -1

# 1. Related header
# Handled by the default IncludeIsMainRegex regex, and auto-assigned
# Priority 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <AL/maya/utils/FileTranslatorBase.h>
#include <AL/maya/utils/PluginTranslatorOptions.h>
#include <AL/usdmaya/Api.h>
#include <AL/usdmaya/fileio/ExportParams.h>

namespace AL {
namespace usdmaya {
Expand Down
2 changes: 2 additions & 0 deletions plugin/al/lib/AL_USDMaya/AL/usdmaya/nodes/ProxyDrawOverride.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ namespace AL {
namespace usdmaya {
namespace nodes {

class ProxyShape;

//----------------------------------------------------------------------------------------------------------------------
/// \brief This class provides the draw override for the USD proxy shape node.
/// \ingroup nodes
Expand Down
2 changes: 2 additions & 0 deletions plugin/al/lib/AL_USDMaya/AL/usdmaya/nodes/Scope.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
//
#pragma once

#include "AL/maya/utils/MayaHelperMacros.h"
#include "AL/maya/utils/NodeHelper.h"
#include "AL/usdmaya/TypeIDs.h"

#include <maya/MObjectHandle.h>
#include <maya/MPxTransform.h>
Expand Down
8 changes: 7 additions & 1 deletion plugin/al/translators/Mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
#pragma once
#include "AL/usdmaya/fileio/translators/TranslatorBase.h"

PXR_NAMESPACE_OPEN_SCOPE

// forward declare usd types
class UsdGeomMesh;

PXR_NAMESPACE_CLOSE_SCOPE

namespace AL{
namespace usdmaya{
Expand Down Expand Up @@ -55,7 +61,7 @@ class Mesh : public TranslatorBase
kPerformDiff = 1 << 0,
kDynamicAttributes = 1 << 1
};
void writeEdits(MDagPath& dagPath, UsdGeomMesh& geomPrim, uint32_t options = kDynamicAttributes);
void writeEdits(MDagPath& dagPath, PXR_NS::UsdGeomMesh& geomPrim, uint32_t options = kDynamicAttributes);
static MObject m_visible;

};
Expand Down
9 changes: 8 additions & 1 deletion plugin/al/translators/NurbsCurve.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
#pragma once
#include "AL/usdmaya/fileio/translators/TranslatorBase.h"

PXR_NAMESPACE_OPEN_SCOPE

// forward declare usd types
class UsdGeomNurbsCurves;

PXR_NAMESPACE_CLOSE_SCOPE

namespace AL {
namespace usdmaya {
namespace fileio {
Expand Down Expand Up @@ -49,7 +56,7 @@ class NurbsCurve : public TranslatorBase
{ return true; }

private:
void writeEdits(UsdGeomNurbsCurves& nurbsCurvesPrim, MFnNurbsCurve& fnCurve, bool writeAll);
void writeEdits(PXR_NS::UsdGeomNurbsCurves& nurbsCurvesPrim, MFnNurbsCurve& fnCurve, bool writeAll);

static MObject m_visible;
};
Expand Down

0 comments on commit 2135906

Please sign in to comment.