Complete Smooth modifier gap
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user