23407 Commits

Author SHA1 Message Date
rdb
876cb60220 char/chan: clean up MovingPartScalar/CharacterSlider constructors
These changes are a follow-up to 8b6f82256e31e7840c60775c8f2f9e1084aae972 but could not be made on that branch due to ABI compatibility reasons.
2020-01-21 15:34:33 +01:00
rdb
05d5bac598 Merge branch 'release/1.10.x' into incoming 2020-01-21 15:34:25 +01:00
rdb
e5b7760b85 makepanda: do not pass -Wl,--exclude-libs on macOS for OpenSSL
Part two of fix for build regression introduced in e78ce78acf5a8540cf14b57c777f52009f0df212 (see #851)
2020-01-21 15:29:12 +01:00
Leandro (Cerberus1746) Benedet Garcia
ffed59679d tests: add more unit tests for vector classes
Closes #826
2020-01-21 15:27:34 +01:00
rdb
2960b67c7a actor: minor style fixes 2020-01-21 15:27:31 +01:00
rdb
6b5c473b8e makepanda: do not pass -Wl,--exclude-libs on macOS
Fixes build regression introduced in e78ce78acf5a8540cf14b57c777f52009f0df212 (see #851)
2020-01-21 15:21:16 +01:00
Donny Lawrence
4f4b14dd2b cocoadisplay: Use hotspot read from .cur files
Previously, the cursor's hotspot defaulted to (0,0). Fixes #845.

Closes #849
2020-01-21 14:53:19 +01:00
Donny Lawrence
17dddeedc4 device: Fix 10.15 segfault on USB hotplug
For some reason, IOHIDDeviceRegisterRemovalCallback() no longer works on
10.15+, so an app will crash once trying to poll a device that doesn't
exist anymore.  Thankfully, there is the alternative solution of using
IOHIDManagerRegisterDeviceRemovalCallback(). This just required a little
rearranging of the callback code, as well as keeping track of the
connection between IOHIDDeviceRefs and IOKitInputDevices so we actually
know which device to remove.

Closes #847
2020-01-21 14:52:01 +01:00
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
4819e2ce3a nativenet: drop unused Socket_TCP_SSL
This removes the dependency of libpanda on OpenSSL.
2020-01-20 11:56:27 +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
2bf60b4361 Remove Python 3.4 from setup.cfg
Now that we dropped support for Windows XP, we can no longer guarantee support for all Windows versions that Python 3.4 supports.

Also see #548.
2020-01-13 16:36:02 +01:00
rdb
246e73e325 framework: fix a debug output not protected by is_debug() check 2020-01-13 16:27:58 +01:00
rdb
b9aa4f2448 dxgsg9: fix debug messages not protected by is_debug() check 2020-01-13 16:27:48 +01:00
rdb
8d472dfbcc makepanda: remove unused 2to3 code in CopyPythonTree
We haven't needed this for a while since the direct tree is both Python 2 and 3 capable, and furthermore, Python 2.7 is EOL and will be dropped soon in Panda3D.
2020-01-13 16:15:44 +01:00
rdb
0b0f3d2f8e dxgsg9: drop support for old dxerr9.lib (part of #433)
This drops support for the *really* old DX SDKs.  We still support the June 2010 SDK.
2020-01-13 16:00:31 +01:00
rdb
4c1373b721 makepanda: default to Windows 8.1 SDK, falling back to 7.1 SDK
We no longer support Windows XP and so there is no point in defaulting to the old 7.1 SDK, which is hard to install.  To target Vista, we can use the 8.1 SDK (+UCRT).
2020-01-13 15:27:56 +01:00
rdb
601fc8f46a dtool: remove obsolete PandaVersion.pp
This file was used by ppremake and is no longer used by makepanda.
The version number should instead be obtained from the setup.cfg file in the root.
2020-01-13 15:14:21 +01:00
rdb
492073cc87 makepanda: fix comments erroneously referring to PandaVersion.pp 2020-01-13 15:13:35 +01:00
rdb
640683cdb9 Merge branch 'release/1.10.x' 2020-01-13 15:12:55 +01:00
rdb
1bb4a032aa Drop support for Windows XP 2020-01-13 15:06:44 +01: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
da9d1d6a13 makepanda: silently ignore --no-rocket and --no-physx flags 2020-01-07 22:19:55 +01:00
rdb
b212d254d0 Merge branch 'release/1.10.x' into incoming 2020-01-07 22:09:59 +01:00
rdb
a50d375c35 dgui: fix DirectSlider regression on Python 2 2020-01-07 22:07:39 +01:00
rdb
09bddf4315 physx: remove support for NVIDIA PhysX
Our support was stuck on an ancient version that has not been available for a while.  If we were to continue support it should be done around the new PhysX 5.0 API, not 2.8.4.
2020-01-07 21:57:22 +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
da8ba5de17 rocket: remove libRocket support and sample program
libRocket is unmaintained and does not support Python 3, and since Python 2.7 is EOL, there is no longer any point for us to keep supporting it.
2020-01-07 21:38: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
ec5f9128e8 Add Python 3.8 to GitHub CI workflow 2020-01-06 21:08:14 +01:00
rdb
651cf189fc display: remove CPUID ASM, use __get_cpuid(_max) (on macOS too)
I think this requires at least XCode 5.
2020-01-06 21:08:10 +01:00
rdb
81b33a7afa Merge branch 'release/1.10.x' 2020-01-06 21:06:57 +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