Skip to content

Commit

Permalink
FX: Fix copy is not a function error
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoVgr committed Jan 22, 2025
1 parent a31e784 commit 19e546e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hrt/prefab/fx/BaseFX.hx
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ class BaseFXTools {
}

public static function makeRendererFXParams(rfxElt: hrt.prefab.rfx.RendererFX) {
var serializedProps : Array<Dynamic> = @:privateAccess Prefab.getSerializablePropsForClass(Type.getClass(cast rfxElt)).copy();
var classRfx = Type.getClass(cast rfxElt);
var originalProps : Array<Dynamic> = @:privateAccess Prefab.getSerializablePropsForClass(classRfx);
var serializedProps : Array<Dynamic> = originalProps.copy();
var ret : Array<{field : hrt.prefab.Prefab.PrefabField, value : Value}> = null;
for (f in serializedProps) {
if (!(Reflect.field(rfxElt, f.name) is Float))
Expand Down

0 comments on commit 19e546e

Please sign in to comment.