Commit Graph

116 Commits

Author SHA1 Message Date
江战 719c756656 revert a6684b1 (#15393) 2023-06-08 22:48:53 +08:00
dogeFu 09e000266d feature : add EDITOR_NOT_IN_PREVIEW marco (#15354)
* feature : add marco for editor preview and refactor code with new marco

* refactor: replace GAME_VIEW with EDITOR_PREVIEW

* Revert "refactor: replace GAME_VIEW with EDITOR_PREVIEW"

This reverts commit e28953e9e7acbb49dc5bdc650b2ff65510d4b084.

* update cc config json

* refactor code

* remove uselese parentheses

* set ccglobal to be false

* skip global variable test case
2023-06-07 17:52:51 +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
dogeFu 0a6aedfceb fix : add prefab instance when instantiate prefab in editor (#15146)
* fix : add prefab instance when instantiate a prefab asset

when user instantiate a prefab in component run in editor,it needs prefabIntance so editor can handle the node appropriately.

* fix : pipeline-state's enum properties display incorrect in editor

* Revert "fix : pipeline-state's enum properties display incorrect in editor"

This reverts commit 70cf8bf1217ebc8f8d8b36b4cf8942278206a975.
2023-05-24 10:20:23 +08:00
dogeFu 655dcb94bf fix: discard nestedPrefabRoot node when serialized (#15092)
if component's property reference a nested prefabInstance node,the node will be save in scene file.But it's a nested prefab,so it should not be.
2023-05-18 14:03:34 +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
PP e01ac3ee05 add tracking issue for TODO item (#14638)
* issue 14637

* issue 14640: animation module

* issue 14642: serialize deserialize hack

* issue 7519: pal/image

* issue 14643: dynamic inject

* mark as NOTE

* issue 14644: native only

* issue 7512: pal/fs
2023-03-23 16:42:46 +08:00
PP 3c3d03188d fix editor npm install (#14614) 2023-03-21 11:30:23 +08:00
PP fa51b804b5 remove and ban @ts-expect-error (#14572)
* remove ts-expect-error usage in engine

* deprecate Scheduler interface

* remove JavaScriptCore

* set some engineInternal public property as getter setter

* fix build-declaration

* fix releaseManager export name conflict

* update scriptEngineType

* fix and update some comment

* remove  w_mat, w_pos, w_rot, w_scale

* update renderer

* fix setRootBufferDirty not binding on native

* optimize floatToHashString

* mark NOTE
2023-03-20 13:48:26 +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
江战 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
王凯鹏 79522d458a [Bug] fix component's resetInEditor not invoked in Editor (#14465)
* [Bug] fix component's resetInEditor not invoked in Editor

* add change to jsb node
2023-03-03 18:39:17 +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
PP e4b2cfb7b7 fix: resort event listeners after updating sibling index (#14389)
* fix: resort event listeners after updating sibling index
2023-02-28 09:58:29 +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
江战 c0fb0bba84 Bugfix: ensure reentryability for Node::setWorld* functions (#13617) 2022-12-02 18:34:29 +08:00
Yiwen b3a7ddc319 fix Node::updateWorldTransform typo (#13383) 2022-11-16 09:45:01 +08:00
江战 db8c0dda7d fix setWorldScale (#12988) 2022-11-08 11:05:26 +08:00
minggo 7294de16f6 Adjust core import (#13230)
* fix import style of core module
* fix decorator usage
2022-11-07 15:01:31 +08:00
minggo ef1635d267 move prefab related classes into scene-graph (#13156) 2022-10-27 11:30:34 +08:00
李吉林 a9d4e13f85 Light probe merge (#13093)
* add light probe
2022-10-19 22:34:21 +08:00
minggo 0d7c5c8f56 move cocos/core/scene-graph to cocos/scene-graph (#12868)
* move `cocos/core/scene-graph` to `cocos/scene-graph`
* move some files in `cocos/core/components` to `cocos/scene-graph`:
  - component.ts
  - component-event-handler.ts
  - component-event-handler-schema.ts
* move some files in `cocos/core/components` to `cocos/misc`: 
  - missing-script.ts
  - model-renderer.ts
  - renderer.ts
  - camera-component.ts
* move  `cocos/core/components/system.ts` to ``cocos/core/system.ts``
2022-09-26 11:02:22 +08:00
pandamicro 9f89b0ef24 New module division (#5285)
* Temp

* temp

* move ui core

* Arrange ui and terrain

* Fix import path for all modules except core

* Move primitives into core

* Fix debug.getError

* Move audio-downloader to audio module

* export game from game.ts

* Migrate load-pipeline to ts

* Fix core modules and cleanup

* Move animation into core

* Fix module exports

* Fix director issue

* Remove most cc.director usage

* Fix ts issues

* Fix issues for unit test and editor running

* Revert removing deprecated import

* tweaks

* tweaks

* Fix ci

* Fix ci

* Add modules in module division

* Upgrade coordinates-converts-utils
2019-08-30 11:35:22 +08:00
Yun Hsiao Wu b893dfce67 share frame ID UBO across sub skinning models (#5269)
* fix batcher

* misc perf opt

* share frame ID UBO across sub skinning models

* suppress type error
2019-08-28 22:32:51 -05:00
Weiliang Wang 595680aa70 fix node layer data (#5254)
* add transformAffine()

* remove duplicate code

* fix layer data of node
2019-08-26 21:34:53 -05:00
Yun Hsiao Wu ca0cbd9bdb fix node set world scale (#5245) 2019-08-26 00:57:57 -05:00
Yun Hsiao Wu ff19a901c1 refine details (#5164)
* effect adapt

* restore tslint

* refine math constants
2019-08-15 21:52:32 -05:00
Yun Hsiao Wu 517f9af36e fix anim comp duration & node setWorldScale (#5150)
* fix anim clip speed & duration

* fix setWorldScale
2019-08-13 00:38:17 -05:00
Yun Hsiao Wu ef1d274ac7 calc world transform using matrix for skeletal animation (#5139) 2019-08-12 04:29:21 -05:00
pandamicro 8367e8b036 Fix EventManager listener order issue (#5127)
* Remove useless base node apis to reduce properties

* Add BaseNode _siblingIndex to avoid indexOf check

* Fix EventManager listener order issue

* Fix  ci

* Fix node removal issue

* Fix siblingIndex for deserialized node
2019-08-09 16:58:45 +08:00
Yun Hsiao Wu 5f651dad6f fix circular ref (#5131)
* fix circular ref

* remove tslint usage
2019-08-08 21:25:54 -05:00
pandamicro cfddd96656 Fix some ts apis (#5108) 2019-08-06 20:11:39 +08:00
jiaxin.lai c6dc5b4ba9 fix haschangedFlags typing error in interface of INode (#5101) 2019-08-06 17:09:06 +08:00
Leslie Leigh 5ff61545b3 fix eventManager (#5103) 2019-08-06 16:32:46 +08:00
Yun Hsiao Wu 75aa882aca refine node & model dirty (#5102) 2019-08-06 16:07:40 +08:00
Yun Hsiao Wu c100ad41e9 fix node dirty bit (#5083) 2019-08-05 14:52:16 +08:00
ChiaNing c31e03e599 divide fix & API add (#5082) 2019-08-05 13:30:37 +08:00
Yun Hsiao Wu b134b8db10 node shearing support & detail improve (#5078)
* joints texture free interface

* better socket interaction

* workaround UBO size align bug

* better socket query

* fix playground

* node transform include shearing now

* finer dirty mechanism for node
2019-08-05 10:13:39 +08:00
Weiliang Wang d9fba5fb8a remove divideScalar() (#5080)
* remove divideScalar()
2019-08-05 10:00:11 +08:00
ChiaNing 9da70cce0b math function add (#5076)
* math function add

* rebase
2019-08-05 09:44:25 +08:00
ChiaNing a3ed39df86 math function abbreviation delete (#5041)
* math funtion abbreviation delete

* magnitude change
2019-08-01 14:25:39 +08:00
ChiaNing 4bc2739786 Vmath (#4987)
* Vmath (#4895)

* vmath refactor

* value-type API change

* vmath change update

* conflict fix

* value types change

* translate modify (#4917)

* value types bug fixed (#4940)

* playground update (#4946)

* bug fixed

* bug fixed

* bug fixed

* bug fix

* util modify

* create remove & ccenum rename

* export by cc.math

* Rename value-types to math

* util funtion deprecated warn

* value-types change

* color test fix

* color API change
2019-07-29 11:50:51 +08:00
jiaxin.lai faa7094cf8 add some typing to interface of INode (#4984)
* add some typing to interface of INode

* fix INode childern typing

* add Mutable type, for change Readonly type

* decouple node with ui relative component

* add missed ui component, and decouple node

* add more typing to IBaseNode and INode
2019-07-26 17:56:55 +08:00
pandamicro 1380e46c34 Unittest (#4973)
* unit test for ts

* Fix ts-jest warnings

* Remove puppeteer for now

* fix physics define and jest config for windows

* Replace Node ref with INode ref

* Fix ci issue

* Fix

* tweak

* tweak

* Fix vscode launcher

* now physics framework export all physics component (#28)

* tweaks
2019-07-25 17:15:20 +08:00
Weiliang Wang cdcacebfd2 fix translate() & rotate() bug (#4959)
fix translate() & rotate()
2019-07-24 12:11:24 +08:00
Yun Hsiao Wu 948255083c UI vertex calc opt 2019-07-24 10:17:58 +08:00
yinkaile 4837a6a0b0 Revert "refine node.updateWorldTransform" (#4931)
This reverts commit 654e850409950651ee49286060794df78ca2edf7.
2019-07-21 16:05:27 +08:00
yinkaile 345ee7ed85 3d v1.0.0 (#4929)
* refine node.updateWorldTransform

* refine sprite simple assembler
2019-07-20 16:50:26 +08:00