mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
Merge branch 'release/1.10.x'
This commit is contained in:
commit
605651f0e8
@ -249,10 +249,3 @@ to everyone who has donated!
|
|||||||
<a href="https://opencollective.com/panda3d" target="_blank">
|
<a href="https://opencollective.com/panda3d" target="_blank">
|
||||||
<img src="https://opencollective.com/panda3d/contribute/button@2x.png?color=blue" width=300 />
|
<img src="https://opencollective.com/panda3d/contribute/button@2x.png?color=blue" width=300 />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
### Gold Sponsors
|
|
||||||
[](https://opencollective.com/panda3d/tiers/gold-sponsor/0/website)
|
|
||||||
[](https://opencollective.com/panda3d/tiers/gold-sponsor/1/website)
|
|
||||||
[](https://opencollective.com/panda3d/tiers/gold-sponsor/2/website)
|
|
||||||
[](https://opencollective.com/panda3d/tiers/gold-sponsor/3/website)
|
|
||||||
[](https://opencollective.com/panda3d/tiers/gold-sponsor/4/website)
|
|
||||||
|
@ -226,6 +226,10 @@ unpack_object() {
|
|||||||
std::string str;
|
std::string str;
|
||||||
_this->unpack_string(str);
|
_this->unpack_string(str);
|
||||||
object = PyUnicode_FromStringAndSize(str.data(), str.size());
|
object = PyUnicode_FromStringAndSize(str.data(), str.size());
|
||||||
|
if (object == nullptr) {
|
||||||
|
nassert_raise("Unable to decode UTF-8 string; use blob type for binary data");
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
11
direct/src/dist/FreezeTool.py
vendored
11
direct/src/dist/FreezeTool.py
vendored
@ -90,6 +90,7 @@ ignoreImports = {
|
|||||||
'direct.showbase.PythonUtil': ['pstats', 'profile'],
|
'direct.showbase.PythonUtil': ['pstats', 'profile'],
|
||||||
|
|
||||||
'toml.encoder': ['numpy'],
|
'toml.encoder': ['numpy'],
|
||||||
|
'py._builtin': ['__builtin__'],
|
||||||
}
|
}
|
||||||
|
|
||||||
if sys.version_info >= (3, 8):
|
if sys.version_info >= (3, 8):
|
||||||
@ -106,7 +107,7 @@ overrideModules = {
|
|||||||
# Used by the warnings module, among others, to get line numbers. Since
|
# Used by the warnings module, among others, to get line numbers. Since
|
||||||
# we set __file__, this would cause it to try and extract Python code
|
# we set __file__, this would cause it to try and extract Python code
|
||||||
# lines from the main executable, which we don't want.
|
# lines from the main executable, which we don't want.
|
||||||
'linecache': """__all__ = ["getline", "clearcache", "checkcache"]
|
'linecache': """__all__ = ["getline", "clearcache", "checkcache", "lazycache"]
|
||||||
|
|
||||||
cache = {}
|
cache = {}
|
||||||
|
|
||||||
@ -662,7 +663,7 @@ okMissing = [
|
|||||||
'email.Iterators', '_subprocess', 'gestalt', 'java.lang',
|
'email.Iterators', '_subprocess', 'gestalt', 'java.lang',
|
||||||
'direct.extensions_native.extensions_darwin', '_manylinux',
|
'direct.extensions_native.extensions_darwin', '_manylinux',
|
||||||
'collections.Iterable', 'collections.Mapping', 'collections.MutableMapping',
|
'collections.Iterable', 'collections.Mapping', 'collections.MutableMapping',
|
||||||
'collections.Sequence', 'numpy_distutils',
|
'collections.Sequence', 'numpy_distutils', '_winapi',
|
||||||
]
|
]
|
||||||
|
|
||||||
# Since around macOS 10.15, Apple's codesigning process has become more strict.
|
# Since around macOS 10.15, Apple's codesigning process has become more strict.
|
||||||
@ -2625,9 +2626,9 @@ class PandaModuleFinder(modulefinder.ModuleFinder):
|
|||||||
(or self.path if None). Returns a tuple like (fp, path, stuff), where
|
(or self.path if None). Returns a tuple like (fp, path, stuff), where
|
||||||
stuff is a tuple like (suffix, mode, type). """
|
stuff is a tuple like (suffix, mode, type). """
|
||||||
|
|
||||||
if imp.is_frozen(name):
|
#if imp.is_frozen(name):
|
||||||
# Don't pick up modules that are frozen into p3dpython.
|
# # Don't pick up modules that are frozen into p3dpython.
|
||||||
raise ImportError("'%s' is a frozen module" % (name))
|
# raise ImportError("'%s' is a frozen module" % (name))
|
||||||
|
|
||||||
if parent is not None:
|
if parent is not None:
|
||||||
fullname = parent.__name__+'.'+name
|
fullname = parent.__name__+'.'+name
|
||||||
|
1
direct/src/dist/commands.py
vendored
1
direct/src/dist/commands.py
vendored
@ -95,6 +95,7 @@ PACKAGE_DATA_DIRS = {
|
|||||||
('cefpython3/Chromium Embedded Framework.framework/Chromium Embedded Framework', '', {'PKG_DATA_MAKE_EXECUTABLE'}),
|
('cefpython3/Chromium Embedded Framework.framework/Chromium Embedded Framework', '', {'PKG_DATA_MAKE_EXECUTABLE'}),
|
||||||
],
|
],
|
||||||
'pytz': [('pytz/zoneinfo/*', 'zoneinfo', ())],
|
'pytz': [('pytz/zoneinfo/*', 'zoneinfo', ())],
|
||||||
|
'certifi': [('certifi/cacert.pem', '', {})],
|
||||||
}
|
}
|
||||||
|
|
||||||
# Some dependencies have extra directories that need to be scanned for DLLs.
|
# Some dependencies have extra directories that need to be scanned for DLLs.
|
||||||
|
@ -1127,8 +1127,6 @@ def normalDistrib(a, b, gauss=random.gauss):
|
|||||||
uniformly onto the curve inside [a, b]
|
uniformly onto the curve inside [a, b]
|
||||||
|
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
https://statweb.stanford.edu/~naras/jsm/NormalDensity/NormalDensity.html
|
|
||||||
|
|
||||||
The 68-95-99.7% Rule
|
The 68-95-99.7% Rule
|
||||||
====================
|
====================
|
||||||
All normal density curves satisfy the following property which is often
|
All normal density curves satisfy the following property which is often
|
||||||
|
@ -834,6 +834,9 @@ get_active_display_region(int n) const {
|
|||||||
* which will be a texture suitable for applying to geometry within the scene
|
* which will be a texture suitable for applying to geometry within the scene
|
||||||
* rendered into this window.
|
* rendered into this window.
|
||||||
*
|
*
|
||||||
|
* If you pass zero as the buffer size, the buffer will have the same size as
|
||||||
|
* the host window, and will automatically be resized when the host window is.
|
||||||
|
*
|
||||||
* If tex is not NULL, it is the texture that will be set up for rendering
|
* If tex is not NULL, it is the texture that will be set up for rendering
|
||||||
* into; otherwise, a new Texture object will be created. In either case, the
|
* into; otherwise, a new Texture object will be created. In either case, the
|
||||||
* target texture can be retrieved from the return value with
|
* target texture can be retrieved from the return value with
|
||||||
|
@ -11,14 +11,18 @@
|
|||||||
* @date 2006-01-15
|
* @date 2006-01-15
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
INLINE int CLP(GraphicsBuffer)::
|
INLINE int CLP(GraphicsBuffer)::
|
||||||
get_multisample_count()
|
get_multisample_count() {
|
||||||
{
|
return _requested_multisamples;
|
||||||
return _requested_multisamples;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
INLINE int CLP(GraphicsBuffer)::
|
INLINE int CLP(GraphicsBuffer)::
|
||||||
get_coverage_sample_count()
|
get_coverage_sample_count() {
|
||||||
{
|
return _requested_coverage_samples;
|
||||||
return _requested_coverage_samples;
|
|
||||||
}
|
}
|
||||||
|
@ -23,11 +23,14 @@
|
|||||||
* ARB_draw_buffers extensions. This design has significant advantages over
|
* ARB_draw_buffers extensions. This design has significant advantages over
|
||||||
* the older wglGraphicsBuffer and glxGraphicsBuffer:
|
* the older wglGraphicsBuffer and glxGraphicsBuffer:
|
||||||
*
|
*
|
||||||
* * Can export depth and stencil. * Supports auxiliary bitplanes. *
|
* - Can export depth and stencil.
|
||||||
* Supports non-power-of-two padding. * Supports tracking of host window
|
* - Supports auxiliary bitplanes.
|
||||||
* size. * Supports cumulative render-to-texture. * Faster than pbuffers. *
|
* - Supports non-power-of-two padding.
|
||||||
* Can render onto a texture without clearing it first. * Supports
|
* - Supports tracking of host window size.
|
||||||
* multisample antialiased rendering.
|
* - Supports cumulative render-to-texture.
|
||||||
|
* - Faster than pbuffers.
|
||||||
|
* - Can render onto a texture without clearing it first.
|
||||||
|
* - Supports multisample antialiased rendering.
|
||||||
*
|
*
|
||||||
* Some of these deserve a little explanation. Auxiliary bitplanes are
|
* Some of these deserve a little explanation. Auxiliary bitplanes are
|
||||||
* additional bitplanes above and beyond the normal depth,stencil,color. One
|
* additional bitplanes above and beyond the normal depth,stencil,color. One
|
||||||
@ -45,7 +48,6 @@
|
|||||||
* EXT_framebuffer_blit to allow for multisample antialiasing these offscreen
|
* EXT_framebuffer_blit to allow for multisample antialiasing these offscreen
|
||||||
* render targets. If these extensions are unavailable the buffer will render
|
* render targets. If these extensions are unavailable the buffer will render
|
||||||
* as if multisamples is 0.
|
* as if multisamples is 0.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
class EXPCL_GL CLP(GraphicsBuffer) : public GraphicsBuffer {
|
class EXPCL_GL CLP(GraphicsBuffer) : public GraphicsBuffer {
|
||||||
public:
|
public:
|
||||||
|
@ -605,8 +605,10 @@ item_press(PGItem *item, const MouseWatcherParameter ¶m) {
|
|||||||
ClockObject::get_global_clock()->get_frame_time() + scroll_initial_delay;
|
ClockObject::get_global_clock()->get_frame_time() + scroll_initial_delay;
|
||||||
|
|
||||||
} else if (item == _thumb_button) {
|
} else if (item == _thumb_button) {
|
||||||
_scroll_button_held = nullptr;
|
if (((PGButton *)item)->has_click_button(param.get_button())) {
|
||||||
begin_drag();
|
_scroll_button_held = nullptr;
|
||||||
|
begin_drag();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user