forked from LeenkxTeam/LNXSDK
Consolidate and update
This commit is contained in:
@ -13,7 +13,10 @@ class Constraint {
|
||||
}
|
||||
|
||||
public function apply(transform: Transform) {
|
||||
if (target == null && raw.target != null) target = Scene.active.getChild(raw.target).transform;
|
||||
if (target == null && raw.target != null) {
|
||||
var o = Scene.active.getChild(raw.target);
|
||||
if (o != null) target = o.transform;
|
||||
}
|
||||
|
||||
if (target == null && raw.type != "LIMIT_LOCATION" && raw.type != "LIMIT_ROTATION" && raw.type != "LIMIT_SCALE") return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user