Skip to content

Commit

Permalink
Merge pull request #3883 from Autodesk/samuelliu-adsk/EMSUSD-1498/inv…
Browse files Browse the repository at this point in the history
…alid_light_fallback

EMSUSD-1498 - Add fallback light type for unsupported lights
  • Loading branch information
seando-adsk authored Aug 8, 2024
2 parents 0e258e8 + 95f69f6 commit 4d98e13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mayaUsd/ufe/UsdLight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ Ufe::Light::Type UsdLight::type() const
: Ufe::Light::Point;
}

return Ufe::Light::Invalid;
// In case of unknown light type, fallback to point light
return Ufe::Light::Point;
}

float getLightIntensity(const UsdPrim& prim)
Expand Down

0 comments on commit 4d98e13

Please sign in to comment.