repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 046d83284b2d411b785461d62d5aa42b9d24bbe1:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 046d83284b2d411b785461d62d5aa42b9d24bbe1
Author: James Baicoianu 
Date:   Mon Sep 23 13:19:20 2024 -0700

    Update material when shader_chunk_replace is changed

diff --git a/scripts/object.js b/scripts/object.js
index 73bb073bca65029fed347c3fdbff17abc6897650..
index ..6193a7faf6b505aae6c1cf33d403756e48ece1f4 100644
--- a/scripts/object.js
+++ b/scripts/object.js
@@ -44,7 +44,7 @@ elation.require(['janusweb.janusbase', 'janusweb.websurface'], function() {
         lmap_id: { type: 'string', set: this.updateMaterial, comment: 'Lightmap texture ID' },
         video_id: { type: 'string', set: this.updateVideo, comment: 'Video texture ID' },
         shader_id: { type: 'string', set: this.updateMaterial, comment: 'Shader ID' },
-        shader_chunk_replace: { type: 'object' },
+        shader_chunk_replace: { type: 'object', set: this.updateMaterial },
         url: { type: 'string', set: this.updateWebsurfaceURL },
         loop: { type: 'boolean' },
         websurface_id: { type: 'string', set: this.updateWebsurface, comment: 'WebSurface ID' },

-----END OF PAGE-----