Skip to content

Commit 0d82c2c

Browse files
committed
Fix codegen bug
1 parent c218165 commit 0d82c2c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/modifier/accel.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,9 @@ impl UpdateModifier for RadialAccelModifier {
186186
let accel = ctx.eval(m, self.accel)?;
187187

188188
Ok(format!(
189-
r##"fn {}(particle: ptr<function, Particle>) {{
190-
let radial = normalize((*particle).{} - {});
189+
r##"let radial = normalize((*particle).{} - {});
191190
(*particle).{} += radial * (({}) * sim_params.delta_time);
192-
}}
193191
"##,
194-
func_name,
195192
Attribute::POSITION.name(),
196193
origin,
197194
Attribute::VELOCITY.name(),

0 commit comments

Comments
 (0)