Merge pull request #2096 from kevinresol/patch-4

[PickLocation] Actually return null when input invalid
This commit is contained in:
Lubos Lenco 2021-01-30 11:37:39 +01:00 committed by GitHub
commit 129d59ab54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ class PickLocationNode extends LogicNode {
var object: Object = inputs[0].get();
var coords: Vec4 = inputs[1].get();
if (object == null || coords == null) null;
if (object == null || coords == null) return null;
#if arm_physics
var physics = armory.trait.physics.PhysicsWorld.active;