Commit Graph

75 Commits

Author SHA1 Message Date
江战 719c756656 revert a6684b1 (#15393) 2023-06-08 22:48:53 +08:00
pandamicro c8d3be08a3 Fix issues in Node.updateWorldTransform and UITransform.getBoundingBoxTo[World] (#15273)
* Fix transform update issue when only rotation is set to root node

* Fix UITransform.getBoundingBoxTo and UITransform.getBoundingBoxToWorld

* Improve API and test

* Fix native Node::updateWorldTransform

* Fix UITransform.getBoundingBoxTo

* Fix getBoundingBoxTo by ensuring one time rect transform

* Ignore zero sized rect for bounding box calculation

* Improve API doc
2023-06-07 11:10:28 +08:00
Santy-Wang d3a9b5a8b8 gradient misc optimization and add some helpful function (#15032)
* gradient misc optimization and add some helpful function

* keep old version and add new interface

* missing .

* mark as engineInternal
2023-05-24 13:59:29 +08:00
minggo 1049ec7c6b make _siblingIndex/_parent to protected (#14667)
* make _siblingIndex/_parent to protected
* add modifyParent to modify _parent value only
2023-03-28 14:12:03 +08:00
santy-wang 0a81bf445e Merge branch 'develop' of github.com:cocos-creator/engine into v3.7.2 2023-03-13 16:51:47 +08:00
Myway 879668c64f support highp lightmap for native engine (#14510)
* support highp lightmap for native engine
fixed camera exposure uniform error

* fixed lint error
2023-03-08 20:23:19 +08:00
江战 a6684b18c9 Merge _flagChangeVersion and _hasChangedFlags, Use Single uint32_t to Save Memory and Avoid Inconsistencies (#14454)
* merge _flagChangeVersion & _hasChangedFlags into single uint32_t
2023-03-07 10:27:51 +08:00
ChiaNing a769f3fb5a change node dirtyFlag name & add interface (#14396)
* change node dirtyFlag name & add interface
2023-02-28 13:47:23 +08:00
James Chen 78f4dd8be6 [native] Merge some optimizations from new serialization task (#14338)
* [native] Merge some optimizations from new serialization task

- Optimize the loading time of loading scene which has plenty of nodes.
2023-02-23 14:51:26 +08:00
李吉林 093b6972df V3.7.2 light probe baking changed (#14134)
* add onLightProbeBakingChanged
2023-02-02 21:00:16 +08:00
minggo 313c58fe33 Improve utils api doc (#13922) 2022-12-28 15:04:56 +08:00
bofeng-song e6277b9911 fix name can not be reset after node is destroyed (#13908)
* fix property can not be reset normally
2022-12-28 13:56:25 +08:00
pandamicro afd22296b4 MIT license update and to new year 2023 (#13927)
* Cpp MIT license update and to date
* TS MIT license update and to date
2022-12-28 11:25:12 +08:00
李吉林 b857bd1cc8 remove emitting onAncestorTransform (#13823)
* remove emitting onAncestorTransform
2022-12-15 13:36:47 +08:00
Myway e30adb09ad Add lightmap shader macos for native model (#13774)
* terrain support stationary light map
fixed terrain light map shader compile error

* fixed brush invalid material cause missing lighting map uniform

* Add lightmap shader macros for model

* fixed compile error

* Add bakedStationaryMainLight jsb property for scene globals
2022-12-09 16:33:01 +08:00
李吉林 42b5d4628f add cpp call js function (#13731)
* support emitting MobilityChanged & AncestorTransformChanged events in c++
2022-12-08 11:23:43 +08:00
江战 046a2b1378 Re-impl CC_ASSERT & CC_ASSERTF (#13588) 2022-12-05 17:12:30 +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
江战 c0fb0bba84 Bugfix: ensure reentryability for Node::setWorld* functions (#13617) 2022-12-02 18:34:29 +08:00
李吉林 7a32e653cb remove component related code from native (#13352)
* remove component related code from native
2022-11-14 11:34:42 +08:00
江战 376f0ca284 use std array to store event listeners (#13283)
* use std array to store event listeners

* fix offAll

* make code debuggable

* make code debuggable

* rename to DECLARE_TARGET_EVENT_BEGIN_WITH_PARENTS
2022-11-10 11:00:33 +08:00
江战 db8c0dda7d fix setWorldScale (#12988) 2022-11-08 11:05:26 +08:00
江战 280fd976bc Add EventTarget & EventBus (#13100) 2022-10-28 15:44:33 +08:00
李吉林 82b4a419cd fix light probe cropping (#13137) 2022-10-25 11:39:53 +08:00
李吉林 a9d4e13f85 Light probe merge (#13093)
* add light probe
2022-10-19 22:34:21 +08:00
mmyduckx 2ea6e9b148 Remove base node related logics (#11977) 2022-08-23 17:34:36 +08:00
minggo 834cfa66af Merge branch 'v3.6.1' into merge_v3.6.1 2022-08-23 14:13:02 +08:00
James Chen e4cd83ec59 Fix potential crash in Node::isChildOf (#12493) 2022-08-22 09:54:42 +08:00
江战 b12553b582 3.6 Node updateTransform apply recursive form (#12398) 2022-08-18 16:35:30 +08:00
minggo fa8d498eb0 Merge branch 'v3.6.1' into merge_v3.6.1 2022-08-18 13:32:34 +08:00
江战 9d5ea47fc4 Fix header pragma once (#12450) 2022-08-18 10:31:52 +08:00
James Chen c7e60d2bcb Use swig to generate js bindings (#12410) 2022-08-16 10:48:12 +08:00
minggo 5778aab354 Merge branch 'v3.6.0' into merge_v3.6 2022-08-08 10:49:46 +08:00
mmyduckx 6e0be03987 add Node::getPathInHierarchy (#12319) 2022-08-04 13:44:09 +08:00
James Chen fe0fd229a4 Fix CocosApplication doesn't unregister engine event when restarting. (#12250) 2022-07-28 18:15:35 +08:00
minggo e0bfd1d380 Merge branch 'v3.6.0' into merge_v3.6 2022-07-26 12:01:26 +08:00
James Chen 41b8936484 Fix wrong logic if passing 'keepWorldTransform = true' to setParent. (#12169) 2022-07-25 11:44:34 +08:00
James Chen 75180a1c68 Correct the logic of visiting _worldRotation/Scale/Position in Node.cpp. (#12170)
Mark Node::getScene as inlined.
2022-07-25 10:49:58 +08:00
minggo 616968d7bd Adjust code struct and remove unneeded variables in Node (#12069) 2022-07-19 23:23:25 +08:00
minggo 9f8092cef5 simplify logic of Node::walk() (#11997)
* simplify logic of Node::walk()
2022-07-15 10:26:07 +08:00
Zhang mingzhen 05bde85ed7 V3.6.0 batcher2d code sorting (#11943)
* parentOpacity move to RenderEntity

(cherry picked from commit f1d9b5cb55c1912bd61ba490ec46ce7108097556)

* parentOpacity remove from entity and put into funtion parameters

* unify dynamic and static handle process

* reform entity shared buffer structure

* modify default value of struct

* set drawinfo type for spine/dragonbones

* remove legacy method

* reform color .type as uint8 from float

* CI fix

* remove static-cast

* CI fix

* CI fix

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
Co-authored-by: liqiao <liqiao@cocos.com>
2022-07-13 15:48:31 +08:00
James Chen 9f615e1fec fixed #11911: [v3.6][optimization] Use External ArrayBuffer to optimize the shared memory in Node (#11926) 2022-07-13 13:50:53 +08:00
jk20012001 d2ea1877b0 optimize shader compiling and fix soft5x (#11869)
* optimize shader compiling

* fix compile error

* optimize native 5x
2022-07-12 10:03:50 +08:00
James Chen 6cc101f361 Use more const and make Node::getIdxOfChild protected (#11915) 2022-07-09 19:23:03 +08:00
Zhang mingzhen b32830a3e8 V3.6.0 batcher2d to native (#11592) 2022-07-08 17:10:48 +08:00
James Chen 598ac36113 Fix memory overflow in getDirtyNode (#11890) 2022-07-08 13:35:23 +08:00
mmyduckx cf346b6e39 add Scene load event when scene::load (#11807) 2022-07-05 16:36:08 +08:00
江战 4a964c3ba3 3.6 Optimize resetHasChangedFlags (#11639) 2022-06-22 14:16:04 +08:00
minggo f92908c37f remove uint usage (#11596)
* remove uint usage
2022-06-18 15:25:27 +08:00
minggo d56e8db561 remove duplicate codes (#11588) 2022-06-18 10:54:18 +08:00