From e6393d5002aabaad982577a6b0484e89c20bc9c2 Mon Sep 17 00:00:00 2001 From: ChiaNing Date: Tue, 30 Jul 2019 19:02:07 +0800 Subject: [PATCH] vmath deprecated add (#5020) --- cocos/deprecated.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cocos/deprecated.ts b/cocos/deprecated.ts index 6de525c028..bd15e81d8d 100644 --- a/cocos/deprecated.ts +++ b/cocos/deprecated.ts @@ -322,6 +322,15 @@ if (CC_DEBUG) { ['inverseLerp','cc.math.inverseLerp'], ['EPSILON','cc.math.EPSILON']]); + markAsDeprecatedInObject_2(cc.vmath, + [['vec2','cc.math.Vec2'], + ['vec3','cc.math.Vec3'], + ['vec4','cc.math.Vec4'], + ['mat3','cc.math.Mat3'], + ['mat4','cc.math.Mat4'], + ['color4','cc.math.Color'], + ['rect','cc.math.Rect']]); + markAsDeprecated(cc.misc, [['clampf','cc.math.clamp'], ['clamp01','cc.math.clamp01'],