repo: janusweb action: commit revision: path_from: revision_from: 046d83284b2d411b785461d62d5aa42b9d24bbe1: path_to: revision_to:
commit 046d83284b2d411b785461d62d5aa42b9d24bbe1 Author: James BaicoianuDate: 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
--- 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-----