* revert user defined script menu

* texture default flipY

* Update texture-2d.js
This commit is contained in:
Leslie Leigh
2018-12-28 14:37:06 +08:00
committed by pandamicro
parent 3ed9edfbc6
commit 1b89e35dac
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -47,6 +47,11 @@ import ImageAsset from './image-asset';
*/
@ccclass('cc.Texture2D')
export default class Texture2D extends TextureBase {
@property({
override: true
})
_flipY = true;
/**
* @type {ImageAsset[]}
*/
+1 -1
View File
@@ -364,7 +364,7 @@ function define (className, baseClass, mixins, options) {
if (uuid) {
js._setClassId(uuid, cls);
if (CC_EDITOR) {
// Component._addMenuItem(cls, 'i18n:MAIN_MENU.component.scripts/' + className, -1);
Component._addMenuItem(cls, 'i18n:MAIN_MENU.component.scripts/' + className, -1);
cls.prototype.__scriptUuid = Editor.Utils.UuidUtils.decompressUuid(uuid);
}
}