Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

1.3 KB
Raw Blame
# Add Level on meshes sent from Blender with high-valence vertices (#16): a cylinder with 22-sided Triangle Fan caps
# (21 worked) and the default UV sphere (32 x 16, its poles are fans of 32 triangles) crashed SculptForge 0.9.4 on
# Ctrl+D: the first level's ring around a fan centre overran a fixed buffer while the viewport shaded it. Sent
# through the bridge as the add-on does (tests/ui/data/blender/divide, with Blender's UVs), divided and drawn.
run new_sphere subdivisions=2
env SCULPTFORGE_BLENDER_EXCHANGE sf_ui_blender_divide
copy data/blender/divide sf_ui_blender_divide/to_sculptforge
wait 0.2
expect_status "Received 2 objects from Blender"
expect_value parts == 2
expect_value active_part == 0
remember triangles t0

# The cylinder: three levels, each drawn (the crash was in the viewport's shading after Add Level).
key ctrl+d
wait 0.2
expect_value subdiv_level == 2
key ctrl+d
wait 0.2
key ctrl+d
wait 0.2
expect_value subdiv_level == 4
expect_value triangles > $t0*60
key f
shot cylinder
# Down to the base and back up.
key shift+d
key shift+d
key shift+d
expect_value subdiv_level == 1
expect_value triangles == $t0
key d
key d
key d
expect_value subdiv_level == 4

# The UV sphere.
run part_select index=1
expect_value active_part == 1
key ctrl+d
wait 0.2
key ctrl+d
wait 0.2
expect_value subdiv_level == 3
key f
shot sphere