Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge v1.2 to 3d #7281

Merged
merged 43 commits into from Sep 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
f4e16d0
Bump tfig@2.0.3 (#7198)
shrinktofit Aug 21, 2020
1b26d3d
Small fixes (#7202)
pandamicro Aug 21, 2020
cc3b750
repair instance endlessLoop (#7203)
troublemaker52025 Aug 24, 2020
048bb23
update one fbx meta file in internal db (#7200)
arsen2010 Aug 24, 2020
ba8e49e
more adaptations (#7205)
YunHsiao Aug 24, 2020
7eacd78
Merge planar shadow and shadow map. (#7185)
caryliu1999 Aug 24, 2020
578f01e
improve scroll view component (#7213)
knoxHuang Aug 25, 2020
40c6867
fix calculate final Position X bug for layout component (#7194)
knoxHuang Aug 25, 2020
2185a6f
change "cc.PlanarShadowInfo" to "cc.ShadowsInfo" (#7215)
gameall3d Aug 25, 2020
d0fd7eb
even more type check for buffer pools (#7214)
YunHsiao Aug 25, 2020
e3009ff
[Modify] Export RenderingSubMesh class (#7220)
GengineJS Aug 25, 2020
e7ef53b
fix decode header (#7225)
YunHsiao Aug 26, 2020
3336dba
Revert scrollview and page view content change (#7229)
knoxHuang Aug 27, 2020
1959818
Remove the dependency of the pipeline on the model. (#7222)
caryliu1999 Aug 27, 2020
ed43580
Update gulp (#7219)
shrinktofit Aug 27, 2020
0c5c52e
Support tsconfig.compilerOptions.paths (#7234)
shrinktofit Aug 27, 2020
c451c8a
bindless textures (#7231)
YunHsiao Aug 28, 2020
c99525c
Repair shadow matrix for 3d-v1.2 (#7223)
troublemaker52025 Aug 28, 2020
be21e64
fix instanced buffers hashing (#7240)
YunHsiao Aug 28, 2020
e14c3af
Revert the previous changes of pipeline. (#7248)
caryliu1999 Aug 30, 2020
18574ab
misc fixes (#7245)
YunHsiao Aug 30, 2020
b10d536
Fix ambient skyColor invalidation. (#7244)
caryliu1999 Aug 30, 2020
2fab58c
fixed single touch,always keeping only one finger message (#7230)
JoneLau Aug 31, 2020
8ff8363
Using physics group (#7259)
JayceLai Sep 1, 2020
1fb08a5
more misc fixes (#7254)
YunHsiao Sep 1, 2020
8fab463
quat set bug fix (#7261)
LinYunMo Sep 1, 2020
affd406
remove Don't_Clear in CanvasComponent (#7258)
JoneLau Sep 1, 2020
b4671b5
fixed instancing for real-time skeletal animation (#7265)
YunHsiao Sep 1, 2020
d5aea41
optimizate instanced shadow (#7260)
troublemaker52025 Sep 1, 2020
76784c6
fix splash screen by delay destroy (#7270)
JayceLai Sep 1, 2020
d727090
fix auto simulation (#7264)
JayceLai Sep 1, 2020
dcfeb16
Update game.ts (#7269)
kissSimple Sep 1, 2020
883a057
fix particle ia reuse (#7267)
LinYunMo Sep 2, 2020
6803722
Fix morph issue on some platforms (#7268)
shrinktofit Sep 2, 2020
bc5b531
Add decorator @editable @serializable (#7178)
shrinktofit Sep 2, 2020
0192c71
add update & updateList to Enum (#7272)
JayceLai Sep 2, 2020
3240dba
Component rename for new standard and 2d compatibility (#7103)
pandamicro Sep 2, 2020
3933474
change default mask value of collision matrix (#7277)
JayceLai Sep 2, 2020
6b43a2d
Update primitives with second uvs
pandamicro Aug 26, 2020
1d2a82d
Merge branch '3d-v1.2' into merge1.2
pandamicro Sep 2, 2020
938b701
Update package-lock
pandamicro Sep 2, 2020
bfc472f
Fix some issues
pandamicro Sep 2, 2020
31e8d0f
Fix issues
pandamicro Sep 2, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
192 changes: 8 additions & 184 deletions EngineErrorMap.md
Expand Up @@ -112,6 +112,10 @@ The '%s' will be removed in v2.0, please use '%s' instead.

cc.pool is being removed from v2.0, you are getting cc.js.Pool instead

### 1408

'%s' is removed

### 1502

cc.scheduler.scheduleCallbackForTarget(): target should be non-null.
Expand Down Expand Up @@ -588,7 +592,7 @@ value = 0; // <--

### 3654

Please specifiy a default value for "%s" property at its declaration:
Please specifiy a default value for "%s.%s" property at its declaration:
```
// Before:
@property(...)
Expand Down Expand Up @@ -820,16 +824,6 @@ already-playing

Sorry, the cc.Font has been modified from Raw Asset to Asset. Please load the font asset before using.

### 4001

<!-- DEPRECATED -->
_ccsg.Label._initBMFontWithString(): Impossible to create font. Please check file

### 4002

<!-- DEPRECATED -->
_ccsg.Label._initBMFontWithString(): re-init is no longer supported

### 4003

Label font size can't be shirnked less than 0!
Expand All @@ -838,36 +832,6 @@ Label font size can't be shirnked less than 0!

force notify all fonts loaded!

### 4005

<!-- DEPRECATED -->
cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version

### 4006

<!-- DEPRECATED -->
cc.LabelAtlas._updateAtlasValues(): Invalid String length

### 4007

<!-- DEPRECATED -->
cc.LabelBMFont.initWithString(): re-init is no longer supported

### 4008

<!-- DEPRECATED -->
cc.LabelBMFont.initWithString(): Impossible to create font. Please check file

### 4009

<!-- DEPRECATED -->
cocos2d: LabelBMFont: character not found %s

### 4010

<!-- DEPRECATED -->
cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file

### 4011

Property spriteFrame of Font '%s' is invalid. Using system font instead.
Expand Down Expand Up @@ -902,11 +866,11 @@ Can not found the %s page.

### 4301

Can not add a page without UITransformComponent.
Can not add a page without UITransform.

### 4302

Can not set the scroll view content when it hasn't UITransformComponent or its parent hasn't UITransformComponent.
Can not set the scroll view content when it hasn't UITransform or its parent hasn't UITransform.

### 4400

Expand Down Expand Up @@ -936,56 +900,6 @@ No need to release non-cached asset.

Can not get class '%s'

### 4904

<!-- DEPRECATED -->
%s does not exist

### 4905

<!-- DEPRECATED -->
%s load error, must be json file

### 4906

<!-- DEPRECATED -->
Can't find the parser : %s

### 4907

<!-- DEPRECATED -->
%s is armature. please use:

### 4908

<!-- DEPRECATED -->
ccs.armatureDataManager.addArmatureFileInfoAsync(%s);

### 4909

<!-- DEPRECATED -->
var armature = new ccs.Armature('name');

### 4910

<!-- DEPRECATED -->
Can't find the parser : %s

### 4911

<!-- DEPRECATED -->
register parser error

### 4912

<!-- DEPRECATED -->
Can't find the parser : %s

### 4913

<!-- DEPRECATED -->
Group versions haven't been loaded, you can also set group data with 'cc.LoaderLayer.groups'

### 4914

Resources url '%s' does not exist.
Expand All @@ -998,21 +912,6 @@ Pack indices and data do not match in size

Failed to download package for %s

### 4917

<!-- DEPRECATED -->
cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported

### 4918

<!-- DEPRECATED -->
cc.LabelBMFont._parseCommonArguments(): only supports 1 page

### 4919

<!-- DEPRECATED -->
cc.LabelBMFont._parseImageFileName() : file could not be found

### 4920

Sorry, you shouldn't use id as item identity any more, please use url or uuid instead, the current id is being set as url: (%s)
Expand Down Expand Up @@ -1266,81 +1165,6 @@ Custom should not be false if file is not specified.

The new %s must not be NaN

### 6002

<!-- DEPRECATED -->
_ccsg.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function

### 6003

<!-- DEPRECATED -->
cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it

### 6004

<!-- DEPRECATED -->
cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch

### 6005

<!-- DEPRECATED -->
cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas

### 6006

<!-- DEPRECATED -->
cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from [%d] to [%d]

### 6007

<!-- DEPRECATED -->
cc.ParticleBatchNode._addChildHelper(): child already added. It can't be added again

### 6008

<!-- DEPRECATED -->
_ccsg.ParticleSystem.initWithFile(): Particles: file not found

### 6009

<!-- DEPRECATED -->
_ccsg.ParticleSystem.initWithDictionary(): Invalid emitterType in config file

### 6010

<!-- DEPRECATED -->
_ccsg.ParticleSystem: error decoding or ungzipping textureImageData

### 6011

<!-- DEPRECATED -->
_ccsg.ParticleSystem: unknown image format with Data

### 6012

<!-- DEPRECATED -->
_ccsg.ParticleSystem.initWithDictionary() : error loading the texture

### 6013

<!-- DEPRECATED -->
Particle system: not enough memory

### 6014

<!-- DEPRECATED -->
Can't change blending functions when the particle is being batched

### 6015

<!-- DEPRECATED -->
_ccsg.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets

### 6016

<!-- DEPRECATED -->
_ccsg.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode

### 6017

Incomplete or corrupt PNG file
Expand Down Expand Up @@ -1444,7 +1268,7 @@ Widget target must be one of the parent nodes of it

### 6501

%s's widget target must have UITransformComponent, Please add it in target
%s's widget target must have UITransform, Please add it in target

### 6600

Expand Down
4 changes: 2 additions & 2 deletions cocos/audio/assets/clip.ts
Expand Up @@ -28,7 +28,7 @@
*/

import { Asset } from '../../core/assets/asset';
import { ccclass, property, type } from '../../core/data/class-decorator';
import { ccclass, type, serializable } from 'cc.decorator';
import { Enum } from '../../core/value-types';
import { AudioPlayer, PlayingState } from './player';
import { AudioPlayerDOM } from './player-dom';
Expand Down Expand Up @@ -61,7 +61,7 @@ export class AudioClip extends Asset {
public static AudioType = AudioType;
public static preventDeferredLoadDependents = true;

@property
@serializable
protected _duration = 0; // we serialize this because it's unavailable at runtime on some platforms

@type(AudioType)
Expand Down
Expand Up @@ -28,7 +28,7 @@
*/

import { Component } from '../core/components/component';
import { ccclass, help, menu, property, tooltip, type, range } from '../core/data/class-decorator';
import { ccclass, help, menu, tooltip, type, range, serializable } from 'cc.decorator';
import { clamp } from '../core/math';
import { AudioClip } from './assets/clip';

Expand All @@ -39,17 +39,17 @@ import { AudioClip } from './assets/clip';
* @zh
* 音频组件,代表单个音源,提供播放、暂停、停止等基本功能。
*/
@ccclass('cc.AudioSourceComponent')
@help('i18n:cc.AudioSourceComponent')
@ccclass('cc.AudioSource')
@help('i18n:cc.AudioSource')
@menu('Components/AudioSource')
export class AudioSourceComponent extends Component {
export class AudioSource extends Component {
@type(AudioClip)
protected _clip: AudioClip | null = null;
@property
@serializable
protected _loop = false;
@property
@serializable
protected _playOnAwake = true;
@property
@serializable
protected _volume = 1;

private _cachedCurrentTime = 0;
Expand Down Expand Up @@ -112,7 +112,6 @@ export class AudioSourceComponent extends Component {
* 音频的音量(大小范围为 0.0 到 1.0)。<br>
* 请注意,在某些平台上,音量控制可能不起效。<br>
*/
@property
@range([0.0, 1.0])
@tooltip('i18n:audio.volume')
set volume (val) {
Expand Down
18 changes: 18 additions & 0 deletions cocos/audio/index.ts
@@ -0,0 +1,18 @@
export { AudioClip } from './assets/clip';
import './audio-downloader';

import { AudioSource } from './audio-source';
import { legacyCC } from '../core/global-exports';
import { ccclass } from '../core/data/class-decorator';
import { warnID } from '../core/platform/debug';

export { AudioSource };
legacyCC.AudioSource = AudioSource;

@ccclass('cc.AudioSourceComponent')
export class AudioSourceComponent extends AudioSource {
constructor () {
warnID(5400, 'AudioSourceComponent', 'AudioSource');
super();
}
}
44 changes: 22 additions & 22 deletions cocos/core/3d/builtin/effects.ts

Large diffs are not rendered by default.