Complete Smooth modifier gap
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-08-20 10:16:16 -04:00
parent 59c151f45d
commit 7fdf4ab027
17 changed files with 404 additions and 12 deletions

View File

@@ -46,6 +46,16 @@ def report(task, modifier_type, object_name):
value["modifier"]["textureMapping"] = {"GLOBAL": 1, "LOCAL": 2, "OBJECT": 3, "UV": 4}.get(modifier.texture_coords, 1)
if modifier_type == "EDGE_SPLIT":
value["modifier"]["splitAngle"] = float(modifier.split_angle)
if modifier_type == "SMOOTH":
value["modifier"]["factor"] = float(modifier.factor)
value["modifier"]["iterations"] = int(modifier.iterations)
value["modifier"]["vertexGroup"] = modifier.vertex_group
value["modifier"]["smoothFlags"] = (
(1 if modifier.invert_vertex_group else 0)
| (2 if modifier.use_x else 0)
| (4 if modifier.use_y else 0)
| (8 if modifier.use_z else 0)
)
return value