Commit Graph

5909 Commits

Author SHA1 Message Date
oahc09 0dd67aee0b fix:android activity jni global reference leak (#13631)
* fix:android activity jni global reference leak

* improve:only release jniObjectActivity,keep classloader
add nullptr check for classloader to avoid new global reference many times
2022-12-07 11:48:03 +08:00
troublemaker52025 77aa1ba748 optmization framebuffer clear (#13690) 2022-12-07 11:45:39 +08:00
Yiwen 841571628c fix the bug that native physics system emits tons of wrong events (#13683) 2022-12-07 11:20:02 +08:00
Cocos Robot 990878c66d [ci skip][AUTO]: Automated code generating update: ffcb61a83a60a98d7b51fe0f1ec7696a9afa4ff7 (#13688) (#13692)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-12-06 20:56:32 +08:00
徐兵 ecb00f7631 fix add reflection probe report error for native scene (#13688)
* add validate

* fix switch probe error
2022-12-06 19:05:49 +08:00
pandamicro 313a1032b7 Separate present time from renderer time in profiler (#13684) 2022-12-06 18:24:02 +08:00
troublemaker52025 ecfb8be5bf fix editor crash when creating a new reflection probe (#13682) 2022-12-06 17:05:35 +08:00
mmyduckx 0e9de1e208 fix win32 editbox cannot getCurrentWindow handler (#13680) 2022-12-06 16:30:07 +08:00
James Chen e56b4c3cb8 Fix material inspector missing elements (#13674)
* Add missing properties in EffectAsset.h for editor

* Move recordAsBool to PassUtils, IPassInfoFull::propertyIndex needs to be optional

* Add IPropertyEditorInfo struct.

* Fix macroRecordAsBool
2022-12-06 15:06:08 +08:00
zhangxin fd665d36fc [fix] cc::scene::Camera::syncCameraEditor (#13673)
* [fix] cc::scene::Camera::syncCameraEditor

- remove ignore cc::scene::Camera::syncCameraEditor
- use const ptr instead of cosnt ref

* Update scene.i
2022-12-06 13:37:18 +08:00
qiuguohua 4841ad7d81 Fix the problem that the simulator initializes Fileutils twice and causes leakage. (#13599) 2022-12-06 10:55:59 +08:00
Cocos Robot 13431ef3fc [ci skip][AUTO]: Automated code generating update: 7e2d567818eeb91c6df0ed2bfd9548f450c9a797 (#13666) (#13668)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-12-06 10:42:57 +08:00
徐兵 73b234a311 fix switch reflection probe type error for native engine (#13666) 2022-12-06 10:38:56 +08:00
James Chen 6716fc8563 [native] Fix script errors if Material.getProperty returns null (#13665) 2022-12-06 10:15:57 +08:00
James Chen 72fcf7797b [native] Fix missing PipelineRuntime::macros property and fix wrong key in ShadowFlow.cpp (#13660) 2022-12-06 09:14:56 +08:00
江战 046a2b1378 Re-impl CC_ASSERT & CC_ASSERTF (#13588) 2022-12-05 17:12:30 +08:00
Cocos Robot b3cf629946 [ci skip][AUTO]: Automated code generating update: 3a71f4278eac2cdaf08b03861ff89dc2df9422b8 (#13655) (#13657)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-12-05 16:23:33 +08:00
zxx43 a485712874 fix particle 2d native crash (#13655) 2022-12-05 15:52:04 +08:00
James Chen c89c532b6d [native] Fix some decorators are missing. (#13651)
* [native] Fix some decorators are missing.
2022-12-05 15:46:42 +08:00
李吉林 f2d3411c71 fix visibility of profiler in editor (#13654) 2022-12-05 15:42:50 +08:00
minggo 0c1786415f check mesh data (#13646) 2022-12-05 14:24:53 +08:00
bofeng-song 317a30d85b disable unused code (#13591)
* disable unused code
2022-12-05 11:56:52 +08:00
李吉林 13d49b1a9b fix mesh merge error (#13639)
* fix mesh merge error

* add log.h for android

* fix DebugRenderer update on metal
2022-12-05 10:18:22 +08:00
James Chen eaa9142b72 Fix missing default values for properties of native classes. (#13642)
* Fix missing default values for properties of native classes.

* Revert setDefaultValue in property.ts , should not return when JSB is enabled.

* Use SetAccessorProperty instead of SetAccessor to bind JS getter & setter.

https://stackoverflow.com/questions/57686545/setaccessor-and-setaccessorproperty-any-difference

* [JSB] Add 'name' property for Node prototype.

* Check whether Root is null in Scene's constructor since editor may new a scene object before Root is created.
2022-12-05 10:08:55 +08:00
Cocos Robot e81fda4ab0 [ci skip][AUTO]: Automated code generating update: 56356efddcabbee58771ca2eabd152d224e10e20 (#13617) (#13637)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-12-02 18:39:25 +08:00
江战 c0fb0bba84 Bugfix: ensure reentryability for Node::setWorld* functions (#13617) 2022-12-02 18:34:29 +08:00
troublemaker52025 8d1ed0e1d5 [Optimize] csm transition code (#13611) 2022-12-02 17:09:26 +08:00
oahc09 bd8b91ce4a fix:in xr remote preview when get device's manufacturer and model name it's length may be beyond 32. (#13601) 2022-12-02 14:42:40 +08:00
江战 e2cd70e5d4 Bugfix: call debug::errorID with uint data type (#13626)
* debug::errorID should accept uint as format argument

* fix lint errors
2022-12-02 12:02:28 +08:00
Yiwen 11b9a319c9 fix scene culling crash while bounding box is lost (#13606) 2022-12-02 10:23:06 +08:00
Cocos Robot dff52ce66f [ci skip][AUTO]: Automated code generating update: a0c58fd8a3180fafd10be63b261f0d6e4c1bb98f (#13580) (#13608)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-12-01 10:19:16 +08:00
hyde zhou 9f145fffb7 [pipeline] update custom pipeline (#13580) 2022-12-01 10:13:02 +08:00
李吉林 ec651d055c use camera's visibility to render profiler (#13589) 2022-11-29 17:49:56 +08:00
徐兵 68a89458ff optimize planar reflection culling (#13576) 2022-11-29 17:05:21 +08:00
李吉林 0f59c48817 modify GIScale range (#13584) 2022-11-29 15:25:16 +08:00
bofeng-song c0d989abab fix LOD's error while using at native scene (#13579) 2022-11-28 18:22:33 +08:00
mmyduckx 854dd6859a set default HTTP protocol to HTTP 1.1 (#13578)
* set downloader default HTTP protocol to HTTP 1.1
2022-11-28 15:21:31 +08:00
江战 b45a1e52e6 generate cocos-version.h (#13547) 2022-11-28 11:31:05 +08:00
江战 0f3871b9af add v8 flag --no-turbo-escape (#13562) 2022-11-28 11:29:37 +08:00
mmyduckx 50d70bcf9e fix videoPlayer display incorrectly in specific devices (#13563) 2022-11-28 11:27:04 +08:00
江战 8a70873697 reduce build warning logs (#13574) 2022-11-28 11:26:28 +08:00
mmyduckx 4399b71d9a fix webview display incorrectly in specific devices & refactory setFrame (#13570) 2022-11-28 11:25:20 +08:00
江战 9808aa1dba apply sequence id for log-remote (#13564) 2022-11-28 11:21:57 +08:00
江战 85f73eb8c2 Remove some dead code for JSB (#13556) 2022-11-28 11:20:22 +08:00
pandamicro 2486810ded Fix issue that FLOAT4 uniform validator doesn't accept quaternion (#13551) 2022-11-24 21:47:19 +08:00
Cocos Robot 01a00514f0 [ci skip][AUTO]: Automated code generating update: 61e9b35b5be3036d9f8d1264997017a07073aa2b (#13420) (#13537)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-11-24 13:40:16 +08:00
fqamic d4055f7e32 new basic capabilities of supporting handset ar and webxr (#13420)
* feat: add the basic capability of handset ar native

* feat: add handset input device, for ar camera pose

* feat: native pack tool supports xr platform name

* feat: web gl context supports webxr

* feat: webxr has been converted to screen coordinates via camera

* fix: pr ts-expect-error undefined xr

* feat: support webxr, and remove ar redundant code

* fix:xr-spaces gradlew permission error

* feat: revert redundant ar engine feature

* fix: eslint check error

* feat: remove redundant code

* fix: eslint check warning

* adjust armodule process in forward stage, mtl texture and jsb

* fix: exlint warning, and add license

* adjust ar lib and interfaces

* change webxr check interface

* merge external arlib header and move it to engine

* improve: update native external version

* move ar background stage to xr/rendering and move its init to webxr device in xr plugin

* fix format error

* fix format error

* adjust jsb_ar_manual, ARModule, ARBackground

* adjust arbackground

Co-authored-by: Parryzhai <1306895355@qq.com>
Co-authored-by: MoHai <1192652394@qq.com>
2022-11-24 13:33:50 +08:00
hyde zhou 32d642459f skip descriptors, uniform jsb error (#13529) 2022-11-24 10:41:04 +08:00
听榆大叔 e1c86d668b Fix composed character on multiline EditBox (#11263)
Co-authored-by: pandamicro <lphuabin@gmail.com>
2022-11-24 09:46:16 +08:00
Cocos Robot 12f77bea3f [ci skip][AUTO]: Automated code generating update: f99812bf42bbf3a17f88973600735c888227a455 (#13490) (#13523)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-11-23 19:09:47 +08:00