Merge branch 'release/1.9.x'

This commit is contained in:
rdb 2015-08-31 15:59:06 +02:00
commit 3cd15c3d48
4 changed files with 9 additions and 7 deletions

View File

@ -2196,8 +2196,10 @@ class Packager:
ext = Filename(lowerName).getExtension()
if ext not in self.packager.nonuniqueExtensions:
self.skipFilenames[lowerName] = True
for moduleName, mdef in package.moduleNames.items():
self.skipModules[moduleName] = mdef
if not mdef.exclude:
self.skipModules[moduleName] = mdef
# Packager constructor
def __init__(self, platform = None):

View File

@ -2373,8 +2373,7 @@ write_module_class(ostream &out, Object *obj) {
out << " " << cClassName << " *local_this = NULL;\n";
out << " DTOOL_Call_ExtractThisPointerForType(self, &Dtool_" << ClassName << ", (void **) &local_this);\n";
out << " if (local_this == NULL) {\n";
out << " PyErr_SetString(PyExc_AttributeError, \"C++ object is not yet constructed, or already destructed.\");\n";
out << " return -1;\n";
out << " return 0;\n";
out << " }\n\n";
// Find the remap. There should be only one.

View File

@ -163,9 +163,9 @@ output(ostream &out) const {
void ConfigDeclaration::
write(ostream &out) const {
out << get_variable()->get_name() << " " << get_string_value();
if (!get_variable()->is_used()) {
out << " (not used)";
}
//if (!get_variable()->is_used()) {
// out << " (not used)";
//}
out << "\n";
}

View File

@ -38,7 +38,8 @@ class MediaPlayer(ShowBase):
# but we want to make sure we get a MovieTexture, since it
# implements synchronizeTo.
self.tex = MovieTexture("name")
assert self.tex.read(media_file), "Failed to load video!"
success = self.tex.read(media_file)
assert success, "Failed to load video!"
# Set up a fullscreen card to set the video texture on.
cm = CardMaker("My Fullscreen Card")