diff options
author | Julian Eisel <julian@blender.org> | 2022-11-08 17:14:07 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-11-08 17:14:07 +0300 |
commit | 84cc68b68f5d11ddc7b132e7d76b99715d590eb5 (patch) | |
tree | 72c91ff12772d9772905d9033d93f2a6e559513d /source | |
parent | 3fb8ad93ad6195846545f9ca60fda9a297d958ac (diff) |
Fix uninitialized variable use when dragging in assets
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/BKE_asset_representation.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_asset_representation.hh b/source/blender/blenkernel/BKE_asset_representation.hh index d2e167b3f35..2acf30fbc88 100644 --- a/source/blender/blenkernel/BKE_asset_representation.hh +++ b/source/blender/blenkernel/BKE_asset_representation.hh @@ -22,10 +22,10 @@ namespace blender::bke { */ class AssetRepresentation { /** Null if the asset represents a local ID, in which case the ID owns the metadata. */ - std::unique_ptr<AssetMetaData> metadata_; + std::unique_ptr<AssetMetaData> metadata_ = nullptr; /** If the asset representation was constructed from a local ID, this points to the editable * asset metadata of the ID. */ - AssetMetaData *local_id_metadata_; /* Non-owning. */ + AssetMetaData *local_id_metadata_ = nullptr; /* Non-owning. */ public: explicit AssetRepresentation(std::unique_ptr<AssetMetaData> metadata); |