own mistake in recent commit CustomData_layertype_is_singleton()

was stopping bmesh python api adding multiple layers.
This commit is contained in:
2012-05-04 13:28:02 +00:00
parent 8b1c1e9f61
commit e62f13ac31

View File

@@ -2610,7 +2610,7 @@ const char *CustomData_layertype_name(int type)
int CustomData_layertype_is_singleton(int type)
{
const LayerTypeInfo *typeInfo = layerType_getInfo(type);
return typeInfo->defaultname != NULL;
return typeInfo->defaultname == NULL;
}
static int CustomData_is_property_layer(int type)