Skip to content

Commit

Permalink
reassign the _geometryLight variable (#1694)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0e02867)
  • Loading branch information
cpichard authored and sebastienblor committed Sep 25, 2023
1 parent 94ccfd2 commit 6ff2c73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
- [usd#1673](https://github.com/Autodesk/arnold-usd/issues/1673) - UsdUvTexture ignores missing textures in hydra
- [usd#1675](https://github.com/Autodesk/arnold-usd/issues/1675) - Fix UsdUvTexture default wrap modes and uvset coordinates.
- [usd#1657](https://github.com/Autodesk/arnold-usd/issues/1657) - Fix a motion blur sampling bug happening when a mesh has facevarying indexed normals and different number of indices per key frame.

- [usd#1693](https://github.com/Autodesk/arnold-usd/issues/1693) - Fix geometry light not rendering in recent version.

### Build
- [usd#1648](https://github.com/Autodesk/arnold-usd/issues/1648) - Fix schemas generation issue that was intermittently failing
Expand Down
2 changes: 1 addition & 1 deletion libs/render_delegate/mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ AtNode *HdArnoldMesh::_GetMeshLight(HdSceneDelegate* sceneDelegate, const SdfPat
// We'll name it based on the mesh name, adding a light suffix
std::string lightName = AiNodeGetName(GetArnoldNode());
lightName += "/light";
_renderDelegate->CreateArnoldNode(str::mesh_light, AtString(lightName.c_str()));
_geometryLight = _renderDelegate->CreateArnoldNode(str::mesh_light, AtString(lightName.c_str()));
}
AiNodeSetPtr(_geometryLight, str::mesh, (void*)GetArnoldNode());
} else if (_geometryLight) {
Expand Down

0 comments on commit 6ff2c73

Please sign in to comment.