File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -232,21 +232,12 @@ export const useLoad3d = (nodeOrRef: LGraphNode | Ref<LGraphNode | null>) => {
232232
233233 watch (
234234 sceneConfig ,
235- ( newValue , oldValue ) => {
235+ ( newValue ) => {
236236 if ( load3d && nodeRef . value ) {
237237 nodeRef . value . properties [ 'Scene Config' ] = newValue
238-
239- if ( newValue . showGrid !== oldValue ?. showGrid ) {
240- load3d . toggleGrid ( newValue . showGrid )
241- }
242-
243- if ( newValue . backgroundColor !== oldValue ?. backgroundColor ) {
244- load3d . setBackgroundColor ( newValue . backgroundColor )
245- }
246-
247- if ( newValue . backgroundImage !== oldValue ?. backgroundImage ) {
248- void load3d . setBackgroundImage ( newValue . backgroundImage || '' )
249- }
238+ load3d . toggleGrid ( newValue . showGrid )
239+ load3d . setBackgroundColor ( newValue . backgroundColor )
240+ void load3d . setBackgroundImage ( newValue . backgroundImage || '' )
250241 }
251242 } ,
252243 { deep : true }
You can’t perform that action at this time.
0 commit comments