23192 Commits

Author SHA1 Message Date
rdb
8222255b3b vrpn: make inline methods that call into VRPN non-inline
This prevents things that link with VRPN and use these VRPN functions from needing to link with VRPN directly.
2020-01-21 14:45:27 +01:00
rdb
e78ce78acf makepanda: don't export symbols of linked static libraries
This results in size savings for thirdparty libraries that are only used once, and a size increase for libraries used more than once (eg. OpenSSL).  More importantly, it prevents conflicts with other versions of the libraries loaded by other Python modules, such as the version of OpenSSL that the hmac module uses.

We need to be careful to only apply this for packages that are either used once, used in a plug-in module, or if we don't need to pass thirdparty library structures across Panda library boundaries.  For example, I haven't done this for Bullet, since the Bullet symbols need to be available through libpandabullet.so due to the fact that pandabullet contains calls to the Bullet libraries in the inline methods.

Fixes #851
2020-01-21 14:35:17 +01:00
rdb
8859ad8c1b makepanda: remove explicit OpenSSL link where it is unneeded
These were probably added before makepanda gained the ability to automatically add dependencies of static libraries when linking statically.

They don't really do any harm--the linker will probably optimize these out automatically--but it's cleaner not to add unused dependencies.
2020-01-21 14:07:36 +01:00
rdb
8b6f82256e char: allow creating CharacterSlider with default value 2020-01-20 00:43:50 +01:00
rdb
98268b59c0 chan: publish AnimChannelScalarTable constructor 2020-01-20 00:32:49 +01:00
rdb
3b361974dc actor: improve API documentation for Actor.cleanup()
Intended to address panda3d/panda3d-docs#40

[skip ci]
2020-01-19 11:23:35 +01:00
Donny Lawrence
28711814e7 device: Replace erroneous && with ||. 2020-01-15 16:04:37 -06:00
rdb
2960ae60e2 Bump version number on release/1.10.x branch to 1.10.6
[skip ci]
2020-01-13 15:05:39 +01:00
rdb
2fd703af6c makepanda: fix using Windows 8.1 SDK (which also requires UCRT) 2020-01-13 15:02:36 +01:00
rdb
da0fe8be3e readme: change link to 1.10.5 release
[skip ci]
v1.10.5
2020-01-08 04:15:52 +01:00
rdb
6f782ce519 pnmimage: don't return values larger than 1.0f from from_val() 2020-01-08 03:30:27 +01:00
rdb
a50d375c35 dgui: fix DirectSlider regression on Python 2 2020-01-07 22:07:39 +01:00
rdb
cae7d55c8d doc: add some more release notes for 1.10.5 2020-01-07 21:43:04 +01:00
rdb
6b12fbe6f2 dgui: show assertion when passing a NaN into DirectSlider
If we don't do this, we get an assertion somewhere in the bowels of the scene graph, which will be much less helpful for tracking down the origin of the NaN.
2020-01-07 21:41:04 +01:00
rdb
c9fb371e87 device: correction for DualShock 4 support on Windows 2020-01-07 21:25:26 +01:00
rdb
27fe133df5 device: attempt to fix DualShock 4 analog axis mapping 2020-01-07 15:23:14 +01:00
rdb
1c4773a8e4 dist: move "import pip" from module level to download_wheels
The aim of this is that pip is no longer a dependency to be able to run test_imports.
2020-01-07 14:52:06 +01:00
LD
201f9a48be dist: Also use copy_with_dependencies() for executables to flatten their dependencies
Closes #837
2020-01-07 14:50:38 +01:00
LD
a56b85dbed cocoadisplay: Fix switch to fullscreen on macOS 10.9 using current display resolution 2020-01-07 14:09:05 +01:00
rdb
b245c480c0 dist: fix ModuleFinder reading .pyc files in Python 2.7-3.3, 3.7 and 3.8
Fixes #836
2020-01-06 21:05:22 +01:00
LD
f09ee92582 dist: glob pattern must be lowercase as it is compared to lowercase filenames
Closes #832
2020-01-06 18:18:04 +01:00
LD
bd5841781c dist: Add missing dependency for CEFPython on macOS
Closes #835
2020-01-06 18:18:04 +01:00
LD
8d0d733da8 dist: Flatten also @rpath/ dynamic library references
Closes #834
2020-01-06 18:18:04 +01:00
rdb
bf6dbefdd2 display: fix get_cpuid_max clobbering %rbx (fixes Py 3.8 crash on macOS)
This could cause a crash when constructing a GraphicsPipe() under some conditions (observed in Python 3.8).  Credit goes to @CFSworks for tracking this down.
2020-01-06 18:18:02 +01:00
Nathan S
b78f0b0881 device: add support for DualShock Gen 2 (PS4) controllers on Windows
Closes #831

Co-authored-by: rdb <git@rdb.name>
2020-01-06 16:17:02 +01:00
LD
87a1be4d4e makepackage: Add warning in macOS installer about change of installdir
Closes #830
2020-01-06 16:17:02 +01:00
rdb
ca89b7420a Update Python 2.7 EOL warnings to indicate that EOL date is reached
[skip ci]
2020-01-06 00:36:49 +01:00
LD
f68604a3f5 cocoadisplay: Fix regression introduced by 45461e667a84b793048db0092596b5c23dbe6b38
Closes #829
2020-01-05 23:01:49 +01:00
rdb
8137bea8f8 makepackage: fix regression in MakeInstaller on Windows 2020-01-05 18:52:26 +01:00
rdb
399797d0b1 physics: fix assertions when particles get very large positions
Fixes #822
2020-01-04 21:13:49 +01:00
rdb
b7017669a1 makepackage: fix None installdir when not passing in any on macOS 2020-01-04 14:14:12 +01:00
rdb
c28ab63481 doc: add release notes for Panda3D 1.10.5 2020-01-04 02:59:07 +01:00
Donny Lawrence
2d4647ea33 makepackage: Change macOS install location
Starting with macOS 10.15, we can no longer install into /Developer/Panda3D due
to it not being one of the sanctioned writable directories. This commit changes
the default install location to /Library/Developer/Panda3D, which is the next
best place to put it (discussion on this can be found in #760).

To keep compatibility with those who may rely on the old location, some
postinstall scripts have been added that create symlinks to the new location
if running on 10.14 or older.

Fixes #760
Closes #825
2020-01-04 02:57:21 +01:00
rdb
0e1b524885 gobj: fix Material ambient/diffuse/specular when reading from bam
Fixes #828
2020-01-04 01:21:54 +01:00
rdb
24783924d0 pgraph: fix int return from bool method 2020-01-04 01:21:54 +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
135931c926 pgraph: fix faulty comparison code of ShaderInput vectors 2020-01-03 22:00:09 +01:00
rdb
b60c3e6c7e tests: add unit tests for ShaderInput comparison (#827) 2020-01-03 18:52:55 +01:00
rdb
fe1ecd5e79 pgraph: fix ShaderInput ordering for vector inputs with small floats
Fixes #827
2020-01-03 18:48:23 +01:00
rdb
3367fe266f tkpanels: properly test "None" return from askopenfilename 2020-01-03 18:19:39 +01:00
rdb
438130a157 readme: update build instructions for Windows 2020-01-02 01:11:19 +01:00
rdb
7ca66bfe6f tkpanels: work around tkinter bug cancelling file open dialog on macOS
Fixes #811
2020-01-02 01:06:03 +01:00
rdb
2b9cc61d04 grutil: fix wrong method name in LineSegs docstrings 2020-01-02 00:36:29 +01:00
rdb
c02bbe50af p3d: add deprecation notice to all direct.p3d modules 2019-12-31 17:15:34 +01:00
rdb
afd7fc8a25 dxgsg9: don't try to Release() vertex buffer if it failed to create 2019-12-31 17:15:07 +01:00
LD
45461e667a cocoadisplay: use same scaling factor as the current view when switching to fullscreen on MacOS 10.15+
Fixes #794
2019-12-29 22:24:56 +01:00
rdb
fccffb4932 glgsg: fix texture extraction of MRTs in OpenGL ES
Fixes #815
2019-12-29 17:47:36 +01:00
rdb
2d11f36c9e makepanda: add docstring for panda3d.dtoolconfig module 2019-12-29 15:06:24 +01:00
rdb
15d6e0c543 actor: support custom Python loader hooks
Fixes #750
2019-12-29 14:57:43 +01:00
rdb
0972dfa457 dcparser: fix ability to compile outside of Panda
Fixes #759
2019-12-29 14:27:05 +01:00