mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
Small fix (#3688)
* revert user defined script menu * texture default flipY * Update texture-2d.js
This commit is contained in:
@@ -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[]}
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user