25618 Commits

Author SHA1 Message Date
rdb
09f8634433 pipeline: Minor optimizations in cycler copy constructor
When copying a dirty cycler, don't use two separate lock-grabbing calls to add to the clean set, then remove from clean set and move to dirty set

Short-cut the cdata copy loop for the common case of only 1 stage
2022-11-21 18:31:54 +01:00
rdb
8a48c3b711 pgraph: Remove recursive lock grab in Light.set_color()
Harmless, but unnecessary
2022-11-21 18:26:19 +01:00
rdb
fcfa1d2c99 gobj: Fix ShaderBuffer.prepare() not actually doing anything 2022-11-21 18:25:46 +01:00
rdb
03d411c937 dist: Workaround to disable autodiscovery in setuptools>=61.0.0
See #1394 - creates a new finalize_distribution_options entry point that makes sure that either `py_modules` or `packages` is present, otherwise setuptools  will activate its new auto-discovery system, even for custom commands that don't need setuptools' discovery system.

However, this is not a great solution, because it applies when running all setuptools commands, not just build_apps.
2022-11-19 13:14:18 +01:00
rdb
d893b21f2b assimp: Fix assert loading meshes with multiple primitive types 2022-11-19 13:12:14 +01:00
rdb
7505112f1d shader: Fix compiler warning 2022-11-19 13:05:27 +01:00
rdb
76b9df0e53 tform: Change MouseWatcher::get_mouse() to return copy of LPoint2
Instead of a reference, which is very unintuitive and a common stumbling block for comparisons
2022-11-14 13:13:50 +01:00
rdb
592f2b7d6e Merge branch 'release/1.10.x' 2022-11-14 12:47:28 +01:00
rdb
9508b040e7 Update to 1.10.13 thirdparty tools on macOS
These contain OpenCV libraries with fixed relative references on arm64

Fixes #1393
2022-11-14 10:50:30 +01:00
rdb
e92d993cea glgsg: Fix failure to unset divisor after rendering w/ instancing
This would normally be done by `disable_shader_vertex_arrays()` but it apparently isn't called between shader changes
2022-11-14 10:25:34 +01:00
rdb
75cbe98b1d Update BACKERS.md file
[skip ci]
2022-11-14 10:03:57 +01:00
rdb
ad227eb53e Add Download link to setup.cfg
[skip ci]
2022-11-14 09:55:53 +01:00
rdb
d801e00c0f CMake: don't re-export symbols from libharfbuzz.a
To match 84a69e1689099d81926fe165de9310ef79069585 (fix for #1391)
2022-11-13 12:10:43 +01:00
rdb
e961ea99ac Merge branch 'release/1.10.x' 2022-11-13 12:10:38 +01:00
rdb
84a69e1689 makepanda: Don't re-export harfbuzz symbols from libpanda.so
Shot in the dark at fixing #1391 (but this change is a good idea anyway)
2022-11-13 11:25:45 +01:00
rdb
fe94e43bc4 pgraph: Fix issues with flattening TexMatrixAttrib
If multiple texture stages reference the same texcoord set, Panda wouldn't flatten the tex matrices even if they were the exact same

Fixes #1392
2022-11-13 11:11:32 +01:00
rdb
0220a43ce0 shader: Fix support for #pragma include <example.glsl> in GLSL 2022-11-09 17:20:11 +01:00
rdb
63017864ab pgraph: Support any number of attribs in RenderState::make() in Python 2022-11-07 18:17:48 +01:00
rdb
e09f78b987 interrogate: Do not consider make() with explicit kwargs for coercion
Unless this parameter has a default value
2022-11-07 18:05:34 +01:00
rdb
68111b2c42 Merge branch 'release/1.10.x' 2022-11-07 18:05:03 +01:00
rdb
11746457ff interrogate: Fix invalid syntax for make() coerce ctor with kwargs
[skip ci]
2022-11-07 18:03:41 +01:00
Erica M. ("Loonatic")
40618e104d chore: Remove extraneous print statement
There's no reason why this should be printed out by default. It can create a lot of spam in the output when utilizing this module.

Fixes #1383
2022-11-07 13:01:59 +01:00
rdb
8965741fcf tinydisplay: Don't reimplement process_events from base class
Reduces code duplication, makes it possible to inherit bug fixes from the base class, and also handles resizes more efficiently now (only when this would actually require a framebuffer reallocation).
2022-11-07 12:56:56 +01:00
rdb
0a827cf65c x11display: Time out waiting for ConfigureNotify event
Fixes #1087
2022-11-07 12:56:03 +01:00
rdb
70e86c46ed audio: Code formatting fixes in nullAudioManager.cxx
[skip ci]
2022-11-06 11:22:10 +01:00
rdb
502607e450 pgraph: Make CullTraverserData.view_frustum settable from Python
Perhaps useful for in cull callbacks
2022-11-06 11:19:56 +01:00
rdb
9d73c9b786 pgraph: Fix a missed std::move opportunity in ScissorEffect 2022-11-06 11:19:04 +01:00
rdb
2ec147f3b0 audio: Add positional property getter to AudioSound
Fixes #1257
Closes #1282

Co-authored-by: morganmliang <morganmliang@users.noreply.github.com>
2022-11-06 11:16:29 +01:00
rdb
fea66ea087 pgraph: Fix rare case of assertion in cull with ScissorEffect
Fixes #1344
2022-11-06 11:13:42 +01:00
rdb
e56c1a0a98 gtk-stats: Fix compile error on manylinux2014 with G_SOURCE_FUNC
[skip ci]
2022-11-05 15:59:56 +01:00
rdb
523e1bcbb8 glgsg: Fix regression defining null mipmap levels of cube map
Fixes #1189
2022-11-05 15:52:27 +01:00
rdb
b8c53be8fd text: Add missing fields to TextNode::CData copy constructor 2022-11-05 14:55:56 +01:00
rdb
91191a9d75 pgraph: Fix weird comment formatting in renderAttrib.h 2022-11-03 13:49:08 +01:00
rdb
a1105f0f96 dxml: Remove TinyXML bindings
This isn't used anywhere in the Panda source anymore, and is considered out-of-scope for Panda.  Python users can use the XML parsing library that's shipped with the Python source (or any other one on PyPI), and C++ users can just pull TinyXML into their projects directly.

If there really is a strong call to bring this back, I'd rather do it as an external package.

Closes #1379
2022-11-03 13:45:22 +01:00
rdb
37f7dc285b assimp: Set assimp-collapse-dummy-root-node to true by default
See #366
2022-11-03 13:45:22 +01:00
rdb
2a9a32fea9 assimp: Drop support for older versions of Assimp
We now require at least Assimp 4, I believe.
2022-11-03 13:45:22 +01:00
rdb
dba65d8bd4 gobj: Remove TextureStage::write() overload, use default arg instead
This was only an overload in 1.10 so that it wouldn't break the ABI
2022-11-03 13:45:22 +01:00
rdb
e75aae62f0 Merge branch 'release/1.10.x' 2022-11-03 13:45:05 +01:00
rdb
db6ea00967 assimp: Add assimp-collapse-dummy-root-node option
This is false for now, but will be true in the future.

See #366
2022-11-03 13:18:49 +01:00
rdb
1fd2e124cf assimp: Fix unprotected debug statements 2022-11-03 13:14:07 +01:00
rdb
c50a5b25b8 ptloader: Disable obj2egg from ptloader
It doesn't support materials and textures, so it's not really useful to have this registered with the loader by default, especially since we have much better support for .obj through Assimp

Fixes #738
2022-11-03 09:53:13 +01:00
Bert Myroon
45ce3f348f
Correct documentation
See first paragraph of https://graphics.stanford.edu/courses/cs268-09-winter/notes/handout6.pdf
2022-11-02 18:39:45 -06:00
rdb
2044861597 assimp: Support custom object properties as tags 2022-11-02 23:02:33 +01:00
rdb
ffe2137680 assimp: Support reading additional texture maps, as well as PBR 2022-11-02 23:02:21 +01:00
rdb
286cf0d286 assimp: Improve performance of loading geometry 2022-11-02 23:02:21 +01:00
rdb
162a7b2c34 assimp: Support reading tangents and binormals 2022-11-02 23:02:21 +01:00
rdb
5a483e3899 assimp: Fix a typo in a config var description 2022-11-02 23:02:21 +01:00
rdb
6e636f5ca0 assimp: Fix issues reading external files 2022-11-02 23:02:20 +01:00
rdb
b254e5b7ba assimp: Support importing alpha mode from glTF files 2022-11-02 23:02:20 +01:00
rdb
9248182a0b assimp: Support texture transforms 2022-11-02 23:02:20 +01:00