[Bf-blender-cvs] [81d6dcf0b37] refactor-mesh-hide-generic: Disallow procedural access
Hans Goudey
noreply at git.blender.org
Wed Aug 10 05:57:48 CEST 2022
Commit: 81d6dcf0b370fb9d9832bc9afa010b1be89a7e85
Author: Hans Goudey
Date: Tue Aug 9 22:57:40 2022 -0500
Branches: refactor-mesh-hide-generic
https://developer.blender.org/rB81d6dcf0b370fb9d9832bc9afa010b1be89a7e85
Disallow procedural access
===================================================================
M source/blender/blenkernel/intern/attribute_access.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/attribute_access.cc b/source/blender/blenkernel/intern/attribute_access.cc
index 1af3cde1821..b9995796a21 100644
--- a/source/blender/blenkernel/intern/attribute_access.cc
+++ b/source/blender/blenkernel/intern/attribute_access.cc
@@ -56,7 +56,7 @@ const char *no_procedural_access_message =
bool allow_procedural_attribute_access(StringRef attribute_name)
{
- return !attribute_name.startswith(".selection");
+ return !attribute_name.startswith(".selection") && !attribute_name.startswith(".hide");
}
static int attribute_data_type_complexity(const eCustomDataType data_type)
More information about the Bf-blender-cvs
mailing list