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:
Diffstat (limited to 'source/blender/functions/intern/attributes_ref.cc')
-rw-r--r--source/blender/functions/intern/attributes_ref.cc13
1 files changed, 6 insertions, 7 deletions
diff --git a/source/blender/functions/intern/attributes_ref.cc b/source/blender/functions/intern/attributes_ref.cc
index 8f7f41be079..9f1e7fa65e5 100644
--- a/source/blender/functions/intern/attributes_ref.cc
+++ b/source/blender/functions/intern/attributes_ref.cc
@@ -42,14 +42,13 @@ bool AttributesInfoBuilder::add(StringRef name, const CPPType &type, const void
defaults_.append(dst);
return true;
}
- else {
- const CPPType &stored_type = *types_[names_.index_of_as(name)];
- if (stored_type != type) {
- std::cout << "Warning: Tried to add an attribute twice with different types (" << name
- << ": " << stored_type.name() << ", " << type.name() << ").\n";
- }
- return false;
+
+ const CPPType &stored_type = *types_[names_.index_of_as(name)];
+ if (stored_type != type) {
+ std::cout << "Warning: Tried to add an attribute twice with different types (" << name << ": "
+ << stored_type.name() << ", " << type.name() << ").\n";
}
+ return false;
}
AttributesInfo::AttributesInfo(const AttributesInfoBuilder &builder)