Move TresObject.__tres
to a WeakMap
#591
Labels
p1-chore
Doesn't change end-user code behavior (priority)
TresObject.__tres
to a WeakMap
#591
Problem
src/core/nodeOps.ts
currently saves data associated with a givenTHREE
object in the object'suserData
. This means it can be modified or deleted by users.Solution
Move the data to a
WeakMap
that's private tonodeOps
.Additional context
Dicussed here.
Validations
The text was updated successfully, but these errors were encountered: