feat: some tweaks
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 2m41s
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 2m41s
This commit is contained in:
@@ -17,13 +17,6 @@
|
||||
"options": ["x", "y", "z"],
|
||||
"description": "Along which axis should we rotate?"
|
||||
},
|
||||
"spread": {
|
||||
"type": "boolean",
|
||||
"internal": true,
|
||||
"hidden": true,
|
||||
"value": true,
|
||||
"description": "If multiple objects are connected, should we rotate them as one or spread them?"
|
||||
},
|
||||
"angle": {
|
||||
"type": "float",
|
||||
"min": 0,
|
||||
@@ -31,6 +24,13 @@
|
||||
"step": 0.05,
|
||||
"value": 0,
|
||||
"description": "Rotation angle"
|
||||
},
|
||||
"spread": {
|
||||
"type": "boolean",
|
||||
"internal": true,
|
||||
"hidden": true,
|
||||
"value": true,
|
||||
"description": "If multiple objects are connected, should we rotate them as one or spread them?"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,8 +18,7 @@ pub fn execute(input: &[i32]) -> Vec<i32> {
|
||||
|
||||
let plants = split_args(args[0]);
|
||||
let axis = evaluate_int(args[1]); // 0 =x, 1 = y, 2 = z
|
||||
let spread = evaluate_int(args[2]);
|
||||
let angle = evaluate_float(args[3]);
|
||||
let spread = evaluate_int(args[3]);
|
||||
|
||||
let output: Vec<Vec<i32>> = plants
|
||||
.iter()
|
||||
@@ -34,7 +33,7 @@ pub fn execute(input: &[i32]) -> Vec<i32> {
|
||||
|
||||
let path = wrap_path_mut(&mut path_data);
|
||||
|
||||
let length = path.get_length() as f64;
|
||||
let angle = evaluate_float(args[2]);
|
||||
|
||||
let origin = [path.points[0], path.points[1], path.points[2]];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user