[PickLocation] Actually return null when input invalid

This commit is contained in:
Kevin Leung 2021-01-29 20:54:34 +08:00 committed by GitHub
parent 4273aff1fb
commit 4ee1131f6e
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;