Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2022-11-08 17:14:07 +0300
committerJulian Eisel <julian@blender.org>2022-11-08 17:14:07 +0300
commit84cc68b68f5d11ddc7b132e7d76b99715d590eb5 (patch)
tree72c91ff12772d9772905d9033d93f2a6e559513d
parent3fb8ad93ad6195846545f9ca60fda9a297d958ac (diff)
Fix uninitialized variable use when dragging in assets
-rw-r--r--source/blender/blenkernel/BKE_asset_representation.hh4
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);