Commit Graph

441 Commits

Author SHA1 Message Date
yinkaile 5de0723e4b fixed switch between 2d/3d rotation (#3207) 2018-09-06 15:27:31 +08:00
Jare Guo bd29a6db8c Merge 2.0-release
# Conflicts:
#	predefine.js
2018-09-06 10:41:21 +08:00
Jare Guo 6dbcfe67a0 fix _renderFlags after scene restored (#3193) 2018-09-05 10:29:13 +08:00
pandamicro 4f25b1a0d9 Add mat4 value type (#3179)
* Add mat4 value type

* Fix api doc in vec2 / vec3

* Use Mat4 type globally
2018-09-02 23:54:47 +08:00
yinkaile 6d9c3c7089 support search skeleton animation clips (#3175)
* support search skeleton animation clips

* fixed node property

* fixed comment

* fixed test
2018-09-02 23:51:54 +08:00
pandamicro d25f4417c0 Fix docs (#3172) 2018-08-30 22:27:07 +08:00
yinkaile a33be26b1a support skeleton animation (#3151)
* support 2.5D

* refine code

* refine code

* refine code

* refine code

* refine code

* refine code

* update

* support skin mesh

* add is3DNode property

* add comment

* update

* update

* update

* fixed test

* refine code

* update

* refine code

* refine code

* refine code
2018-08-30 14:56:18 +08:00
yinkaile 6c6ee961f0 support 2.5D (#3120)
* support 2.5D

* refine code

* refine code

* refine code

* refine code

* refine code

* refine code
2018-08-23 11:21:18 +08:00
Jare Guo 426f809c32 Merge branch 'v2.0-release' into next
# Conflicts:
#	cocos2d/core/renderer/render-engine.js
2018-08-14 16:00:50 +08:00
pandamicro 411e52b580 Fix user reported issues (#3081)
* Upgrade render engine to fix some issues

* preserve drawing buffer in qqplay

* Fix label issue when using system font and fontFamily is not set

* Secure Editbox _impl access

* Fix Joint.getReactionForce

* Remove cc.director.getProjection usage

* Fix particle system color type issue in editor

* Apply Skeleton frame when changing animation in editor

* Fix docs, improve deprecation
2018-08-14 10:25:21 +08:00
Jare Guo 51b68523ac Merge commit v2.0-release into next
# Conflicts:
#	cocos2d/core/components/editbox/CCEditBox.js
2018-08-10 13:39:24 +08:00
Knox 4715e7a48d fix localZOrder bug for fireball/issues/8083 (#3052)
* fix localZOrder bug for fireball/issues/8083

* refine code
2018-08-09 09:39:57 +08:00
pandamicro 46be82e7c0 Improve docs & deprecation (#3053)
* Add Texture deprecated APIs

* Improve BaseNode deprecation message

* Fix api doc

* Secure cc._widgetManager access
2018-08-08 11:03:12 +08:00
PP e9dacbe3f0 correct annotation (#3048) 2018-08-07 15:51:02 +08:00
pandamicro 58ae7eecd8 Improve doc for Node zIndex 2018-08-02 13:40:01 +08:00
pandamicro 926cb25427 Fix Node event API doc 2018-08-02 13:40:01 +08:00
Jare Guo 1abfe0c006 Button allow enableAutoGrayEffect when COLOR transition being choosed (#3026) 2018-07-31 10:37:45 +08:00
pandamicro a82b03d3a9 Improve doc 2018-07-30 22:59:17 +08:00
pandamicro 1ec38cc239 Fix beta user reported issues (#3004)
* Fix doc, error & cleanup code

* Fix render component nested in mask issue

* Fix multiple spine textures rendering issue

* Box2d stability

* Upgrade renderer.js to 1.8.6

* Avoid particle default values override custom issue

* Fix ParticleSystem restore issue in editor

* Fix enumerate scene.active issue

* Fix error map with new ids
2018-07-23 17:25:54 +08:00
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