diff --git a/lib/mayaHydra/hydraExtensions/adapters/adapter.h b/lib/mayaHydra/hydraExtensions/adapters/adapter.h index c3f1d5990..0be4b60ac 100644 --- a/lib/mayaHydra/hydraExtensions/adapters/adapter.h +++ b/lib/mayaHydra/hydraExtensions/adapters/adapter.h @@ -117,7 +117,7 @@ class MayaHydraAdapter MAYAHYDRALIB_API virtual GfVec4f GetDisplayColor() const { return {1.f,1.f,1.f,1.f}; } - virtual bool WantBeLighted() const { return false; } + virtual bool Illuminated() const { return false; } protected: SdfPath _id; diff --git a/lib/mayaHydra/hydraExtensions/adapters/dagAdapter.h b/lib/mayaHydra/hydraExtensions/adapters/dagAdapter.h index 81fed0d5d..0c6106c53 100644 --- a/lib/mayaHydra/hydraExtensions/adapters/dagAdapter.h +++ b/lib/mayaHydra/hydraExtensions/adapters/dagAdapter.h @@ -80,7 +80,7 @@ class MayaHydraDagAdapter : public MayaHydraAdapter MAYAHYDRALIB_API VtValue GetInstancePrimvar(const TfToken& key); - bool WantBeLighted() const override {return (MFnDependencyNode(_dagPath.node()).typeName().asChar() == TfToken("mesh")); } + bool Illuminated() const override { return (MFnDependencyNode(_dagPath.node()).typeName().asChar() == TfToken("mesh")); } protected: MAYAHYDRALIB_API diff --git a/lib/mayaHydra/hydraExtensions/adapters/renderItemAdapter.cpp b/lib/mayaHydra/hydraExtensions/adapters/renderItemAdapter.cpp index 1bfdd561d..498a87e52 100644 --- a/lib/mayaHydra/hydraExtensions/adapters/renderItemAdapter.cpp +++ b/lib/mayaHydra/hydraExtensions/adapters/renderItemAdapter.cpp @@ -575,7 +575,7 @@ HdCullStyle MayaHydraRenderItemAdapter::GetCullStyle() const #endif } -bool MayaHydraRenderItemAdapter::WantBeLighted() const +bool MayaHydraRenderItemAdapter::Illuminated() const { // Special case to recognize the Arnold skydome light if ((_isArnoldSkyDomeLightTriangleShape)) { diff --git a/lib/mayaHydra/hydraExtensions/adapters/renderItemAdapter.h b/lib/mayaHydra/hydraExtensions/adapters/renderItemAdapter.h index bae81b3f9..e77a85bd6 100644 --- a/lib/mayaHydra/hydraExtensions/adapters/renderItemAdapter.h +++ b/lib/mayaHydra/hydraExtensions/adapters/renderItemAdapter.h @@ -173,7 +173,7 @@ class MayaHydraRenderItemAdapter : public MayaHydraAdapter MAYAHYDRALIB_API virtual TfToken GetRenderTag() const override; - bool WantBeLighted() const override; + bool Illuminated() const override; MAYAHYDRALIB_API SdfPath& GetMaterial() { return _material; } diff --git a/lib/mayaHydra/hydraExtensions/sceneIndex/mayaHydraSceneIndex.cpp b/lib/mayaHydra/hydraExtensions/sceneIndex/mayaHydraSceneIndex.cpp index f972ad495..a9be6665a 100644 --- a/lib/mayaHydra/hydraExtensions/sceneIndex/mayaHydraSceneIndex.cpp +++ b/lib/mayaHydra/hydraExtensions/sceneIndex/mayaHydraSceneIndex.cpp @@ -1407,7 +1407,7 @@ void MayaHydraSceneIndex::GetLightedPrimPaths(SdfPathVector& lightedPrimPaths) { _MapAdapter( [&](MayaHydraAdapter* a) { - if (a->WantBeLighted()) { + if (a->Illuminated()) { lightedPrimPaths.emplace_back(a->GetID()); } },