|
@@ -192,12 +192,6 @@ export const nodeOps: RendererOptions<TresObject, TresObject> = {
|
|
const prevArgs = _prevValue ?? []
|
|
const prevArgs = _prevValue ?? []
|
|
const args = nextValue ?? []
|
|
const args = nextValue ?? []
|
|
const instanceName = node.userData.tres__name || node.type
|
|
const instanceName = node.userData.tres__name || node.type
|
|
- console.log('replacing', {
|
|
|
|
- instanceName,
|
|
|
|
- args,
|
|
|
|
- prevArgs,
|
|
|
|
- diff: !deepArrayEqual(prevArgs, args)
|
|
|
|
- })
|
|
|
|
if (instanceName && !deepArrayEqual(prevArgs, args)) {
|
|
if (instanceName && !deepArrayEqual(prevArgs, args)) {
|
|
|
|
|
|
root = Object.assign(prevNode, new catalogue.value[instanceName](...nextValue))
|
|
root = Object.assign(prevNode, new catalogue.value[instanceName](...nextValue))
|