Commit Graph

17466 Commits

Author SHA1 Message Date
Zeqiang Li fac0f58a71 skip getraw (#10429) 2022-03-22 11:16:27 +08:00
SijieWang 4cabeed1ee [Feature] imageAsset: add bakeOfflineMipmaps (#10404)
Co-authored-by: Sijie <devhacker520@hotmail.com>
2022-03-22 10:38:41 +08:00
timlyeee 7d7f32e24e rename windows process name (#10422)
* remove file description in game.rc, the process name  will keep the same as project name
* add macro definition GAME_NAME for creating window, as no other way to read it.
2022-03-22 10:29:25 +08:00
kenshin 93f37f2b82 Optimize android download tasks. (#10274) 2022-03-21 19:53:11 +08:00
zhakesi 1f4e10a0c8 fix spine/dragonbones opacity update (#10349)
* fix spine/dragonbones opacity update

* fix use ui-opacity with spine on editor

Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-03-21 19:51:34 +08:00
zhakesi c4730a29dc fix animation not work caused by creating spine in a hided node (#10380)
* fix animation not work caused by creating spine in a hided node

* use a flag to mark if need update skeleton data setting

Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-03-21 19:36:44 +08:00
ChiaNing 44b78f0a89 fix opacity dirty bug when parent change (#10416) 2022-03-21 19:13:51 +08:00
袁炜海 69c46a3a27 feat: sync inspector 3.6 to 3.5 (#10397)
* feat: sync inspector 3.6 to 3.5

* sync inspector edit

Co-authored-by: arsen2010 <arsen2010@126.com>
2022-03-21 15:38:08 +08:00
alpha 5647498081 UIOpacity Component DisallowMultiple (#10390) 2022-03-21 13:52:39 +08:00
Yun Hsiao Wu 7aaac3c6b7 bypass job system creation if possible (#10308) 2022-03-21 11:23:21 +08:00
Cocos Robot f078686229 [ci skip][AUTO]: Automated clang-format update: 65cf4e5ef0f8b518442e457f69bf41e4fa994bed (#10393) (#10408)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-21 11:22:30 +08:00
qiuguohua 94f42b3c4b Add dynamic library export macro (#10393)
* Add dynamic library export macro
2022-03-21 11:17:11 +08:00
江战 cb0618f0d4 3.5 Android: okhttp impl websockets (#10384) 2022-03-21 09:46:49 +08:00
SijieWang 6bf6a96ee9 fix gen-simulator (#10401)
* fix gen-simulator
Co-authored-by: Sijie <devhacker520@hotmail.com>
2022-03-18 18:13:02 +08:00
qiuguohua 6a16077bc5 SDL related interface encapsulation (#10385)
* SDL related interface encapsulation
2022-03-18 14:43:01 +08:00
Zhang mingzhen 09352240ce dont force setting overflow clamp when excuting (#10368) 2022-03-18 14:37:43 +08:00
zhakesi e5caa3ecc2 reset render data before set asset for spine/dragonbones (#10370)
Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-03-18 10:15:03 +08:00
kenshin c374ef59de fix spine rendering confusion (#10348)
Re: cocos/2d-tasks#3621

Changelog:

Fix incorrect parsing of JSON boolean value.
Skips rendering slots without active bones .
2022-03-17 17:35:32 +08:00
Cocos Robot 30b7591b28 [ci skip][AUTO]: Automated clang-format update: 508dd40734e2e9e59a002f0f79482bf2831ad5d9 (#10359) (#10378)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-17 11:08:26 +08:00
Zeqiang Li 6cdaf450e3 fix crash by incorrect hash ---- autotest (#10359)
* fxi crash by incorrect hash
2022-03-17 10:12:51 +08:00
troublemaker52025 18952aafff fix 2D-phyisc rotation error for v3.5.0 (#10373) 2022-03-17 10:00:51 +08:00
qiuguohua 45d95dd285 Add destroy window event and recreate window event on windows platform (#10365) 2022-03-17 09:36:04 +08:00
Santy-Wang a6ffd14c23 optimize decorator performance (#10323)
* optimize decorator performance

* refine

* debug

* delete useless code

* add ccclass

* add freeze
2022-03-16 18:16:21 +08:00
Cocos Robot cd6b22312a [ci skip][AUTO]: Automated clang-format update: 28eb614cf3ba9a0eae9404d84073010e82279726 (#10344) (#10358)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-16 16:35:01 +08:00
timlyeee b9353eb18c only free for native (#10369) 2022-03-16 16:31:04 +08:00
fish9167 82cd89d260 Update native-compile-platforms.yml (#10362)
* Update native-compile-platforms.yml

更新 windows 镜像版本
限制任务触发条件(native 目录下有文件修改才会触发该任务)

* Update automation_labels.yml

组织名称修改

* change Visual Studio version

修改 Visual Studio 版本(2017-->2019)

* Update native-simulator.yml

更新 windows 镜像版本
限制任务触发条件(native 目录下有文件修改才会触发该任务)
2022-03-16 16:00:23 +08:00
Zhang mingzhen 9c37363b69 use approx instead of === (#10357)
* use approx instead of ===

* remove rebundant as
2022-03-16 13:39:11 +08:00
Leslie Leigh (李的序) 02138a9e72 Export Value in animation namespace (#10360) 2022-03-16 13:38:04 +08:00
qiuguohua 1a90cd9013 Windows platform handles multiple events at once (#10344)
* The windows platform handles multiple events at once
2022-03-16 10:33:37 +08:00
qiuguohua eb3a863a28 Replace addPermanentRegisterCallback with addRegisterCallback. (#10350) 2022-03-16 10:32:47 +08:00
kenshin e4743d6373 avoid spine and dragon crash. (#10314) 2022-03-15 18:40:50 +08:00
pandamicro 8281503c4d Merge pull request #10346 from cocos/v3.4.2
Optimize memory occupation of RealCurve, CurveRange (#10328)
2022-03-15 18:09:08 +08:00
Zhang mingzhen 8d3c975116 Rich text v align v3.5 #9984 new (#10340)
* add vertical alignment attribute

(cherry picked from commit fc4013e4016203c9ff13c3fb55ab24d8f6afdd82)

* set vertical alignment

(cherry picked from commit 60afa526e215c6e599560683427701baf42595c8)

* distinguish hAlign and vAlign

(cherry picked from commit 010e097b5c862a8373e860f01c1104b6396f81ba)

* use as instead of instanceof

* reorder attributes

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-03-15 16:27:30 +08:00
jk20012001 766b7efb2a Fix: #11580 create new light source intensity display type unknown (#10324) 2022-03-15 14:32:14 +08:00
jk20012001 6e4d4a30ac code style for surface shader (#10326) 2022-03-15 14:31:41 +08:00
zhakesi 9a4cf3784e fix spine in native platform can not get animation name (#10303) 2022-03-15 11:02:07 +08:00
Leslie Leigh (李的序) c6eb388e6a Optimize memory occupation of RealCurve, CurveRange (#10328)
* Optimize memory occupation of RealCurve, CurveRange

* Fix type
2022-03-15 10:03:46 +08:00
jk20012001 d6cc1a4094 deferred shading code revert to 3.4.2 (#10339)
* deferred shading code revert to 3.4.2

* code style
2022-03-14 20:11:47 +08:00
jk20012001 48e45ce2d7 fix compiling error with merged code (#10332)
* fix compiling error with merged code

* code style
2022-03-14 17:53:06 +08:00
黄森斌 396dca5ce1 modify diffuseMap property visible (#10333) 2022-03-14 17:00:02 +08:00
mmyduckx 14653478a5 fix ios icon res lost (#10336) 2022-03-14 16:51:15 +08:00
Leslie Leigh (李的序) c40f51a860 Fix skinned mesh morph rendering (#10318) 2022-03-14 16:19:06 +08:00
Zhang mingzhen 8d0108807e Rich Text Optimization (#9601)
* split long string into short pieces

* Add '\n' toughly, to be optimized.

* Unified offset of rendering label of ttf and bmfont

* remove chinese or redundant explanations

* step1.optimize truncate long string

* step2: add details

* optimization of tough switching line

* 1. add condition if maxWdith is over 2048.
2. add a ErrorOffset to avoid a little characters will overstep these designed lines.

* remove log

* remove rebundant code and rename the method

* resolve bug: complete english words are truncated

* revert "remove annotations"

* Revert "Unified offset of rendering label of ttf and bmfont"

This reverts commit 37d6a57d820ad5be09a90510526e85e8cca77c5a.

* optimize split algorithm

* consider one char step condition (for chinese characters)

* update conditions causing many bugs

* remove rebundant code

* add two optimizations
1. split with '\n' earlier, excute the method less;
2. when the left string size is less than 2048, the method can finish.

* remove annotated code

* resolve confict

* add internal annotation

* replace "internal" by "engineInternal"

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-03-10 16:21:47 +08:00
zhakesi 8561d5e686 fix dragonbones/spine sockets transform (#10260) 2022-03-10 16:18:28 +08:00
Leslie Leigh (李的序) 93b856b98e Make animation module optional (#10257) 2022-03-10 11:55:11 +08:00
Yun Hsiao Wu df6465c723 remove debug code (#10293)
they use overly-strict memory orders, which is not good to keep around
anyways
2022-03-10 09:42:26 +08:00
Yun Hsiao Wu a291000259 update default content (#10273) 2022-03-09 18:23:43 +08:00
Zhang mingzhen b2e497adc5 update richtext truncation condition (new) (#10252)
* update richtext truncation condition

(cherry picked from commit 585eab687a039e5e6caa76ac465b4285f3711710)

* remove rebundant condition

(cherry picked from commit a04bef01fbe8ff61ae3aebc1daf8fe5bda2d58cf)

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-03-09 16:09:00 +08:00
ChiaNing 0027a64f8d add auto atlas unit test (#10247) 2022-03-09 10:15:12 +08:00
Leslie Leigh (李的序) e86ee1a247 @disallowAnimation should not imply visible (#10262) 2022-03-08 16:27:30 +08:00