From 28ace91e703c005f736090206e799834f7a51204 Mon Sep 17 00:00:00 2001 From: Patrick Dulebohn Date: Sun, 29 Aug 2021 17:25:11 -0400 Subject: [PATCH] SDL Variable Fix Updates an older code definition to fix an error with SDL layer animations. --- korman/exporter/material.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/exporter/material.py b/korman/exporter/material.py index f931b78..f316f0c 100644 --- a/korman/exporter/material.py +++ b/korman/exporter/material.py @@ -558,7 +558,7 @@ class MaterialConverter: if anim.loop: atc.flags |= plAnimTimeConvert.kLoop if isinstance(top_layer, plLayerSDLAnimation): - top_layer.varName = layer_props.sdl_var + top_layer.varName = anim.sdl_var else: # Crappy automatic entire layer animation. Loop it by default. controllers = self._export_layer_controllers(bo, bm, tex_slot, idx, base_layer)