rdb
cdf5b16ddd
task: Add AsyncFuture::shield() ability, part of #1136
...
This is modelled after `asyncio.shield()` and can be used to protect an inner future from cancellation when the outer future is cancelled.
2021-04-09 18:28:07 +02:00
rdb
5be46c4124
dgui: Fix DirectSlider unit test failure
2021-04-08 12:28:22 +02:00
Daniel
bb6a66a582
direct: Fix undefined ConfigVariableBool name in ClockDelta
2021-04-01 17:08:13 +03:00
rdb
43fb82fa66
gobj: Add config switch for Panda not to default to packed vertex colors
...
See #981 . Setting `vertex-colors-prefer-packed` to false will make Panda default to OpenGL-style vertex colors, which is useful if are targeting OpenGL and not DirectX 9, avoiding a potential performance cost.
2021-03-25 23:15:58 +01:00
rdb
eb6eb9f1dd
Merge branch 'release/1.10.x'
2021-03-24 13:58:00 +01:00
rdb
1fb8480585
Exclude GLVND from built distributions
2021-03-24 11:56:24 +01:00
rdb
94806801e3
Add p3headlessgl render plug-in on Linux using EGL as fallback for GLX
...
Fixes #1086
2021-03-23 15:04:20 +01:00
rdb
3732d3f1e6
PythonUtil: Fix Python 3 next() for SerialNumGen, AlphabetCounter
2021-03-22 21:49:58 +01:00
rdb
3579855ff1
distributed: Switch DistributedSmoothNodeBase.BroadcastTypes to IntEnum
...
The Enum from PythonUtil is obsolete since the introduction of a proper enum module in Python 3.4.
2021-03-22 19:29:21 +01:00
rdb
107d338d88
PythonUtil: Remove old next() interface from EnumIter
...
This was just there to support Python 2, which we no longer support.
2021-03-22 19:00:25 +01:00
rdb
0e36a99574
Merge branch 'release/1.10.x'
2021-03-22 15:45:45 +01:00
rdb
fe29aab568
dgui: Reset DirectOptionMenu highlighted index when replacing items
...
Not doing this causes issues if the item list is replaced by an item callback, since that means the unhighlight callback is never fired.
Fixes #1125
2021-03-22 10:08:31 +01:00
rdb
b817e19ab6
Merge branch 'release/1.10.x'
2021-03-13 16:50:12 +01:00
rdb
dc516c5ef1
dist: Remove aux-display lines for excluded plug-ins
...
No point trying to load optional modules that we know aren't included.
2021-03-13 14:03:54 +01:00
rdb
3c9673b48e
dist: Actually replace p3fmod_audio with p3openal_audio
...
This was meant to be effected in 9e80282aff but was not properly checked in (only the warning was shown, but the change was not actually made).
2021-03-13 13:55:35 +01:00
rdb
84051384b8
dist: Some work on getting PyQt5 dlls found on Windows
...
There is more work to do to get PyQt5 to work, however.
2021-03-12 00:36:42 +01:00
rdb
3fe1780f16
direct: Fix use of various deprecated APIs
2021-03-09 19:21:26 +01:00
Timothy Paustian
2493c0689f
direct: Use warnings module for more verbose deprecation prints
...
Closes #1067
Fixes #669
2021-03-09 18:34:53 +01:00
rdb
8cbe36b352
Merge branch 'release/1.10.x'
2021-03-01 19:33:27 +01:00
rdb
89a1c8bff7
motiontrail: Fix issue building with C++20
2021-03-01 10:16:19 +01:00
Michael Wass
12e86bd842
direct: change some variables to not override language builtins/keywords
...
Closes #1120
2021-02-24 12:14:17 +01:00
rdb
7a838e7212
Merge branch 'release/1.10.x'
2021-02-24 12:14:04 +01:00
rdb
ce437629c2
filter: Respect depth-bits from Config.prc
2021-02-24 11:48:10 +01:00
Michael Wass
ea49c121a0
direct: fix TypeError caused by py3 division changes
2021-02-24 09:46:53 +01:00
rdb
fb9b334d58
Merge branch 'release/1.10.x'
2021-02-17 10:57:30 +01:00
rdb
17341b18ed
dist: Add PACKAGE_DATA_DIRS entry for pytz zoneinfo database
2021-02-16 12:35:44 +01:00
rdb
9cb3c7726f
fsm: Support asynchronous transitions via coroutine enter/exit funcs
...
Fixes #1037
2021-02-08 16:18:28 +01:00
rdb
cdad2c6e58
Merge branch 'release/1.10.x'
2021-02-08 16:18:24 +01:00
rdb
03b96edfbc
interval: Fix ability to await Sequence objects
2021-02-08 16:16:20 +01:00
rdb
7b5280c0dd
Loader: clean up callback awaiter code via Python 3.6+ syntax
2021-02-07 17:00:42 +01:00
rdb
e8b4b6476c
Merge branch 'release/1.10.x'
2021-02-07 15:01:36 +01:00
rdb
28615c6a9e
interval: Support awaiting CInterval from coroutines
...
This is a partial implementation of #909 - it is somewhat inefficient (not suspending the task using a future) and does not implement cancellation. A more complete implementation may follow in 1.11.0.
2021-02-07 12:40:58 +01:00
rdb
0ac97387fa
dist: enable log_filename_strftime by default if % in filename
...
See #1103
2021-02-06 12:46:30 +01:00
rdb
5a4ff7f6c0
Merge branch 'release/1.10.x'
2021-02-06 12:37:54 +01:00
rdb
f55cdd8907
dist: Support strftime-style date formatting in log_filename
...
Fixes #1103
2021-02-06 12:36:14 +01:00
rdb
613441060b
Merge branch 'release/1.10.x'
2021-01-18 23:47:36 +01:00
rdb
d043df7d4e
task: Add delay= argument to taskMgr.add()
...
This has the same effect as doMethodLater, but slightly better describes what it does
2021-01-18 23:37:23 +01:00
rdb
a270a55ccd
dist: Add ignoreImports mechanism, prevents every app including numpy
...
Apparently a host of thirdparty packages currently get included by default, such as importlib.metadata -> toml -> numpy, and this is getting rather out of hand. The ignoreImports mechanism provides a way for us to flag certain imports as being optional dependencies.
Also added is various "builtins" imports in Python 2.7 (which are all under version checks and would otherwise lead to the PyPI "builtins" package being included, which would pull in "future", etc.)
2021-01-18 23:33:39 +01:00
rdb
ef6aa9d6ca
directtools: Fix repeated selections causing scaling node to get huge
...
This appears to be a regression from 0fe56bd0a9 , but I can't be sure. Before this fix, repeated clicks of an object would cause the scaling handles to get larger and larger, until eventually causing NaN assertions.
2021-01-18 19:05:45 +01:00
rdb
68daa238b1
dist: Add some determinism support to bdist_apps
...
It's necessary to set PYTHONHASHSEED=0 as well as SOURCE_DATE_EPOCH for deterministic compilation, and moreover, the generated zip files do still have timestamps in them.
2021-01-18 19:02:42 +01:00
rdb
842452594d
Merge branch 'release/1.10.x'
2021-01-17 17:28:19 +01:00
rdb
b3f0768656
Revert "directtools: Fix empty scaling node of object handle"
...
This reverts commit b507c88cd9 .
2021-01-17 15:40:47 +01:00
rdb
e099d9e787
Merge branch 'release/1.10.x'
2021-01-02 02:33:35 +01:00
Daniel
acbf265e54
direct: Fix actor initialization
2021-01-02 02:57:13 +02:00
rdb
52b4df4aec
stdpy: Expose DEFAULT_PROTOCOL and HIGHEST_PROTOCOL in direct.stdpy.pickle
2021-01-01 17:41:34 +01:00
rdb
9cb129597c
stdpy: pickle improvements
...
* Define __all__
* Define missing exception types
* clear_memo() now clears Panda-specific state as well
2021-01-01 15:58:51 +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
ae7eae10c5
makepanda: Remove old and obsolete gendocs scripts
2020-12-31 12:24:27 +01:00
rdb
be9dde1eee
direct: add .pylintrc, perform major code cleanup pass
...
Closes #989
Co-authored-by: Daniel Stokes <kupomail@gmail.com>
2020-12-31 01:36:23 +01:00
rdb
cf60284ca9
Merge branch 'release/1.10.x'
2020-12-31 00:05:10 +01:00