diff --git a/direct/src/p3d/Packager.py b/direct/src/p3d/Packager.py index 43f7e53a0e..4d65d80937 100644 --- a/direct/src/p3d/Packager.py +++ b/direct/src/p3d/Packager.py @@ -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): diff --git a/dtool/src/interrogate/interfaceMakerPythonNative.cxx b/dtool/src/interrogate/interfaceMakerPythonNative.cxx index 0210ca72fb..cd780c01a2 100644 --- a/dtool/src/interrogate/interfaceMakerPythonNative.cxx +++ b/dtool/src/interrogate/interfaceMakerPythonNative.cxx @@ -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. diff --git a/dtool/src/prc/configDeclaration.cxx b/dtool/src/prc/configDeclaration.cxx index 65cc4360d2..141c8d8adf 100644 --- a/dtool/src/prc/configDeclaration.cxx +++ b/dtool/src/prc/configDeclaration.cxx @@ -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"; } diff --git a/samples/media-player/main.py b/samples/media-player/main.py index 838cb54961..4fc487544e 100755 --- a/samples/media-player/main.py +++ b/samples/media-player/main.py @@ -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")