[Bf-blender-cvs] [3d92ce8e244] refactor-mesh-uv-map-generic: Use PyErr_SetString() instead of PyErr_Format()

Martijn Versteegh noreply at git.blender.org
Fri Jan 6 15:58:59 CET 2023


Commit: 3d92ce8e244ad8f3f8a1ececa2f92eccb2c1fb25
Author: Martijn Versteegh
Date:   Fri Jan 6 15:36:36 2023 +0100
Branches: refactor-mesh-uv-map-generic
https://developer.blender.org/rB3d92ce8e244ad8f3f8a1ececa2f92eccb2c1fb25

Use PyErr_SetString() instead of PyErr_Format()

===================================================================

M	source/blender/python/bmesh/bmesh_py_types_meshdata.c

===================================================================

diff --git a/source/blender/python/bmesh/bmesh_py_types_meshdata.c b/source/blender/python/bmesh/bmesh_py_types_meshdata.c
index 71d2b996c7d..01bc5be1dff 100644
--- a/source/blender/python/bmesh/bmesh_py_types_meshdata.c
+++ b/source/blender/python/bmesh/bmesh_py_types_meshdata.c
@@ -96,7 +96,7 @@ static int bpy_bmloopuv_pin_uv_set(BPy_BMLoopUV *self, PyObject *value, void *UN
     *self->pin = PyC_Long_AsBool(value);
   }
   else {
-    PyErr_Format(PyExc_RuntimeError,
+    PyErr_SetString(PyExc_RuntimeError,
                  "active uv layer has no associated pin layer. This is a bug!");
   }
   return 0;
@@ -115,7 +115,7 @@ static int bpy_bmloopuv_select_set(BPy_BMLoopUV *self, PyObject *value, void *UN
     *self->vert_select = PyC_Long_AsBool(value);
   }
   else {
-    PyErr_Format(PyExc_RuntimeError,
+    PyErr_SetString(PyExc_RuntimeError,
                  "active uv layer has no associated vertex selection layer. This is a bug!");
   }
   return 0;
@@ -134,7 +134,7 @@ static int bpy_bmloopuv_select_edge_set(BPy_BMLoopUV *self, PyObject *value, voi
     *self->edge_select = PyC_Long_AsBool(value);
   }
   else {
-    PyErr_Format(PyExc_RuntimeError,
+    PyErr_SetString(PyExc_RuntimeError,
                  "active uv layer has no associated edge selection layer. This is a bug!");
   }
   return 0;



More information about the Bf-blender-cvs mailing list