Fix StageController light filter: use explicit patterns instead of Contains("light")

Replace broad Contains("light") with IsTimelineControlledLight() that matches
only objects actually controlled by timeline handlers (blinklight, spotlight3d,
_wash_, laser). Neonsigns, glow meshes, UV scroll objects and other static stage
props now keep their prefab default state instead of being silently disabled.

Also fix UVScrollLight handler to use GetComponentsInChildren<Renderer>(true)
so inactive renderers are included in material search.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ritenseki
2026-05-07 20:19:45 +08:00
parent e76dd1c6f0
commit 7fc1511fd4
5 changed files with 18 additions and 10 deletions
@@ -445,7 +445,7 @@ namespace Gallop.Live
_uvScrollAccum[data.name] = Vector2.zero;
_uvScrollAccum[data.name] += new Vector2(keyData.scrollSpeedX, keyData.scrollSpeedY) * Time.deltaTime;
Vector2 totalOffset = new Vector2(keyData.scrollOffsetX, keyData.scrollOffsetY) + _uvScrollAccum[data.name];
foreach (var r in _stageController.GetComponentsInChildren<Renderer>())
foreach (var r in _stageController.GetComponentsInChildren<Renderer>(true))
{
foreach (var mat in r.materials)
{