Skip to content

Asset objects should be shallow copied by default #66

@gorlak

Description

@gorlak

SpriteComponentDefinition::PopulateMetaType has to mark m_Texture as FieldFlags::Share to prevent the Texture2d Asset it references from getting cloned. We need to figure out some way to systematically prevent Cloning Assets from cloning the assets they reference via reflection-aware pointer field.

Perhaps we could add a Identifier/Resolver style interface to the cloning API, or maybe stash some data in the StrongPtr template class that gets extracted during reflection initialization.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions