Repe [T3DU] Update - 31f26d171bba0355ce2a77031e3aad4c64dbc7e9

This commit is contained in:
2026-09-04 10:46:13 -07:00
parent c915312901
commit 0460b9d587
482 changed files with 27797 additions and 3226 deletions

View File

@ -0,0 +1,28 @@
package leenkx.logicnode;
import iron.object.MeshObject;
class GetObjectShapeKeyNode extends LogicNode {
public function new(tree: LogicTree) {
super(tree);
}
override function get(from: Int): Dynamic {
#if lnx_morph_target
var object: Dynamic = inputs[0].get();
var shapeKey: String = inputs[1].get();
assert(Error, object != null, "Object should not be null");
var morph = cast(object, MeshObject).morphTarget;
assert(Error, morph != null, "Object does not have shape keys");
if (morph.morphMap.exists(shapeKey))
return morph.morphWeights.get(morph.morphMap.get(shapeKey));
#end
return 0.0;
runOutput(0);
}
}