(self, extension)
| 559 | return Asset(contents=contents, extension=extension, prefix=filename) |
| 560 | |
| 561 | def _validate_extension(self, extension): |
| 562 | if self._parent.tag == constants.MESH: |
| 563 | if extension.lower() not in _MESH_EXTENSIONS: |
| 564 | raise ValueError(_INVALID_MESH_EXTENSION.format(extension)) |
| 565 | |
| 566 | def get_contents(self): |
| 567 | """Returns a bytestring representing the contents of the asset.""" |