Commit Graph

161 Commits

Author SHA1 Message Date
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
rdb cef70a4fe5 tests: remove __gt__ asserts from test_shaderinput_vector_compare
This fails in Python 2, and we don't actually provide this operator or make any guarantees about greater-than ordering, so it was silly to test for it to begin with.
2020-01-04 01:21:54 +01:00
rdb b60c3e6c7e tests: add unit tests for ShaderInput comparison (#827) 2020-01-03 18:52:55 +01:00
rdb b9713f71b1 tests: add some DCPacker unit tests (for #751) 2019-12-25 16:58:11 +01:00
Thaumaturge 76d6b7ce58 tests: add unit tests for particle systems and #769 in particular
Co-authored-by: rdb <git@rdb.name>
2019-11-10 20:34:03 +01:00
fireclawthefox e6fc6c695d tests: add unit tests for DirectOptionMenu 2019-11-03 12:14:37 +01:00
rdb c6990b9f9b prc: fix possible stack overflow in StreamReader
Fixes #754
2019-10-08 19:44:23 +02:00
rdb 7f7cbd1c25 tests: add Filename unit tests for fspath protocol in particular 2019-09-04 12:40:58 +02:00
rdb 833f778cb7 pnmimage: add quantize feature to reduce number of colors in image 2019-08-28 22:44:16 +02:00
rdb 61a276f49a tests: add some ModifierButtons unit tests 2019-08-28 11:04:20 +02:00
rdb 88f8071dfc tests: add unit tests for direct.showbase.Loader.Loader class 2019-08-22 10:45:36 +02:00
rdb f0ba25e11d tests: work around Python 2.7 tempfile case bug on Windows 2019-08-20 14:40:15 +02:00
rdb 7d34526c33 tests: fix OS-specific filename issue on Windows with loader tests 2019-08-20 14:00:15 +02:00
rdb b23561d863 tests: add unit tests for Python loader file types 2019-08-20 13:23:11 +02:00
rdb 1318fd80d7 tests: add unit test for track-gui-items setting in DirectGUI 2019-08-20 01:08:56 +02:00
rdb a0aa7de291 dgui: fix critical regression introduced by 43a5719 2019-08-19 21:26:35 +02:00
John Cote ff188c1dca tests: Add unit test for DirectEntry._autoCapitalize()
Closes #628

Co-authored-by: rdb <git@rdb.name>
2019-08-14 13:26:33 +02:00
Mitchell Stokes 369dccbab9 tests: Add tests around compiling GLSL and Cg shaders (#622) 2019-08-01 12:32:06 +02:00
pythonengineer 46a3a72029 PythonUtil: weightedChoice should throw IndexError on empty list
Also includes a unit test.

Closes #682
2019-07-15 19:39:31 +02:00
rdb bac376541f pgraph: add NodePath.replace_texture() 2019-07-10 09:53:42 +02:00
rdb cc4d5259cc linmath: fix mat4.get_col3() and mat4.get_row3() when using Eigen 2019-05-02 19:40:23 +02:00