File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4822,13 +4822,13 @@ Error GLTFDocument::_parse_materials(Ref<GLTFState> p_state) {
4822
4822
material->set_transparency (BaseMaterial3D::TRANSPARENCY_ALPHA_DEPTH_PRE_PASS);
4823
4823
} else if (am == " MASK" ) {
4824
4824
material->set_transparency (BaseMaterial3D::TRANSPARENCY_ALPHA_SCISSOR);
4825
- if (material_dict.has (" alphaCutoff" )) {
4826
- material->set_alpha_scissor_threshold (material_dict[" alphaCutoff" ]);
4827
- } else {
4828
- material->set_alpha_scissor_threshold (0 .5f );
4829
- }
4830
4825
}
4831
4826
}
4827
+ if (material_dict.has (" alphaCutoff" )) {
4828
+ material->set_alpha_scissor_threshold (material_dict[" alphaCutoff" ]);
4829
+ } else {
4830
+ material->set_alpha_scissor_threshold (0 .5f );
4831
+ }
4832
4832
4833
4833
if (material_dict.has (" extras" )) {
4834
4834
_attach_extras_to_meta (material_dict[" extras" ], material);
You can’t perform that action at this time.
0 commit comments