Skip to content

Commit a4286f3

Browse files
authored
Merge pull request #347 from AsoboStudio/fix_environment_occluder
Fix default value of alpha in environment occluder
2 parents b81f6bd + b9568d7 commit a4286f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/io_scene_gltf2_msfs_2020/blender/material/msfs_material_environment_occluder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
from ..msfs_material_function import MSFS2020_Material
16-
16+
from .utils.msfs_material_enum import MSFS2020_PrincipledBSDFInputs
1717

1818
class MSFS2020_Environment_Occluder(MSFS2020_Material):
1919
def __init__(self, material, buildTree=False):
@@ -22,4 +22,4 @@ def __init__(self, material, buildTree=False):
2222
def customShaderTree(self):
2323
super().defaultShadersTree()
2424
principledBSDF = self.getNodesByClassName("ShaderNodeBsdfPrincipled")[0]
25-
principledBSDF.inputs[21].default_value = 0
25+
principledBSDF.inputs[MSFS2020_PrincipledBSDFInputs.alpha.value].default_value = 0

0 commit comments

Comments
 (0)