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:
authorHans Goudey <h.goudey@me.com>2022-04-14 01:00:18 +0300
committerHans Goudey <h.goudey@me.com>2022-04-14 01:00:18 +0300
commita8ee279aa903ad6d81175f4299bc426a0cd32ebf (patch)
tree6113d2fc639c0b9d5f089730c51302430ce1ee46 /source/blender/blenkernel/intern/geometry_component_curves.cc
parent94495049a8ef2bd5f290e4a5205725e28fa74a66 (diff)
Fix: Use consistent type for nurbs order attribute
An 8 bit integer should be enough for now. We can change this if we ever want to allow increasing the order past 256.
Diffstat (limited to 'source/blender/blenkernel/intern/geometry_component_curves.cc')
-rw-r--r--source/blender/blenkernel/intern/geometry_component_curves.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/geometry_component_curves.cc b/source/blender/blenkernel/intern/geometry_component_curves.cc
index 0bcab0aae7a..3f4342bd0dd 100644
--- a/source/blender/blenkernel/intern/geometry_component_curves.cc
+++ b/source/blender/blenkernel/intern/geometry_component_curves.cc
@@ -462,14 +462,14 @@ static ComponentAttributeProviders create_attribute_providers_for_curve()
static BuiltinCustomDataLayerProvider nurbs_order("nurbs_order",
ATTR_DOMAIN_CURVE,
- CD_PROP_INT32,
- CD_PROP_INT32,
+ CD_PROP_INT8,
+ CD_PROP_INT8,
BuiltinAttributeProvider::Creatable,
BuiltinAttributeProvider::Writable,
BuiltinAttributeProvider::Deletable,
curve_access,
- make_array_read_attribute<int>,
- make_array_write_attribute<int>,
+ make_array_read_attribute<int8_t>,
+ make_array_write_attribute<int8_t>,
tag_component_topology_changed);
static BuiltinCustomDataLayerProvider normal_mode("normal_mode",