Commit Graph

1845 Commits

Author SHA1 Message Date
John C. Allwein 7b7294b15d direct: fix missing import in Loader 2023-02-12 09:28:04 -07:00
WMOkiishi c7c70bc32a
direct: Cut down on usage of `import *` (#1454)
* Remove most `import *`s in `direct`

* Address feedback
2023-02-12 13:16:52 +00:00
rdb c076d5ad08 showbase: Don't return same texture object if loaded with different settings
Follow-up to #1105
2023-02-07 12:26:41 +01:00
David Crompton a88b6ee8db showbase: Allow `destroy()` to be called from non-main thread
Also adds an error message when `run()` is called from non-main thread

Closes #1436
Fixes #1269

Co-authored-by: rdb <git@rdb.name>
2023-01-16 14:15:19 +01:00
David Crompton cd6ad8285e ShowBase: Add a private DirectObject to allow use of base.accept for window-events 2023-01-10 21:50:20 +00:00
rdb cfd18bb16f display: Add support for asynchronous screenshot download 2022-12-26 20:01:38 +01:00
rdb 92185bcb28 Merge branch 'release/1.10.x' 2022-12-19 16:42:29 +01:00
rdb 32297ecd02 showbase: Fix some members not showing up in API documentation 2022-12-16 19:37:49 +01:00
Daniel 24c14296c0 direct: Clean up broken usage of "types" module with Python 3 2022-12-15 20:29:33 +01:00
rdb e1b4083d6d Merge branch 'release/1.10.x' 2022-12-12 17:19:10 +01:00
rdb 1375d38725 showbase: Fix assorted issues with GarbageReport:
* Use of removed `types.InstanceType`
* New-style classes are not reported very neatly
* Extreme amount of digits in report due to float division

Fixes #1304
2022-12-09 17:34:27 +01:00
rdb c82f95ad6b Merge branch 'release/1.10.x' 2022-12-06 20:02:35 +01:00
rdb 95a77e4f75 showbase: Add `do_events()` and `process_event()` snake_case aliases 2022-12-06 12:57:02 +01:00
rdb 867f60dcca pstats: Rename "Show code" collector to "Tasks"
Also remove outdated definitions from pStatProperties.cxx
2022-11-29 20:50:18 +01:00
rdb 79bd743957 Merge branch 'release/1.10.x' 2022-09-02 23:14:15 +02:00
LD e30d88d9db showbase: Fix regression with BufferViewer in double prec build
Regression was introduced in 98314da00f

Use explicitly Vec3F in calls to addData3f to avoid crash on double precision builds

Closes #1365
2022-09-02 23:08:07 +02:00
rdb 20334cce05 Merge branch 'release/1.10.x' 2022-06-29 19:09:59 +02:00
rdb c24a15ed40 task: Fix missing `taskMgr` reference when using managed tasks 2022-06-29 15:12:06 +02:00
rdb 1b21e604f0 Merge branch 'release/1.10.x' 2022-04-21 11:09:28 +02:00
rdb 98314da00f showbase: Fix BufferViewer frame in non-standard coordinate systems 2022-04-04 10:30:35 +02:00
rdb 65ee79158f showbase: Start recording right away when opening PStats connection
Don't wait until the next frame - makes it harder to diagnose long load times in the new Timeline view
2022-02-20 16:54:15 +01:00
Maxwell175 350836cc38
PythonUtil: remove Enum class (#1253) 2022-02-01 10:31:14 +01:00
rdb a56ee57422 Merge branch 'release/1.10.x' 2022-01-14 10:50:10 +01:00
rdb c32866fa33 showbase: Fix missing ClockObject import in JobManager
Regression in eefcae7b05
2022-01-14 10:48:25 +01:00
rdb 54606c8894 showbase: docstring fix
[skip ci]
2022-01-14 09:58:57 +01:00
rdb 9598065641 Merge branch 'release/1.10.x' 2021-12-26 14:13:23 +01:00
rdb c38d582f8c showbase: Add `base.clock` alias for `globalClock`
Mirrors eefcae7b05 on master
2021-12-26 12:30:00 +01:00
rdb eefcae7b05 direct: Add `base.clock`, deprecate `globalClock` 2021-12-25 11:47:42 +01:00
rdb 0bc0709b72 Merge branch 'release/1.10.x' 2021-11-02 15:20:41 +01:00
rdb e87a2a1f0f showbase: Fix typo in API reference 2021-11-02 15:01:18 +01:00
rdb 605651f0e8 Merge branch 'release/1.10.x' 2021-10-26 17:27:56 +02:00
rdb de334f5597 PythonUtil: remove deadlink from normalDistrib docstring 2021-10-26 13:28:35 +02:00
rdb 43fb82fa66 gobj: Add config switch for Panda not to default to packed vertex colors
See #981.  Setting `vertex-colors-prefer-packed` to false will make Panda default to OpenGL-style vertex colors, which is useful if are targeting OpenGL and not DirectX 9, avoiding a potential performance cost.
2021-03-25 23:15:58 +01:00
rdb eb6eb9f1dd Merge branch 'release/1.10.x' 2021-03-24 13:58:00 +01:00
rdb 3732d3f1e6 PythonUtil: Fix Python 3 next() for SerialNumGen, AlphabetCounter 2021-03-22 21:49:58 +01:00
rdb 107d338d88 PythonUtil: Remove old next() interface from EnumIter
This was just there to support Python 2, which we no longer support.
2021-03-22 19:00:25 +01:00
rdb 3fe1780f16 direct: Fix use of various deprecated APIs 2021-03-09 19:21:26 +01:00
Timothy Paustian 2493c0689f direct: Use warnings module for more verbose deprecation prints
Closes #1067
Fixes #669
2021-03-09 18:34:53 +01:00
rdb 7b5280c0dd Loader: clean up callback awaiter code via Python 3.6+ syntax 2021-02-07 17:00:42 +01:00
rdb be9dde1eee direct: add .pylintrc, perform major code cleanup pass
Closes #989

Co-authored-by: Daniel Stokes <kupomail@gmail.com>
2020-12-31 01:36:23 +01:00
rdb 9a20d4713f showbase: Remove unused C++ runtestFullscreenSizes interface
If there is a need for this, we can implement it properly in GraphicsWindow (open an issue or comment in #1014 if you are affected by this, please)

See #1014
2020-12-24 15:31:56 +01:00
rdb ed397b3ab8 Merge branch 'release/1.10.x' 2020-12-09 17:59:37 +01:00
rdb 35eeb27386 VFSImporter: fix detection of source file encoding in Python 3
Incidentally, this should (in theory) also fix the _bootlocale import loop referenced in #1065
2020-12-09 15:46:51 +01:00
rdb c9aedc2b44 Merge branch 'release/1.10.x' 2020-11-28 22:26:04 +01:00
rdb 4e7742b8e2 VFSImporter: replace deprecated U open() flag
Fixes #1063
2020-11-28 22:22:32 +01:00
rdb d62146a317 Merge branch 'release/1.10.x' 2020-11-17 23:56:00 +01:00
Daniel 7eba53cffa showbase: Fix an entire DirectSession being (re)created on node selection
Closes #1051
2020-11-17 12:02:53 +01:00
rdb f1ca8a9018 direct: Additional linking in Loader API documentation 2020-11-17 12:01:42 +01:00
rdb 66ac3be604 Merge branch 'release/1.10.x' into master 2020-09-12 23:23:58 +02:00
rdb 54238e9730 direct: Add more links to manual pages in module docstrings
See panda3d/panda3d-docs#53

[skip ci]
2020-09-11 13:15:58 +02:00