Skip to content

Commit f5dc53d

Browse files
committed
Fix attach_light bug
1 parent ff23cdf commit f5dc53d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎ForInstalledPython/glow.min.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/glow/primitives.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2710,8 +2710,8 @@
27102710
options.pickable = false
27112711
options.canvas = o.canvas
27122712
if (options.offset === undefined) options.offset = vec(0,0,0)
2713-
options.pos = o.pos.add(options.offset)
27142713
if (options.offset.x === undefined ) throw new Error('The attach_light attribute "offset" must be a vector.')
2714+
options.pos = o.pos.add(options.offset)
27152715
if (options.color === undefined) options.color = o.color
27162716
let a = local_light(options)
27172717
o.canvas.attached_lights.push(a)

‎package/glow.3.2.min.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)