Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/community/blender/blender-idprop_create-static-assert-float.patch
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-04-03 16:08:40 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2022-04-03 16:08:40 +0200
commitd5ac972a23a3307ed3d1884ffa091e9ca209f4a6 (patch)
tree1163922ed7ed27f52468578348244edfa5762943 /community/blender/blender-idprop_create-static-assert-float.patch
parent6d836fa886b8e0fc0db4aa0f0d847a24328e4b58 (diff)
community/blender: started some patching, still blocked (see FS32#246)
Diffstat (limited to 'community/blender/blender-idprop_create-static-assert-float.patch')
-rw-r--r--community/blender/blender-idprop_create-static-assert-float.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/blender/blender-idprop_create-static-assert-float.patch b/community/blender/blender-idprop_create-static-assert-float.patch
new file mode 100644
index 00000000..5be594e5
--- /dev/null
+++ b/community/blender/blender-idprop_create-static-assert-float.patch
@@ -0,0 +1,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).");