rdb
5d5efb75e8
egg: Fix egg lexer hanging on unterminated quote or C-style comment
2021-01-02 18:43:32 +01:00
rdb
6f5362c3fe
egg: Add missing include
2021-01-02 12:53:24 +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
c77593f3f0
egg: add pickle support to most EggData classes
2021-01-01 17:06:23 +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
152d317c8c
egg: Fix egg lexer state not being cleaned up after error
2021-01-01 15:52:57 +01:00
rdb
339331c1ad
egg: Add properties to EggAnimPreload
2021-01-01 15:51:23 +01:00
rdb
8852c835fc
collide: Support pickling for CollisionTraverser, HandlerEvent+Queue
...
Fixes #1090
2020-12-31 16:57:34 +01:00
rdb
ac991e4c5e
collide: Fix error with CollisionHandler's again_patterns property
2020-12-31 16:55:22 +01:00
rdb
8d22b80698
display: Fix memory leak in GSG::get_prepared_textures()
2020-12-31 16:43:37 +01:00
rdb
90fb31ac21
ffmpeg: Fix crash cleaning up audio/video context
2020-12-28 16:23:04 +01:00
rdb
21aa31f8c0
gobj: Fix build error on Windows
2020-12-28 12:07:17 +01:00
rdb
2b0a6b995a
display: Add a way to query system DPI scaling
...
See #426
2020-12-26 16:25:51 +01:00
rdb
55d43a1d57
device: Fix macOS crash when unplugging device in threaded pipeline
...
Fixes #1082
2020-12-26 12:46:45 +01:00
rdb
35b7ef0dcb
shader: Add additional mode-based texture inputs to GLSL shaders
...
This adds the following inputs:
p3d_Texture[] (as alternative to p3d_Texture0, etc.)
p3d_TextureFF[]
p3d_TextureModulate[]
p3d_TextureAdd[]
p3d_TextureNormal[]
p3d_TextureHeight[]
p3d_TextureSelector[]
p3d_TextureGloss[]
p3d_TextureEmission[]
2020-12-23 18:20:43 +01:00
rdb
05876317cf
Add TextureStage::M_emission mode
...
This is similar to M_glow, except that the emission factor is in the RGB channels.
2020-12-23 17:33:59 +01:00
rdb
ac021e94d6
putil: Ensure SimpleHashMap::_deleted_chain/_table are always initialized
...
Good to be on the safe side.
2020-12-20 00:59:55 +01:00
rdb
f7ab42da56
putil: Fix memory leak in SimpleHashMap
...
Fixes #1077
2020-12-20 00:23:04 +01:00
rdb
b5c857c73f
pgraphnodes: Backport ShaderGenerator stub to 1.10.x
...
Needed if interrogate is being run with the __aarch64__ definition in a multi-arch build
2020-12-19 23:50:07 +01:00
rdb
6f35cb0235
device: Silently ignore invalid evdev keycodes generated by some drivers
...
Fixes #1066
2020-12-15 12:33:22 +01:00
rdb
fa8c8e71b5
gobj: Assert instead of crash if primitive references out-of-bounds vert
2020-12-14 16:54:20 +01:00
rdb
a11e21e4f4
audio: Fix sound resuming after reactivation if stop() was called while inactive
...
Backport of fix for #559
2020-12-12 19:50:48 +01:00
rdb
761c54f63d
pgui: Workaround for DirectEntry flickering issues w/ pipelining
...
See #1070 . This is a temporary solution (one which isn't complete- it doesn't properly handle state changes).
2020-12-12 13:57:49 +01:00
Daniel
4f63ef635d
panda: Remove PyEval_InitThreads calls when compiling against Python 3.9+
...
Cherry-pick from #1053
2020-12-12 00:16:58 +01:00
rdb
bf59e880c6
bullet: Fix compilation error with Bullet 2.90+
2020-12-09 16:25:29 +01:00
rdb
8e2c0dff4a
pgraph: Hack fix for copying model with LightAttrib on root
...
When a LightAttrib is set on the root of a model and the light is contained within that model, creating a copy (like the one Loader makes automatically) causes the LightAttrib to still point to the original light, not to the newly copied light.
This works around it only for the case when the LightAttrib is set on the root, and only for the case of NodePath::copy_to() (it turns out there are edge cases when doing it in PandaNode::copy_subgraph() that would be hard to explain).
See Moguri/blend2bam#44
2020-12-09 15:51:36 +01:00
rdb
9525ddbfef
pgraph: LightAttrib::get_on_light(n) should call check_sorted()
2020-12-09 15:48:10 +01:00
rdb
61a089ad59
ShaderGenerator: don't output unused attr_ambient input variable
2020-11-22 14:23:46 +01:00
rdb
b12fcec099
glgsg: Fix handling of sized rgba formats in OpenGL ES
2020-11-22 14:21:34 +01:00
rdb
d1e8554fde
glgsg: Fix error message if vtx_normal is declred as float4 in Cg
2020-11-21 14:19:52 +01:00
rdb
93900a203e
putil: Backport part of 9d8c523dfa
...
Fixes #886
2020-11-17 23:36:06 +01:00
rdb
3abd157315
gobj: Fix a bad assertion comparison
2020-11-17 21:05:08 +01:00
rdb
3a2048e44a
glgsg: Fix skinning shader being unable to render unskinned models
...
Panda was adding a column with weights (0, 0, 0, 0), but these weights don't add up to 1 so no useful identity matrix can be produced. Instead it's better to fall back to the OpenGL default, (0, 0, 0, 1).
I'm also defaulting the transform_index values to (0, 1, 2, 3) to support non-indexed skinning (although that's pretty esoteric, given that that only supports 4 transforms...)
2020-11-17 21:01:56 +01:00
rdb
c53f461f3f
gobj: Fix typo in MatrixLens API documentation
...
Fixes #1042
2020-11-17 11:59:36 +01:00
rdb
8c3fd5b406
collide: Release GIL while during CollisionTraverser traversal
...
This is necessary to prevent deadlocking on the GIL if some Python code is trying to write some geometry while the CollisionTraverser is trying to read it.
Fixes #1033
2020-11-02 12:18:22 +01:00
rdb
4b7e32e9b0
egldisplay: Fix bad use of X11 None symbol instead of nullptr
2020-09-16 23:39:13 +02:00
rdb
c7f75fc906
egg2pg: Add egg-force-srgb-textures environment variable
...
This will cause all textures in .egg files to be loaded with an sRGB format setting (except with an envtype that generally assumes a linear texture).
Fixes #1006
2020-09-13 15:17:02 +02:00
rdb
a968caf1d2
windisplay: Fix parented window receiving WS_POPUP style
...
Fixes #915
2020-09-12 15:38:50 +02:00
rdb
d997be50ff
glgsg: fix state tracking bug passing view parameters to shader
...
These parameters are already taken care of by set_state_and_transform().
Also comment out a few lines of code that would prevent the latter from being called for transform changes, but which never triggered anyway.
2020-09-09 18:06:42 +02:00
rdb
3daf1ae1b1
general: Assorted API reference fixes
2020-09-09 18:03:49 +02:00
rdb
ad0e634292
egg: Add (discouraged) way to specify sRGB texture format ( #924 )
...
This should NOT be used by exporters, but is provided only for the sake of round-trippability of .bam files.
2020-09-06 14:44:44 +02:00
rdb
005d187ac4
egldisplay: Support creating a window with sRGB framebuffer
2020-09-06 10:14:28 +02:00
rdb
24fb2a2c88
egldisplay: Fix invalid software/hardware detection on Mesa
2020-09-06 09:21:21 +02:00
rdb
40842ef217
gles2gsg: fix sRGB texture support
2020-09-06 09:20:34 +02:00
rdb
cca84131df
gles2gsg: squelch warning about missing #version line in shader
2020-09-06 09:19:51 +02:00
LD
28f49ffd0b
cocoadisplay: Use [event charactersIgnoringModifiers] when UCKeyTranslate() can not translate the input key
2020-09-01 20:29:53 +02:00
rdb
1cc82f47b6
fmod: Fallback to opening file via callbacks if direct doesn't work
...
Fixes #1002
2020-09-01 10:41:34 +02:00