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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user