From 4c232e4222ff7b1ba27ddd95749cc6f10c76a2d4 Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Tue, 1 Dec 2020 15:16:31 +0100 Subject: Fix subtracting colors and quats --- core/variant/variant_op.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') diff --git a/core/variant/variant_op.cpp b/core/variant/variant_op.cpp index 07b024ecb4..df29ec7b63 100644 --- a/core/variant/variant_op.cpp +++ b/core/variant/variant_op.cpp @@ -1399,6 +1399,8 @@ void Variant::_register_variant_operators() { register_op>(Variant::OP_SUBTRACT, Variant::VECTOR2I, Variant::VECTOR2I); register_op>(Variant::OP_SUBTRACT, Variant::VECTOR3, Variant::VECTOR3); register_op>(Variant::OP_SUBTRACT, Variant::VECTOR3I, Variant::VECTOR3I); + register_op>(Variant::OP_SUBTRACT, Variant::QUAT, Variant::QUAT); + register_op>(Variant::OP_SUBTRACT, Variant::COLOR, Variant::COLOR); register_op>(Variant::OP_MULTIPLY, Variant::INT, Variant::INT); register_op>(Variant::OP_MULTIPLY, Variant::INT, Variant::FLOAT); -- cgit v1.2.3