Skip to content

Commit

Permalink
[shgraph] Added missing Float parameter loading
Browse files Browse the repository at this point in the history
  • Loading branch information
EspeuteClement committed Jan 22, 2024
1 parent 028d0bc commit e3cc2b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hrt/shgraph/ShaderGraph.hx
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,10 @@ class ShaderGraph extends hrt.prefab.Prefab {
case "TVec":
var params : Array<Dynamic> = [Std.parseInt(enumParamsString[0]), std.Type.createEnum(VecType, enumParamsString[1])];
p.type = std.Type.createEnum(Type, typeString[0], params);
case "TFloat":
p.type = TFloat;
default:
throw "Couldn't unserialize type " + enumParamsString[0];
throw "Couldn't unserialize type " + typeString[0];
}
}
p.variable = generateParameter(p.name, p.type);
Expand Down

0 comments on commit e3cc2b0

Please sign in to comment.