summaryrefslogtreecommitdiff
path: root/community/blender/blender-idprop_create-static-assert-float.patch
blob: 5be594e50a76b891ff15b71e78a9dc5614eb2522 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -rauN blender/source/blender/blenkernel/intern/idprop_create.cc blender-idprop_create-static-assert-float-patch/source/blender/blenkernel/intern/idprop_create.cc
--- blender/source/blender/blenkernel/intern/idprop_create.cc	2022-04-03 14:32:20.257350527 +0200
+++ blender-idprop_create-static-assert-float-patch/source/blender/blenkernel/intern/idprop_create.cc	2022-04-03 14:35:17.851234918 +0200
@@ -92,7 +92,7 @@
                                                             Span<PrimitiveType> values)
 {
   static_assert(std::is_same_v<PrimitiveType, int32_t> || std::is_same_v<PrimitiveType, float_t> ||
-                    std::is_same_v<PrimitiveType, double>,
+                    std::is_same_v<PrimitiveType, float> || std::is_same_v<PrimitiveType, double>,
                 "Allowed values for PrimitiveType are int32_t, float and double.");
   static_assert(!std::is_same_v<PrimitiveType, int32_t> || id_property_subtype == IDP_INT,
                 "PrimitiveType and id_property_type do not match (int32_t).");