mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
dist: Fix error when using bam_model_extensions with bdist_apps
This commit is contained in:
parent
89701270dd
commit
0cc3f8fbf6
6
direct/src/dist/commands.py
vendored
6
direct/src/dist/commands.py
vendored
@ -457,8 +457,10 @@ class build_apps(setuptools.Command):
|
||||
if self.bam_model_extensions:
|
||||
for ext in self.bam_model_extensions:
|
||||
ext = '.' + ext.lstrip('.')
|
||||
assert ext not in self.file_handlers, \
|
||||
'Extension {} occurs in both file_handlers and bam_model_extensions!'.format(ext)
|
||||
handler = self.file_handlers.get(ext)
|
||||
if handler != _model_to_bam:
|
||||
assert handler is None, \
|
||||
'Extension {} occurs in both file_handlers and bam_model_extensions!'.format(ext)
|
||||
self.file_handlers[ext] = _model_to_bam
|
||||
|
||||
tmp = self.default_file_handlers.copy()
|
||||
|
Loading…
x
Reference in New Issue
Block a user