26196 Commits

Author SHA1 Message Date
John C. Allwein
e7604cb163 event: fix result refcount leak when awaiting AsyncFuture
Raising the StopIteration exception left the underlying
result with an elevated refcount which prevented it from
being cleaned up.
2024-09-14 15:59:05 -06:00
John C. Allwein
cfe3885c0e
event: use the persistent python wrapper when appending task object (#1681) 2024-09-14 20:25:08 +02:00
rdb
fc394e4c59 glgsg: Pass in osg_FrameNumber input via ShaderMatSpec mechanism 2024-08-23 21:08:50 +02:00
rdb
cd68287b6a shader: Get all aggregate shader inputs (eg. lights) in one go
This means that p3d_LightSource[n] will be fetched once off the LightAttrib, written to the matrix cache, and then indexed into by the various ShaderMatSpec. This should be significantly more efficient, but the main aim is to prepare for a new binding system in the new shader pipeline

User structs are still an exception as of now
2024-08-23 16:29:46 +02:00
rdb
99225dfaef shader: Unify ShaderPtrSpec and ShaderMatSpec mechanisms 2024-08-23 16:29:42 +02:00
rdb
99f4034701 shader: Don't store on ShaderMatSpec, use scratch matrix instead 2024-08-23 16:29:38 +02:00
rdb
dfc85b8a68 tests: Make shadowViewMatrix test less sensitive 2024-08-23 16:28:10 +02:00
rdb
833fdb5d36 readme: Update Python version in FreeBSD command
Python 3.7 is no longer supported in Panda3D anyway
2024-08-23 14:20:38 +02:00
rdb
a8ca06ea47 tests: Don't fail Dial test if tkinter failed to import 2024-08-23 14:20:38 +02:00
rdb
e2ad8f2a2f tests: Test additional properties of light source struct 2024-08-23 14:20:35 +02:00
rdb
2c5cebe7e0 display: Fix shader gen regression for more than 2 lights 2024-08-23 14:20:20 +02:00
rdb
d5d0b80dd3 tests: Add unit tests for GLSL light, material, fog structs 2024-08-23 12:35:01 +02:00
rdb
76ffef38d1 display: Allow passing whole state into dispatch_compute()
This is mainly useful for unit testing
2024-08-23 12:34:57 +02:00
rdb
babd3a070d display: Fix docstring formatting 2024-08-22 15:52:48 +02:00
rdb
d3bb769a36 makepanda: Support overriding build of interrogate with env vars
[skip ci]
2024-08-13 12:28:02 +02:00
rdb
7f88f6de24 makepanda: Silently ignore --no-maya flags
[skip ci]
2024-08-13 11:24:58 +02:00
rdb
ad4ecbcc16 makepanda: Remove Autodesk Maya plug-ins
These now live at https://github.com/panda3d/maya-egg

Fixes #1584
2024-08-13 11:06:31 +02:00
rdb
fff9ea594c Split off 3ds Max exporter to a separate repository
It now lives at https://github.com/panda3d/max-egg-plugin

See #1584
2024-08-13 10:59:33 +02:00
rdb
712300c9f1 Fix prebuilt bison cxx files includes to work with CMake build
Change makepanda to generate without the .yxx extension so that the include name is generated properly
2024-08-13 00:01:35 +02:00
rdb
805f36ff92 CMake: Only export Tools target if BUILD_TOOLS is on
[skip ci]
2024-08-12 16:46:47 +02:00
rdb
4ca495d828 CMake: Add separate BUILD_TOOLS option to build binaries
This is separate from BUILD_PANDATOOL, which builds the pandatool tree
2024-08-12 16:39:20 +02:00
rdb
c8390ae7d5 CMake: install assorted pandatoolbase libraries 2024-08-12 16:32:24 +02:00
rdb
243d59bf37 workflow: Remove step to build host interrogate for emscripten
This is now fetched automatically by makepanda as of e50465e8303bb42c3ae656f5f896cb958eb2e4ed
2024-08-10 16:55:03 +02:00
rdb
8d2407d553 Delete cppparser and interrogate from tree
These tools now live in https://github.com/panda3d/interrogate/

See also #1074
2024-08-10 16:55:03 +02:00
rdb
ce4b79750c makepanda: Stop building interrogate
Instead, install it using pip.  If you don't like this, submit a PR or use CMake
2024-08-10 16:55:00 +02:00
rdb
c9cddb8d92 CMake: Stop building interrogate from tree
Instead, either build it externally (BUILD_INTERROGATE) or accept INTERROGATE_EXECUTABLE / INTERROGATE_MODULE_EXECUTABLE settings
2024-08-10 16:54:12 +02:00
rdb
e776c819b8 makewheel: Exclude interrogate from panda3d wheel
This will be available separately as panda3d-interrogate wheel, built from https://github.com/panda3d/interrogate

Fixes #1074

[skip ci]
2024-08-10 13:00:53 +02:00
Drew Rogers
37152710b7 showbase: Add functions to get interval for Iris Transitions 2024-08-09 15:05:43 +02:00
John C. Allwein
21b39da65d pythonTask: fix refcount leak of non-panda Future::done
A missing Py_DECREF on the future's "done" method
caused both the bound method and the underlying
self instance of the future to be leaked when
awaiting non-panda futures (such as _asyncio.Future).

This change includes a simple new test addition
to catch this in the future.
2024-08-08 21:51:03 -06:00
rdb
fc1d95ae1d dtoolbase: Add missing includes to pstrtod.cxx 2024-08-08 21:36:21 +02:00
rdb
abf0b38705 dtoolutil: Use string compare instead of strcmp in filename.I 2024-08-08 21:36:00 +02:00
rdb
23124dac07 x11: Fix missing _net_wm_name field due to bad merge 2024-08-07 23:39:20 +02:00
rdb
ad57762e9f Merge branch 'release/1.10.x' 2024-08-07 22:34:08 +02:00
rdb
057c3f5476 Update BACKERS.md
[skip ci]
2024-08-07 22:26:33 +02:00
rdb
8c8cbeea98 linmath: For repr, use as much precision as needed for roundtrip
Will use as few digits as is necessary to ensure that round-tripping the same number with pstrtod will result in the same vector.  This prevents eg. 3.3 formatting as 3.29999995 while still ensuring that two floats that are not equal (other than nan) are guaranteed to have a different string representation.

Uses a hacky pftoa function that can be abandoned as soon as we adopt C++17, which has to_chars that does what we need

Fixes #1671
2024-08-07 17:24:11 +02:00
rdb
ca7ba4eab3 py_panda: Add Dtool_GetPyTypeObject macro
This is a cleaner, future-proof way of accessing a Panda type as PyTypeObject pointer
2024-08-07 15:53:27 +02:00
rdb
b8d6c7a2ef workflow: Update macOS-11 to macOS-12 runner 2024-08-07 11:57:19 +02:00
rdb
46833e9144 Update BACKERS.md
[skip ci]
2024-08-07 11:56:55 +02:00
rdb
1cc0676e41 dtoolutil: Fix misnamed include guard 2024-08-04 17:08:45 +02:00
rdb
58ea174eb2 interrogate: Use the limited Python API for simple Python back-end 2024-08-03 21:50:19 +02:00
rdb
0215b02985 interrogate: Replace a use of std::cerr with nout 2024-08-03 16:36:55 +02:00
rdb
ae04533527 dtoolutil: Fix typo in error message 2024-08-03 16:36:37 +02:00
rdb
7a13d86d93 CMake: remove vestigial HAVE_ROCKET_PYTHON macro 2024-08-03 15:00:44 +02:00
rdb
17fbd09250 workflow: Change macOS-11 runner to macOS-12 2024-08-03 12:18:16 +02:00
rdb
122453811d glgsg: Fix clear of offscreen buffer if back buffers requested 2024-06-30 11:53:17 +02:00
rdb
b6ec48b27c Fix invalid metadata version 2.0 (should be 2.1) 2024-05-28 22:28:37 +02:00
rdb
105f938d68 interrogate: Fix non-deterministic order of external import types
Fixes #1651
2024-05-28 11:11:21 +02:00
rdb
a655784d8d x11: attempt to fix UTF-8 window titles (see #209) 2024-05-16 20:30:27 +02:00
rdb
adb9242885 glgsg: Fix faulty auto-merge 2024-05-14 23:19:46 +02:00
rdb
b6515c881c Merge branch 'release/1.10.x' 2024-05-14 22:47:08 +02:00