summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorTomasz Chabora <kobewi4e@gmail.com>2020-12-01 15:16:31 +0100
committerTomasz Chabora <kobewi4e@gmail.com>2020-12-03 14:22:12 +0100
commit4c232e4222ff7b1ba27ddd95749cc6f10c76a2d4 (patch)
treed6c2e67ab4423d1df429fb0c998e0ce5cd464d24 /core
parent339b64697cefce637b473cf8aee6df8bb7fe05d9 (diff)
Fix subtracting colors and quats
Diffstat (limited to 'core')
-rw-r--r--core/variant/variant_op.cpp2
1 files changed, 2 insertions, 0 deletions
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<OperatorEvaluatorSub<Vector2i, Vector2i, Vector2i>>(Variant::OP_SUBTRACT, Variant::VECTOR2I, Variant::VECTOR2I);
register_op<OperatorEvaluatorSub<Vector3, Vector3, Vector3>>(Variant::OP_SUBTRACT, Variant::VECTOR3, Variant::VECTOR3);
register_op<OperatorEvaluatorSub<Vector3i, Vector3i, Vector3i>>(Variant::OP_SUBTRACT, Variant::VECTOR3I, Variant::VECTOR3I);
+ register_op<OperatorEvaluatorSub<Quat, Quat, Quat>>(Variant::OP_SUBTRACT, Variant::QUAT, Variant::QUAT);
+ register_op<OperatorEvaluatorSub<Color, Color, Color>>(Variant::OP_SUBTRACT, Variant::COLOR, Variant::COLOR);
register_op<OperatorEvaluatorMul<int64_t, int64_t, int64_t>>(Variant::OP_MULTIPLY, Variant::INT, Variant::INT);
register_op<OperatorEvaluatorMul<double, int64_t, double>>(Variant::OP_MULTIPLY, Variant::INT, Variant::FLOAT);