Fix bug when modifications applied to multiple fractal boxes

这个提交包含在:
Nathan Mannall
2025-05-05 10:38:28 +01:00
父节点 33f8e097c8
当前提交 b73cd93d75

查看文件

@@ -421,6 +421,10 @@ def process_geometrycmds(geometry):
)
raise ValueError
# Only build objects attached to the current fractal box
if tmp[12] != ID:
continue
p1 = (float(tmp[1]), float(tmp[2]), float(tmp[3]))
p2 = (float(tmp[4]), float(tmp[5]), float(tmp[6]))
frac_dim = float(tmp[7])
@@ -462,6 +466,10 @@ def process_geometrycmds(geometry):
)
raise ValueError
# Only build objects attached to the current fractal box
if tmp[8] != ID:
continue
p1 = (float(tmp[1]), float(tmp[2]), float(tmp[3]))
p2 = (float(tmp[4]), float(tmp[5]), float(tmp[6]))
depth = float(tmp[7])
@@ -477,6 +485,10 @@ def process_geometrycmds(geometry):
)
raise ValueError
# Only build objects attached to the current fractal box
if tmp[11] != ID:
continue
p1 = (float(tmp[1]), float(tmp[2]), float(tmp[3]))
p2 = (float(tmp[4]), float(tmp[5]), float(tmp[6]))
frac_dim = float(tmp[7])