Skip to content

Commit e4faf86

Browse files
update lab + fix scale instance mesh issue
1 parent 469c051 commit e4faf86

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/content/magical-marbles/index.vue

+4-3
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ const uniforms = reactive({
106106
})
107107
108108
onMounted(() => {
109+
if (!mainRef.value) return
110+
109111
ctx = gsap.context(() => { }, mainRef.value)
110112
})
111113
@@ -135,9 +137,8 @@ const updateBackground = (immediate = false) => {
135137
}
136138
else {
137139
ctx.add(() => {
138-
console.log(backgroundRef.value)
139-
console.log(backgroundGradient.value)
140-
console.log(sphereRef.value.instance)
140+
if(!sphereRef.value) return
141+
141142
tl = gsap.timeline({
142143
onStart: () => {
143144
tlInProgress.value = true

0 commit comments

Comments
 (0)