repair ScriptableShader.shader = null (#877)

This commit is contained in:
HEIHUAa
2026-01-20 13:16:30 +07:00
committed by GitHub
parent ccc509ac9f
commit 69d82f560d
@@ -30,6 +30,8 @@ class ScriptableShader extends FlxBasic implements IHScriptCustomBehaviour {
if((shader is CustomShader)) scriptName = cast(shader, CustomShader).fileName;
else throw "Missing name for shader script, please provide a scriptName, or use CustomShader";
this.shader = shader;
script = Script.create(Paths.script('shaders/$scriptName'));
script.setParent(shader);
script.set("shader", shader);