Skip to content

Commit ca25bf5

Browse files
authored
Update mass_spring_3d_ggui.py
Change variable name `allow_bending` to `bending_springs`.
1 parent 910b49b commit ca25bf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/taichi/examples/ggui_examples/mass_spring_3d_ggui.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
indices = ti.field(int, shape=num_triangles * 3)
2323
vertices = ti.Vector.field(3, dtype=float, shape=n * n)
2424

25-
allow_bending = False
25+
bending_springs = False
2626

2727
@ti.kernel
2828
def initialize_mass_points():
@@ -53,7 +53,7 @@ def initialize_mesh_indices():
5353
initialize_mesh_indices()
5454

5555
spring_offsets = []
56-
if allow_bending:
56+
if bending_springs:
5757
for i in range(-1, 2):
5858
for j in range(-1, 2):
5959
if (i, j) != (0, 0):

0 commit comments

Comments
 (0)