Better creation of instance

Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
Petr Kalis 2022-07-19 10:47:43 +02:00 committed by GitHub
parent 508b3e7d8e
commit fa10d36f58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,10 +64,7 @@ class BatchMovCreator(TrayPublishCreator):
# Create new instance
new_instance = CreatedInstance(self.family, subset_name,
instance_data, self)
# Host implementation of storing metadata about instance
pipeline.HostContext.add_instance(new_instance.data_to_store())
# Add instance to current context
self._add_instance_to_context(new_instance)
self._store_new_instance(new_instance)
def get_asset_doc_from_file_name(self, source_filename, project_name):
"""Try to parse out asset name from file name provided.