Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: instances re-instancing when not needed #374

Merged
merged 4 commits into from
Aug 22, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: remove console
  • Loading branch information
alvarosabu committed Aug 22, 2023
commit f0f9930317d9e5c62d01e6aa20a2ffcc61b82fb3
1 change: 0 additions & 1 deletion src/core/nodeOps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ export const nodeOps: RendererOptions<TresObject, TresObject> = {
const instanceName = node.userData.tres__name || node.type

if (instanceName && prevArgs.length > 0 && !deepArrayEqual(prevArgs, args)) {
console.log('reinstancing', { instanceName, prevArgs, args })
root = Object.assign(prevNode, new catalogue.value[instanceName](...nextValue))
}
return
Expand Down
Loading