Skip to content

Commit 1ac3c06

Browse files
committed
Reduce point sizes for cleaner visual appearance - smaller OpenGL points (5→3px) and smaller Vulkan geometry (2D: 0.1→0.06, 3D: 0.05→0.03)
1 parent 9161b65 commit 1ac3c06

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

model/point_2d.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,16 @@ def update(self):
2828
if bpy.app.background:
2929
return
3030

31+
# Safety check for workplane reference
32+
if not self.wp:
33+
logger.warning(f"Point2D {self} has no workplane reference, skipping update")
34+
return
35+
3136
u, v = self.co
3237
mat_local = Matrix.Translation(Vector((u, v, 0)))
3338

3439
mat = self.wp.matrix_basis @ mat_local
35-
size = 0.1
40+
size = 0.06 # Reduced from 0.1 to make points smaller
3641
coords = draw_rect_2d(0, 0, size, size)
3742
coords = [(mat @ Vector(co))[:] for co in coords]
3843
indices = ((0, 1, 2), (0, 2, 3))

model/point_3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def update(self):
3434

3535
if is_vulkan:
3636
# On Vulkan, render points as small cubes for proper size support
37-
coords, indices = draw_cube_3d(*self.location, 0.05)
37+
coords, indices = draw_cube_3d(*self.location, 0.03)
3838
self._batch = batch_for_shader(
3939
self._shader, "TRIS", {"pos": coords}, indices=indices
4040
)

0 commit comments

Comments
 (0)