Commit graph

86089 commits

Author SHA1 Message Date
ff3d868eb8 Fixed grabbing objects with mouse in desktop mode 2023-03-24 18:34:53 +01:00
c73ad2fa52 Converted overlay getProperty calls to Entities.getEntityProperties 2023-03-23 23:54:06 +01:00
de18e9be45 Fixed crash with asset scripting crash 2023-03-23 00:16:38 +01:00
8969e7513c Merge branch 'OverlaysMaster3' into feature/v8 2023-03-22 21:41:13 +01:00
Alezia Kurdis
325cf17076 Replace 3dOverlays for Local Entities - part 2
Replace 3dOverlays for Local Entities (developer's script)
2023-03-22 21:39:24 +01:00
Alezia Kurdis
b47c0a8ff3 Replace 3d Overlays by Local Entities
Replace 3d Overlays by Local Entities
This is for the system files.
Another PR will follow for the developer scripts.
2023-03-22 21:34:42 +01:00
94fc84f361 Partial fix for asset scripting crash 2023-03-22 20:40:58 +01:00
39c75fd7e6 Fixed crash with Cameras app 2023-03-22 20:40:58 +01:00
420e861a36 Removed 3D overlays functionality entirely 2023-03-22 20:40:58 +01:00
91d7abc883 Marked places where 3D overlays need to be replaced with local entities 2023-03-22 20:40:58 +01:00
37a1320a30 Fixed crash on starting in VR mode with V8 2023-03-22 20:40:58 +01:00
f6c7281062 Re-enabled WebRTC 2023-03-22 20:40:58 +01:00
6218ec960e Fixed events on V8 2023-03-22 20:40:58 +01:00
847faa13de Uncommented code that got commented out by accident 2023-03-22 20:40:58 +01:00
Dale Glass
500ca0fd30 Remove old tests, doesn't build on Windows 2023-03-22 20:40:58 +01:00
54e5183b9b Initial fixes for building on Windows 2023-03-22 20:40:58 +01:00
Dale Glass
93db8fdb69 Add Quat tests, for debugging a problem 2023-03-22 20:40:58 +01:00
Dale Glass
f90e124d0d Use logging categories everywhere in the base scripting engine code 2023-03-22 20:40:58 +01:00
Dale Glass
5866494244 Add V8 logging category
Rename logging category to overte
Make all V8 code use logging categories
2023-03-22 20:40:58 +01:00
0d69b0d232 Reenable vcpkg-clean because GitHub Actions is running out of disk space. 2023-03-22 20:40:58 +01:00
a525f1402a Find VCPKG libnode 2023-03-22 20:40:58 +01:00
bb06c2a125 Initial VCPKG Node/v8 packaging 2023-03-22 20:40:57 +01:00
20a674823c Fixes in Create App 2023-03-22 20:40:57 +01:00
542228594b Changed variable in ScriptObjectV8Proxy because it has to be stored as aligned pointer 2023-03-22 20:40:57 +01:00
Dale Glass
f2e5f13f1d Capture exceptions that happen in signals in ScriptEngine, add test 2023-03-22 20:40:57 +01:00
Dale Glass
6a189d33af Add test for update event 2023-03-22 20:40:57 +01:00
Dale Glass
ce1ac5d00e Review fix: add flag to choose whether to abort script on exception 2023-03-22 20:40:57 +01:00
Dale Glass
72009abd67 Register metatypes, fixes warnings
Remove executeOnScriptThread from Script JS API -- seems unused, is marked deprecated, and for some reason
registration didn't resolve the warnings.
2023-03-22 20:40:57 +01:00
Dale Glass
3d4818d793 Initial implementation of raiseException and test 2023-03-22 20:40:57 +01:00
Dale Glass
a403def46e Add tests for object registration and exception raising 2023-03-22 20:40:57 +01:00
Dale Glass
96321d36a4 Don't crash in uncaughtException() if there isn't an exception 2023-03-22 20:40:57 +01:00
Dale Glass
2a59590bf5 Tests for runtime exceptions and throw() 2023-03-22 20:40:57 +01:00
Dale Glass
6a63dbaa09 Throw the right exception class, and add the thrown value to it 2023-03-22 20:40:57 +01:00
Dale Glass
5984c19df7 Rework tests, add tests for exceptions 2023-03-22 20:40:57 +01:00
Dale Glass
7df2f69481 Allow accessing engine exceptions from ScriptManager 2023-03-22 20:40:57 +01:00
Dale Glass
afab0560d2 Register more metatypes -- more work needed 2023-03-22 20:40:57 +01:00
Dale Glass
0d73d9c137 Deduplicate QDebug output 2023-03-22 20:40:57 +01:00
Dale Glass
768ef0bf48 Make ScriptEngine a QObject instead of the derived class
Fix signal -- only needs to be in ScriptEngine
2023-03-22 20:40:57 +01:00
Dale Glass
299ca7e940 Further exception work on V8
* Get rid of maybeEmitUncaughtException
* Mostly get rid of makeError
* Introduce exception hierarchy, change exceptions to shared_ptr
* Simplify exception throwing code
2023-03-22 20:40:57 +01:00
Dale Glass
1298eb0e24 Initial exception handling
Make exception handling use the new ScriptException class.
Add exception signal
Throw exceptions in script evaluation
Remove references to ScriptManager from ScriptEngine
2023-03-22 20:40:57 +01:00
710ceb1a61 Fixed ScriptObjectV8Proxy access after delete 2023-03-22 20:40:57 +01:00
6c907fbbed Addeed V8 getters/setters to ScriptVariantV8Proxy, fixed animation scripting 2023-03-22 20:40:57 +01:00
ec0f8fbf05 Reverted change that broke AnimationObjec scripting interface 2023-03-22 20:40:56 +01:00
3c72113b6d Fixed deadlock in updating animation state handlers 2023-03-22 20:40:56 +01:00
982dbcde8e V8 QObject pointer handling changes 2023-03-22 20:40:56 +01:00
7a43202951 Fixed crash on standing up from sit script 2023-03-22 20:40:56 +01:00
4b0c7674ad Fixed object containing UniquePersistent 2023-03-22 20:40:56 +01:00
3c9f92e790 Fix broken hifi-deps CONTROL file 2023-03-22 20:40:56 +01:00
546d04167f Fixed deadlock in Create App 2023-03-22 20:40:56 +01:00
99592e7d85 Fix copyright headers 2023-03-22 20:40:56 +01:00