diff --git a/direct/src/extensions_native/NodePathCollection_extensions.py b/direct/src/extensions_native/NodePathCollection_extensions.py index bf8dd20cb6..b6c2e6577b 100644 --- a/direct/src/extensions_native/NodePathCollection_extensions.py +++ b/direct/src/extensions_native/NodePathCollection_extensions.py @@ -7,7 +7,7 @@ from libpanda import * # For iterating over children def asList(self): """Converts a NodePathCollection into a list""" - print "Warning: NodePathCollection is no longer needed and deprecated. Iterate on the collection directly instead." + print "Warning: NodePathCollection.asList() is no longer needed and deprecated. Iterate on the collection directly instead." return list(self) Dtool_funcToMethod(asList, NodePathCollection) diff --git a/direct/src/extensions_native/NodePath_extensions.py b/direct/src/extensions_native/NodePath_extensions.py index 5cb274c92e..d56b42fd4d 100644 --- a/direct/src/extensions_native/NodePath_extensions.py +++ b/direct/src/extensions_native/NodePath_extensions.py @@ -28,7 +28,7 @@ del id # For iterating over children def getChildrenAsList(self): """Converts a node path's child NodePathCollection into a list""" - print "Warning: NodePath.getChildren() is deprecated. Use getChildren() instead." + print "Warning: NodePath.getChildrenAsList() is deprecated. Use getChildren() instead." return list(self.getChildren()) Dtool_funcToMethod(getChildrenAsList, NodePath)