Commit Graph

181 Commits

Author SHA1 Message Date
rdb 41f0c9d48d pgraph: Support None as second arg of replace_texture/replace_material
This removes the relevant texture or material
2022-12-04 19:24:04 +01:00
rdb d621df47ac prc: Fix bf-cbc encryption/decryption regression with OpenSSL 3.0
Loads the legacy provider to continue supporting this algorithm
2022-12-04 19:22:26 +01:00
rdb 0220a43ce0 shader: Fix support for `#pragma include <example.glsl>` in GLSL 2022-11-09 17:20:11 +01:00
rdb 4c6df54d6f tests: Fix failing window unit test on macOS
Fixes #804 (together with previous commit 979f194f49)
2022-10-29 18:47:15 +02:00
rdb 979f194f49 tests: Load either 120 or 150 GLSL shaders depending on capabilities
Addresses part of #804
2022-10-29 18:46:59 +02:00
rdb a111bb4442 tests: skip auto-shader tests if Cg shaders are not supported
Backport of 57b0be8647
2022-10-29 18:16:58 +02:00
Stephen A. Imhoff 33691d72ec bullet: Fix assertion when reconstructing BulletConvexHullShape from bam
Fixes #1251
Closes #1252
2022-06-29 17:06:19 +02:00
rdb d65ca1edd6 pgraph: Fix nodes with same key but diff value getting flattened
This was a regression from 69b3468b2c
2022-01-05 08:14:08 +01:00
rdb f30019af13 tests: xfail vector floor division tests on Windows
Can't figure this one out for now.
2021-08-03 15:49:11 +02:00
rdb 5804c663a9 tests: Backport unit test fix from c0d3491223 2021-06-01 11:47:19 +02:00
rdb 2386e80448 linmath: Backport support for floor division to 1.10
Backport of 8944737844

(Also fixes return type of `__pow__` to always be derived class)
2021-06-01 10:45:56 +02:00
rdb 4e0e945279 linmath: Backport round(), floor(), ceil() support for vectors
See #821
2021-06-01 10:23:58 +02:00
rdb 8372b8150a gobj: Cube map sampling support in TexturePeeker
Closes #1098

Co-authored-by: Mitchell Stokes <mogurijin@gmail.com>
2021-03-24 12:50:42 +01:00
rdb 8bde2f2b1b tests: Add unit tests for GeomPrimitive::offset_vertices() 2021-03-22 22:04:08 +01:00
rdb 3732d3f1e6 PythonUtil: Fix Python 3 next() for SerialNumGen, AlphabetCounter 2021-03-22 21:49:58 +01:00
rdb 064e0383be event: Allow AsyncFuture to store arbitrary PyObject result 2021-03-01 19:16:22 +01:00
Stephen Imhoff a9f3940577 Add bullet ghost node test 2021-02-05 20:31:01 +00:00
rdb a5a0809949 gobj: Support integer texture formats in TexturePeeker 2021-01-17 15:27:19 +01:00
rdb 3479c6eee2 tests: Add unit tests for GLSL usampler/isamspler/uimage/iimage 2021-01-17 12:13:59 +01:00
rdb f20d859fe2 pgraph: Fix bug passing non-tuple sequence to shader input 2021-01-16 14:05:43 +01:00
rdb a84f1b5595 express: distinguish between null vs empty in CPTA pickle as well 2021-01-02 02:22:06 +01:00
rdb c81c506df3 express: Fix PointerToArray comparison operator 2021-01-01 17:54:09 +01:00
rdb b2462c1d8c express: Support pickling PointerToArray objects 2021-01-01 17:42:30 +01:00
rdb e755f87130 pgraph: Add pickling for LoaderFileTypeRegistry
Useful to test that pickling singletons works
2021-01-01 17:08:55 +01:00
rdb 3a5201fd65 tests: Add tests for pickling DoubleBitMask 2021-01-01 17:08:34 +01:00
rdb f8ce339960 collide: Add pickle support for most collision handlers
Also redo CollisionHandlerEvent pickling to use Datagram instead

Related to #1090
2021-01-01 16:56:18 +01:00
rdb 8852c835fc collide: Support pickling for CollisionTraverser, HandlerEvent+Queue
Fixes #1090
2020-12-31 16:57:34 +01:00
rdb a5557bc38d stdpy: Fix pickle sometimes duplicating Panda objects
We have to unify multiple Python wrappers pointing to the same C++ object.
2020-12-31 16:55:34 +01:00
rdb a6580f5dd3 physics: Fix GlobalForceGroup 2020-12-30 23:57:43 +01:00
rdb c141bef19b stdpy: Add missing threading.ThreadError 2020-12-30 23:57:27 +01:00
rdb 65c1ef968c stdpy: Add PicklingError to pickle module 2020-12-30 22:34:44 +01:00
rdb 2c209e0f02 stdpy: Fix direct.stdpy.pickle module for Python 3 2020-12-29 13:05:00 +01:00
rdb d5c2dc6447 dgui: Add setTextPos, etc. aliases for setPos
setPos will be deprecated in a future version.

See #1041
2020-12-26 13:59:19 +01:00
rdb 93900a203e putil: Backport part of 9d8c523dfa
Fixes #886
2020-11-17 23:36:06 +01:00
rdb 5d0044a481 tests: Add unit test for RenderEffects comparison 2020-09-16 23:38:56 +02:00
rdb c646924f03 tests: remove occasionally-failing PythonUtil.weightedChoice test
It does not test a behavior of this function that we support, anyway.
2020-09-14 11:01:01 +02:00
rdb 56c33fb8b6 tests: add unit test for StreamReader.readlines() 2020-09-12 23:09:38 +02:00
rdb 1236303acf tests: Add new unit test for Triangulator (also testing #985) 2020-08-18 18:38:19 +02:00
Mitchell Stokes dd77bd4cdf
shadergen: Make use of material alpha if present (#925)
The material alpha overrides alpha values from flat color or vertex colors. This follows what the fixed-function pipeline does.

Fixes #912
2020-08-17 12:27:03 +02:00
rdb 9ac1a4f7cb tests: Add some unit tests for #987 2020-08-17 12:16:33 +02:00
rdb be24266715 tests: Copy some linmath/gobj tests over from master branch 2020-08-17 12:16:33 +02:00
rdb c7341bec26 tests: Fix Filename test to match paths case-insensitively 2020-08-17 12:16:33 +02:00
rdb f7cef5c284 tests: fix typo in TextureAttrib test 2020-06-29 12:49:26 +02:00
rdb 8d99f38aa2 tests: update TextureAttrib unit tests 2020-06-29 11:32:15 +02:00
rdb 913ab6669e tests: Add more attribute tests to try to make coverage deterministic 2020-06-15 15:20:38 +02:00
rdb a9b158192f putil: fix crash in BitArray::has_any_of() 2020-06-14 12:55:52 +02:00
rdb 55951c3025 pgraph: fix has_tags() after clearing Python tags
Fixes #936
2020-06-02 20:31:18 +02:00
Ashwini 80ab6a28c4 pnmimage: Added offset to add_sub_image and mult_sub_image
Closes #903
2020-04-25 22:56:40 +02:00
rdb 064da09cf0 putil: add pickling support to Datagram class 2020-04-01 18:25:43 +02:00
Fireclaw 5d93237386 dgui: fix regression in DirectScrolledFrame (see #699)
Made initialization ignore the setScrollBarWidth function
Respect the length/height of the scrollbar and only change the actual
width in the setScrollBarWidth function
Added a very basic unittest class for the scrolledFrame

Closes #864
2020-02-10 13:17:05 +01:00