Commit Graph

422 Commits

Author SHA1 Message Date
pandamicro eeac56e7cc Merge pull request #2989 from cocos-creator/next
Merge next to v2.0 release
2018-07-17 16:52:06 +08:00
pandamicro 4180152cdf Fix beta users reported issues (#2979)
* Fix node API docs

* Fix debug panel appear in release mode issue

* Do not alert rotation inconsistency, avoid alert in 3d

* Fix skew not updated issue

* Fix EventTarget not inited in SpriteFrame

* Added Animation.EventType

* Add getQuat & setQuat for 3d node

* do not alert normalize zero vector

* Fix spine assembler rendering issue

* Improve node hitTest & fix mask hitTest

* Add missing Node.once implementation

* Fix EventTarget.once callback parameters

* Improve event API docs

* Fix return type should be vec2 instead of simple object

* Improve showFPS parse
2018-07-16 11:26:17 +08:00
pandamicro 88e58d39b7 Add forceCanvas build option, rearrange modules for canvas renderer (#2969)
* Remove useless requires

* Build engine support forceCanvas to use canvas version render engine

* Rearrange modules, separate webgl & canvas renderer

* Do not create material in canvas

* Cleanup canvas renderers

* Improve modules.json

* Fix unit test

* Fix wechat sub domain build issues

* Make Camera working for canvas render mode

* Fix canvas renderer issues

* Reenable camera in Canvas

* Fix label colorizing issue
2018-07-13 14:13:48 +08:00
Jare Guo f8d38f4adf optimize construction and serialization performance for wechat mini games (#2970)
* optimize instantiate for platform whose CC_SUPPORT_JIT disabled

* optimize instantiate for platform whose CC_SUPPORT_JIT disabled

* optimize object construction for platform whose CC_SUPPORT_JIT disabled

* optimize deserialization for platform whose CC_SUPPORT_JIT disabled
2018-07-13 10:48:17 +08:00
pandamicro bc071a0ff0 Fix issues (#2960)
* Fix EVENT_ENGINE_INITED callback not invoked issue

* Fix redo making disabled component enter render flow
2018-07-10 16:47:17 +08:00
pandamicro 5b0b7953ce Migrate data from color.a to opacity (#2886)
* Migrate data from color.a to opacity

* Simplify opacity calculation in render flow
2018-06-22 14:08:07 +08:00
pandamicro 5e55976997 Improve Node event emit performance (#2862)
* Improve Node event emit performance

* Simplify Node event emit by removing event obj

* Fix example
2018-06-19 15:34:19 +08:00
Knox fd37907239 fixed opacity bug for fireball/issues/7555 (#2847)
* fixed opacity bug for fireball/issues/7555

* refine code
2018-06-13 18:47:00 +08:00
pandamicro 2918403348 Fix color overwriting issue when sprite frame change (#2857)
* Fix color overwriting issue when sprite frame change

* Fix _localMatDirty type alter issue
2018-06-13 15:00:31 +08:00
yinkaile 303f20653b add debug camera (#2853)
* add debug camera

* refine code
2018-06-13 11:30:20 +08:00
pandamicro 8bc53f72e1 Make cascade opacity actually working (#2828) 2018-06-08 10:33:34 +08:00
yinkaile 02b39bb853 fixed node undo/redo (#2826) 2018-06-07 22:59:03 +08:00
yinkaile 6882e601ce implement cascade opacity (#2804)
* implement cascade opacity

* refine code

* refine code

* refine code
2018-06-06 11:39:38 +08:00
pandamicro dd8c61662a Fix world transform update issue during inactive period (#2806)
* Fix world transform update issue during inactive period

* update comment
2018-06-05 19:09:15 +08:00
yinkaile 7fe2eab497 fixed switch scene (#2791) 2018-06-01 15:35:00 +08:00
yinkaile a2d846294c fixed CCNode event (#2783)
* fixed CCNode event

* refine code
2018-06-01 10:37:48 +08:00
pandamicro 2f63b84d47 Fix parent setting not trigger world transform update issue (#2768) 2018-05-30 12:16:33 +08:00
yinkaile 74f1d560d9 fixed error when switch scene in editor (#2758)
* fixed error when switch scene in editor

* refine comment
2018-05-30 10:00:49 +08:00
pandamicro efaf0c5d4d Merge remote-tracking branch 'fireball/master' into next 2018-05-24 19:04:55 +08:00
pandamicro 8aea3b8be6 Small fixes for ParticleSystem reimplementation (#2729)
* Refactor vfmtPosColorUv to vfmtPosUvColor

* Fix Node getNodeToWorldTransform

* Reset quad buffer during walker reset

* Fix affine transform api doc

* Remove useless uintbuf
2018-05-24 15:57:43 +08:00
pandamicro 352c999d40 Fix color render flag set to normal node (#2702) 2018-05-17 18:36:34 +08:00
pandamicro 9f9ac0b1e3 Remove Node _worldMatUpdated (#2698)
* Maintain worldMatUpdated state

* Remove _worldMatUpdated property from Node
2018-05-17 15:57:20 +08:00
pandamicro 27fef43853 Issue fixes for 3d project (#2669)
* Remove useless handleLoadedTexture

* Fix RenderFlow flag setting issue

* Remove useless key board event check
2018-05-11 18:24:02 +08:00
yinkaile 15e63fc817 fixed label error (#2664)
* fixed label error

* should not render label if string is empty

* improve color render  flag
2018-05-11 11:19:50 +08:00
Jare Guo ebf7d7d730 register component to scene after ctor (#2661) 2018-05-10 17:00:59 +08:00
pandamicro b7ce3032ba Fix more issues for 2.0 (#2662)
* Use black as camera default clear color

* Fix director delta time issue in editor

* Fix particle system init and editor update issue

* Improve Node API ref
2018-05-10 16:47:44 +08:00
Jare Guo 6b9c9242fa Merge 1.9 2018-05-09 21:14:29 +08:00
yinkaile f8988b0aa8 reset dynamic atlas before scene loading (#2655)
* reset dynamic atlas before scene loading

* fixed node undo/redo
2018-05-09 15:40:21 +08:00
yinkaile e4325577ad Next vertex format (#2645)
* restructure vertex format

* update render-engine.js

* refine vertex format

* refine sprite vertex property name
2018-05-08 21:51:27 +08:00
SijieWang b400e4b56f review code 2018-05-08 11:50:41 +08:00
SijieWang 9bc8c63379 move code to onRestore 2018-05-07 18:16:10 +08:00
SijieWang 0e854f3cc4 active must synchronize to component 2018-05-07 18:01:58 +08:00
SijieWang 06b1965b8c sizeProvider.visible needs to be updated 2018-05-07 17:21:31 +08:00
pandamicro 50c91c641c Use RenderFlow to optimize renderer visit process (#2634)
* Optimize (#2601)

* support render flow

* small improve

* small improve

* support different vertext format for buffer

* optimize dynamic atlas

* fixed sprite assemblers

* store uvs in spriteframe

* fixed issues

* fixed mask

* remove unused code

* small improve

* small fix

* upgrade assemblers

* refine code

* set id for vertex format name

* Fix mesh buffer initialize issue on native

* Fix spine node setting issue

* fixed dragonbone assembler (#2635)
2018-05-07 15:47:48 +08:00
Jare Guo 32205ee27b define apisrc.json in this repo 2018-05-05 18:07:40 +08:00
pandamicro e597e34f4f Remove __instanceId from Node and Component (#2627)
* Add Scheduler.enableForTarget and change to use  _id

* Use _id instead of __instanceId in Texture2D

* Fix ParticleSystem __instanceId usage

* Use _id instead of __instanceId in ActionManager

* Fix usage of Scheduler in InputManager

* Use _id instead of __instanceId in EventManager

* Totally remove ClassManager and __instanceId

* Fix initialization process

* Fix touch & mouse listener off check issue

* Fix id not generated issue

* Fix touch & mouse listener being removed by rejected persist node

* Improve logic
2018-05-04 13:51:21 +08:00
pandamicro 396154d41b Fix issues (#2608)
* Add missed vec3 APIs

* Fix Node property setter issue

* Fix scene dirty sync issue

* Fix setWorldRot not setting dirty issue
2018-04-27 18:00:48 +08:00
pandamicro 87a8613c39 Fix issues (#2606)
* Fix _LocalDirtyFlag undefined issue

* Fix blend function intialization issue

* Fix graphic usage issue in spine assembler
2018-04-27 09:49:14 +08:00
pandamicro 38c61c70b4 Refactor EventTarget: remove hasListenerCache, move dispatch APIs to Node (#2595)
* Improve node property setter performance

* Avoid physics sync trigger events

* Improve callbacksHandler.has performance

* Use flag instead of hasListenerCache in animation state

* Remove hasListenerCache, add event target APIs for dispatch

* Fix some issues

* Fix event target has check

* Expose EventType and LocalDirtyFlag

* Move dispatch related APIs to Node and fix issues

* Refactor event target

* Fix sub listener usage for event target

* Improve code

* Remove callbacksInvoker.has
2018-04-26 21:50:27 +08:00
pandamicro 6bf14fef51 Avoid configurable property and avoid editor issue 2018-04-26 11:32:17 +08:00
pandamicro 4f1f0a7cfb Fix issues 2018-04-26 10:52:46 +08:00
pandamicro 661c5327e7 Tranform properties API polyfill for 3d 2018-04-26 09:35:48 +08:00
pandamicro 7b98f49cd6 Fix updateWorldVerts based on worldMatUpdated and other issues (#2593)
* Fix updateWorldVerts based on worldMatUpdated

* Fix issues
2018-04-24 22:23:18 +08:00
pandamicro ef5b172506 Fix scene mat dirty not updated issue and improve logic 2018-04-24 11:21:42 +08:00
pandamicro 7997b2c6a8 Remove _syncWorldDirty for recursive approach (#2582)
* Fix render data issue for bar filled sprite

* Remove _syncWorldDirty for recursive approach
2018-04-23 18:26:06 +08:00
pandamicro 0f87a11100 Merge pull request #2564 from cocos-creator/optimize
Merge optimizations into next
2018-04-19 18:31:30 +08:00
pandamicro d8ca6001d8 Recursively visit node instead of walk through comp chain 2018-04-19 16:58:44 +08:00
pandamicro a9790f608a Fix scale setting issue 2018-04-17 14:54:01 +08:00
pandamicro f24dad8b16 Merge pull request #2544 from 2youyou2/optimize-transform
optimize transform
2018-04-17 11:49:23 +08:00
yinkaile 0da76270e3 fixed indentation 2018-04-17 11:00:05 +08:00