mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 08:42:43 +08:00
Merge commit v1.10-release into v2.0-release
# Conflicts: # cocos2d/core/CCDebug.js # cocos2d/deprecated.js
This commit is contained in:
@@ -266,7 +266,7 @@ cc.assertID = function (cond) {
|
||||
* !#zh 调试模式
|
||||
* @enum debug.DebugMode
|
||||
* @memberof cc
|
||||
*/
|
||||
*/
|
||||
var DebugMode = cc.Enum({
|
||||
/**
|
||||
* !#en The debug mode none.
|
||||
|
||||
@@ -267,8 +267,9 @@ function refreshScene () {
|
||||
// check animation editor
|
||||
if (CC_EDITOR && !Editor.isBuilder) {
|
||||
var AnimUtils = Editor.require('scene://utils/animation');
|
||||
if (AnimUtils) {
|
||||
var nowPreviewing = !!AnimUtils.Cache.animation;
|
||||
var EditMode = Editor.require('scene://edit-mode');
|
||||
if (AnimUtils && EditMode) {
|
||||
var nowPreviewing = (EditMode.curMode().name === 'animation' && !!AnimUtils.Cache.animation);
|
||||
if (nowPreviewing !== animationState.previewing) {
|
||||
animationState.previewing = nowPreviewing;
|
||||
if (nowPreviewing) {
|
||||
|
||||
@@ -138,7 +138,7 @@ if (CC_DEBUG) {
|
||||
cc.warn('Sorry, %s.%s is deprecated. Please use %s instead', ownerName, propName, obj[propName]);
|
||||
return originFunc.apply(this, arguments);
|
||||
}
|
||||
|
||||
|
||||
ownerCtor[propName] = warn;
|
||||
})();
|
||||
}
|
||||
@@ -438,7 +438,7 @@ if (CC_DEBUG) {
|
||||
|
||||
// Vec2
|
||||
pointEqualToPoint: 'cc.Vec2 equals',
|
||||
|
||||
|
||||
// Size
|
||||
sizeEqualToSize: 'cc.Size equals',
|
||||
|
||||
@@ -580,7 +580,7 @@ if (CC_DEBUG) {
|
||||
cc.errorID(1407);
|
||||
return js.Pool;
|
||||
});
|
||||
|
||||
|
||||
// cc.isChildClassOf
|
||||
js.get(cc, 'isChildClassOf', function () {
|
||||
cc.errorID(1400, 'cc.isChildClassOf', 'cc.js.isChildClassOf');
|
||||
|
||||
Reference in New Issue
Block a user