Skip to content

Commit

Permalink
rename function name
Browse files Browse the repository at this point in the history
  • Loading branch information
lilike-adsk committed Nov 28, 2024
1 parent 8c6183e commit 347389b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/mayaHydra/hydraExtensions/adapters/adapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/mayaHydra/hydraExtensions/adapters/dagAdapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/mayaHydra/hydraExtensions/adapters/renderItemAdapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,7 @@ void MayaHydraSceneIndex::GetLightedPrimPaths(SdfPathVector& lightedPrimPaths)
{
_MapAdapter<MayaHydraAdapter>(
[&](MayaHydraAdapter* a) {
if (a->WantBeLighted()) {
if (a->Illuminated()) {
lightedPrimPaths.emplace_back(a->GetID());
}
},
Expand Down

0 comments on commit 347389b

Please sign in to comment.