Add comprehensive tests for edge depth extension, empty image edits, and material view adaptation
- Introduced `test_edge_depth.py` to validate the functionality of edge depth extension, ensuring core alpha preservation, proper depth handling, and edge padding behavior. - Created `test_empty_image_edits.py` to verify the behavior of image edits in Blender, focusing on shared edits, preservation of image properties, and handling of failed operations. - Developed `test_material_view_adaptation.py` to test material adaptation preferences, ensuring color space and alpha settings are correctly applied and preserved across various scenarios.
This commit is contained in:
@@ -258,6 +258,27 @@ def cutout_generate_normal_property():
|
||||
)
|
||||
|
||||
|
||||
def cutout_alpha_threshold_property():
|
||||
return bpy.props.FloatProperty(
|
||||
name="Alpha Threshold",
|
||||
description="Minimum Alpha kept in the Cutout contour",
|
||||
default=0.9,
|
||||
min=0.0,
|
||||
max=1.0,
|
||||
soft_min=0.1,
|
||||
soft_max=0.9,
|
||||
subtype="FACTOR",
|
||||
)
|
||||
|
||||
|
||||
def cutout_fine_outline_property():
|
||||
return bpy.props.BoolProperty(
|
||||
name="Fine Outline",
|
||||
description="Fit detailed outlines and support thin parts; disable for simpler, faster meshes",
|
||||
default=False,
|
||||
)
|
||||
|
||||
|
||||
def cutout_mesh_detail_property():
|
||||
return bpy.props.EnumProperty(
|
||||
name="Mesh Detail",
|
||||
@@ -273,7 +294,9 @@ def cutout_mesh_detail_property():
|
||||
|
||||
|
||||
class AnyImageSettings(bpy.types.PropertyGroup):
|
||||
cutout_alpha_threshold: cutout_alpha_threshold_property()
|
||||
cutout_mesh_detail: cutout_mesh_detail_property()
|
||||
cutout_fine_outline: cutout_fine_outline_property()
|
||||
cutout_generate_normal: cutout_generate_normal_property()
|
||||
cutout_inward_axis: cutout_inward_axis_property()
|
||||
mask_gesture: mask_gesture_property()
|
||||
|
||||
Reference in New Issue
Block a user