Bugfix: allow 0 for noise

This commit is contained in:
Lukas Klass 2020-06-08 11:34:49 +02:00
parent 98fac7e874
commit 7e174381b8

View File

@ -45,7 +45,7 @@ class AOpticalComponent(IRadiant):
self.__parent = parent self.__parent = parent
if transreflectivity: if transreflectivity:
self.__transreflectivity = transreflectivity self.__transreflectivity = transreflectivity
if noise: if noise is not None:
self.__noise = noise self.__noise = noise
self.__obstruction = obstruction self.__obstruction = obstruction
self.__obstructor_temp = obstructor_temp self.__obstructor_temp = obstructor_temp