mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
getModelPath() for server too
This commit is contained in:
parent
fe94fedc10
commit
df2a0b0025
@ -211,10 +211,13 @@ class ServerRepository:
|
|||||||
if not readResult:
|
if not readResult:
|
||||||
self.notify.error("Could not read dc file.")
|
self.notify.error("Could not read dc file.")
|
||||||
else:
|
else:
|
||||||
|
searchPath = getModelPath().getValue()
|
||||||
for dcFileName in dcFileNames:
|
for dcFileName in dcFileNames:
|
||||||
readResult = dcFile.read(Filename(dcFileName))
|
pathname = Filename(dcFileName)
|
||||||
|
vfs.resolveFilename(pathname, searchPath)
|
||||||
|
readResult = dcFile.read(pathname)
|
||||||
if not readResult:
|
if not readResult:
|
||||||
self.notify.error("Could not read dc file: %s" % (dcFileName))
|
self.notify.error("Could not read dc file: %s" % (pathname))
|
||||||
|
|
||||||
self.hashVal = dcFile.getHash()
|
self.hashVal = dcFile.getHash()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user