Skip to content

Commit

Permalink
fix: decrease outline color alpha in solid mode
Browse files Browse the repository at this point in the history
  • Loading branch information
saturday06 committed Jun 9, 2024
1 parent 8c70755 commit c81ff44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/io_scene_vrm/editor/mtoon1/property_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -2189,11 +2189,14 @@ def update_outline_color_factor(self, context: Context) -> None:
outline_principled_bsdf = PrincipledBSDFWrapper(
outline_material, is_readonly=False
)

outline_diffuse_alpha = outline_material.diffuse_color[3]
outline_principled_bsdf.base_color = (
self.outline_color_factor[0],
self.outline_color_factor[1],
self.outline_color_factor[2],
)
outline_material.diffuse_color[3] = outline_diffuse_alpha

outline_color_factor: FloatVectorProperty( # type: ignore[valid-type]
name=shader.OUTPUT_GROUP_OUTLINE_COLOR_FACTOR_LABEL,
Expand Down

0 comments on commit c81ff44

Please sign in to comment.