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:
authorAras Pranckevicius <aras@nesnausk.org>2022-09-01 20:44:09 +0300
committerAras Pranckevicius <aras@nesnausk.org>2022-09-01 20:44:09 +0300
commit08894ac929cbad25219d107f7877b1300135fb60 (patch)
tree434d98a19022c131730891a3ae8d6c26aa36e2d5 /source/blender/io/collada
parent82e3513a8d0fcfb3e7410b88a4ba5683bb45876b (diff)
parentf366d197db24cf611866a8d847b4022a6a46504e (diff)
Merge branch 'blender-v3.3-release'
Diffstat (limited to 'source/blender/io/collada')
-rw-r--r--source/blender/io/collada/DocumentImporter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/io/collada/DocumentImporter.cpp b/source/blender/io/collada/DocumentImporter.cpp
index 2ce97bc8b5d..1ffe412b3ed 100644
--- a/source/blender/io/collada/DocumentImporter.cpp
+++ b/source/blender/io/collada/DocumentImporter.cpp
@@ -743,6 +743,7 @@ bool DocumentImporter::writeMaterial(const COLLADAFW::Material *cmat)
const std::string &str_mat_id = cmat->getName().empty() ? cmat->getOriginalId() :
cmat->getName();
Material *ma = BKE_material_add(bmain, (char *)str_mat_id.c_str());
+ id_us_min(&ma->id);
this->uid_effect_map[cmat->getInstantiatedEffect()] = ma;
this->uid_material_map[cmat->getUniqueId()] = ma;