mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
add physics macro to global in publish, set cannon to default (#4660)
This commit is contained in:
committed by
Weiliang Wang
parent
9bf1bd286c
commit
dcbd593001
@@ -4,7 +4,7 @@ const _global = typeof window === 'undefined' ? global : window;
|
||||
|
||||
// tslint:disable: no-string-literal;
|
||||
if (typeof _global.CC_PHYSICS_CANNON === 'undefined') {
|
||||
_global.CC_PHYSICS_CANNON = false;
|
||||
_global.CC_PHYSICS_CANNON = true;
|
||||
}
|
||||
|
||||
if (typeof _global.CC_PHYSICS_AMMO === 'undefined') {
|
||||
@@ -12,7 +12,7 @@ if (typeof _global.CC_PHYSICS_AMMO === 'undefined') {
|
||||
}
|
||||
|
||||
if (typeof _global.CC_PHYSICS_BUILT_IN === 'undefined') {
|
||||
_global.CC_PHYSICS_BUILT_IN = true;
|
||||
_global.CC_PHYSICS_BUILT_IN = false;
|
||||
}
|
||||
|
||||
// Cannon
|
||||
|
||||
@@ -164,6 +164,9 @@ if (CC_BUILD) {
|
||||
_global.CC_QQPLAY = CC_QQPLAY;
|
||||
_global.CC_RUNTIME = CC_RUNTIME;
|
||||
_global.CC_SUPPORT_JIT = CC_SUPPORT_JIT;
|
||||
_global.CC_PHYSICS_BUILT_IN = CC_PHYSICS_BUILT_IN;
|
||||
_global.CC_PHYSICS_CANNON = CC_PHYSICS_CANNON;
|
||||
_global.CC_PHYSICS_AMMO = CC_PHYSICS_AMMO;
|
||||
}
|
||||
else {
|
||||
defineMacro('CC_TEST', defined('tap') || defined('QUnit'));
|
||||
|
||||
Reference in New Issue
Block a user