Failed to import environment from DAZ Studio 4.15.0.2

Issue #366 resolved
Amy Moo created an issue

The script failed at the end of the process when importing a scene with an environment, which is new in DAZ Studio 4.15.0.2.

The issue is located at render.py line 128:

if not foundenv and mode in [0,3] and not isBlack(self.background):

I replaced that line with:

if not foundenv and mode in [0,3] and not self.background is None and not isBlack(self.background):

Please review your code. I think checking if “self.background is None” has to be done in this case because we cannot assume there is a self.background.

Comments (2)

  1. Log in to comment