Skip to content

Commit

Permalink
fix(geom-webgl): merge group options
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jun 12, 2024
1 parent 498e0f4 commit 6ab7774
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/geom-webgl/src/as-webgl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ export const asWebGlModel: MultiFn1O<

$aspolyline: ($, opts) => asWebGlModel(asPolyline($)[0], opts),

group: ($: Group, opts) =>
$.children.flatMap((child) => asWebGlModel(child, opts)),
group: ($: Group, opts) => {
opts = mergeDeepObj(opts || {}, $.attribs?.__webgl);
return $.children.flatMap((child) => asWebGlModel(child, opts));
},

path: ($: Path, opts) =>
asWebGlModel(
Expand Down

0 comments on commit 6ab7774

Please sign in to comment.