paulhayes / web-3d-model-customiser

Other
6 stars 8 forks source link

Error in update on start #36

Closed paulhayes closed 4 years ago

paulhayes commented 4 years ago

Getting the following error in the console on page load

    Uncaught TypeError: Cannot read property 'scale' of undefined
    at main (blob:https://mod.seb…-308520aec019:10317)
    at blob:https://mod.seb…-308520aec019:10434
sebleedelisle commented 4 years ago

I added a new object (cutouts) and tried to replicate the methodology that you set up for the extras. But maybe I messed up and the cutouts object hasn't been loaded properly the first time it tried to update the models? It seems to be fine on subsequent attempts.

sebleedelisle commented 4 years ago

I fixed it by checking that the model is an object before trying to use it but it probably needs fixing properly 😊