Commit Graph

6362 Commits

Author SHA1 Message Date
yinkaile 97c50c24de destroy dynamic atlas texture before loading scene (#2678)
* destroy dynamic atlas texture before loading scene

* refine code

* refine code
2018-05-15 11:33:46 +08:00
Knox d57064fa43 fix CCMotionStreak color error for fireball/issues/7286 (#2679) 2018-05-15 10:37:26 +08:00
Knox 646a406ebd CCSprite spriteframe avoid RenderFlow.FLAG_RENDER (#2675) 2018-05-15 09:35:32 +08:00
James Chen fa3783a991 Minor JS logic fixes in CCSys.js and MediaError.js. (#2676) 2018-05-14 15:26:33 +08:00
James Chen 9662eb539b More jsb adapter fixes and adds HTMLScriptElement (#2670)
* jsb-adapter fix.

* reverts.

* tab -> spaces.
2018-05-13 10:29:34 +08:00
pandamicro b4313de272 Fix issue caused by sprite.spriteFrame set to null (#2672) 2018-05-12 17:01:17 +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
James Chen cd07d03b7d Removes wx API invocations for JSB projects. (#2668)
* Removes wx API invocation for JSB projects.

* sys.openURL fix for JSB.

* touches, mouse, keyboard capabilities check.
2018-05-11 18:00:40 +08:00
yinkaile f326869f47 fixed richtext (#2667) 2018-05-11 15:42:53 +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 8d9fc58a6a fix scene reloading (#2660) 2018-05-10 14:59:21 +08:00
Jare Guo 04d8a432f6 fix _id in editor (#2658) 2018-05-09 19:31:34 +08:00
pandamicro 314b0b55c0 Issue fixes for 2.0 (#2656)
* Generate component _id with uuid in editor

* Fix issues
2018-05-09 18:10:04 +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
pandamicro 1e5cfcad9f Fix Color fromHEX typo (#2651) 2018-05-09 10:31:56 +08:00
pandamicro ec9a718569 Issue fixes for 2.0 (#2650)
* Upgrade render engine

* Fix sprite rendering issue while loading sprite frame

* Fix mesh buffer initialization issue

* Fix color fromHEX

* Remove ;
2018-05-09 10:05:23 +08:00
Jare Guo 550e85b9e2 update _id management (#2648) 2018-05-09 09:58:51 +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
Jare Guo f12f5cd987 Merge pull request #2647 from pandamicro/next
Improve Node/Component _id management
2018-05-08 19:36:46 +08:00
pandamicro 8a92606e29 Fix _id reset issue 2018-05-08 19:05:12 +08:00
minggo ffeada68f3 fix musk issue (#2644) 2018-05-08 11:33:48 +08:00
pandamicro 26de29f489 Upgrade renderer.js to 1.8.3 (#2642) 2018-05-08 10:34:28 +08:00
pandamicro 1034635917 Upgrade render-engine (#2638) 2018-05-07 17:56:14 +08:00
pandamicro 13314a1298 Fix native build issue (#2636) 2018-05-07 17:14:24 +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
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 f3304e626b Merge pull request #2618 from pandamicro/next
Merge master into next
2018-05-02 16:28:07 +08:00
pandamicro 48cb41798a Fix tile map merge issue 2018-05-02 16:25:40 +08:00
pandamicro e4bdd1edc3 Merge remote-tracking branch 'fireball/master' into next 2018-05-02 16:16:33 +08:00
pandamicro a0043db9df Small issue fixes (#2617)
* Fix emit event on invalid animation issue

* Support setQuat with x, y, z, w

* Fix native running issue
2018-05-02 15:38:15 +08:00
Jare Guo 74af382a61 Merge 1.9 2018-04-29 14:35:46 +08:00
Jare Guo 448aa72f2c Merge pull request #2614 from jareguo/master
add JsonAsset
2018-04-29 14:32:29 +08:00
Jare Guo 542ef017c0 add JsonAsset 2018-04-28 16:17:13 +08:00
Jare Guo 3b2117edb2 Merge pull request #2611 from jareguo/v1.9-release
minor fix, should not invoke any callback when object destroyed
2018-04-27 21:39:38 +08:00
Jare Guo 637f8460eb minor fix, should not invoke any callback when object destroyed 2018-04-27 21:38:40 +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
Jare Guo c47f5aa68e Merge branch 'v1.9'
# Conflicts:
#	cocos2d/actions/CCActionInterval.js
#	cocos2d/audio/CCAudioEngine.js
2018-04-27 14:20:10 +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
PP b08233c801 TiledMapAsset: reimplement RawAsset to Asset (#2575)
* TiledMapAsset: reimplement RawAsset to Asset

* deprecated errorID 7220

* push sourceTSX to tsxFileNames

commit2

* remove Path.normalize()

* tiledmap: change arg tsxMap


commit
2018-04-26 21:50:04 +08:00
Jare Guo 1ce0134f26 fix api doc 2018-04-26 19:20:35 +08:00
James Chen 16de00f09e The textview of debugging info should also display whether GL opt mode is enabled. (#2603) 2018-04-26 16:51:34 +08:00
Jare Guo 26b50ded52 Merge v1.9 2018-04-26 15:31:49 +08:00
Jare Guo 9ac3ac786e Merge pull request #2598 from pandamicro/poly3d
Tranform properties API polyfill for 3d
2018-04-26 12:46:49 +08:00
Jare Guo 4fe4f50e81 Merge pull request #2600 from jareguo/master
refine api doc
2018-04-26 12:44:25 +08:00
Jare Guo 5da0f872ee refine api doc 2018-04-26 12:43:33 +08:00
pandamicro 6bf14fef51 Avoid configurable property and avoid editor issue 2018-04-26 11:32:17 +08:00
Jare Guo 013f155882 fix ZERO blend mode on web (#2597)
* stash

* fix ZERO blend mode support
2018-04-26 11:05:57 +08:00