mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 16:41:07 +00:00
091fc9e7e5
Add two helpers to tool.Blender that 17+ existing viewport decorators re-implement byte-identically: - ViewportDecorator.draw_batch(shader_type, content_pos, color, indices=None) collapses the validate + batch_for_shader + uniform_float + draw cycle every shader-driven decorator needs. - Blender.transparent_color(color, alpha=0.1) is the RGBA-alpha-override helper duplicated across nest, project, aggregate, model, system module scopes plus six nested-def copies inside draw methods. Pure additions on the tool/ layer with direct unit tests covering the default-alpha, explicit-alpha, non-mutation, new-list-instance, and validation-guard branches. Generated with the assistance of an AI coding tool.