summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-07-19 17:58:17 +0200
committerGitHub <noreply@github.com>2019-07-19 17:58:17 +0200
commitc317a3ce16a35b21d85b250a0e810526bb89db38 (patch)
treedfe7278154a4901e520c5ddbea575adf1f12a3ae /core
parente12f3a9bfd15429a2f574bb7cc9e096aa02e7c9c (diff)
parente86f6faf641ea909798ba7fef3414eae6d1400b2 (diff)
Merge pull request #30354 from LikeLakers2/multinodeedit-same-type-properties
MultiNodeEdit now only shows properties with the exact same PropertyInfo data
Diffstat (limited to 'core')
-rw-r--r--core/object.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/object.h b/core/object.h
index 1e0b22c086..e6c5b7c5b9 100644
--- a/core/object.h
+++ b/core/object.h
@@ -179,6 +179,15 @@ struct PropertyInfo {
usage(PROPERTY_USAGE_DEFAULT) {
}
+ bool operator==(const PropertyInfo &p_info) const {
+ return ((type == p_info.type) &&
+ (name == p_info.name) &&
+ (class_name == p_info.class_name) &&
+ (hint == p_info.hint) &&
+ (hint_string == p_info.hint_string) &&
+ (usage == p_info.usage));
+ }
+
bool operator<(const PropertyInfo &p_info) const {
return name < p_info.name;
}