Cleanup: format (with BraceWrapping::AfterControlStatement "MultiLine")
This commit is contained in:
@@ -184,7 +184,8 @@ static void bpy_pydriver_namespace_update_frame(const float evaltime)
|
||||
static void bpy_pydriver_namespace_update_self(struct PathResolvedRNA *anim_rna)
|
||||
{
|
||||
if ((g_pydriver_state_prev.self == NULL) ||
|
||||
(pyrna_driver_is_equal_anim_rna(anim_rna, g_pydriver_state_prev.self) == false)) {
|
||||
(pyrna_driver_is_equal_anim_rna(anim_rna, g_pydriver_state_prev.self) == false))
|
||||
{
|
||||
PyObject *item = pyrna_driver_self_from_anim_rna(anim_rna);
|
||||
PyDict_SetItem(bpy_pydriver_Dict, bpy_intern_str_self, item);
|
||||
Py_DECREF(item);
|
||||
@@ -225,7 +226,8 @@ static void bpy_pydriver_namespace_update_depsgraph(struct Depsgraph *depsgraph)
|
||||
}
|
||||
|
||||
if ((g_pydriver_state_prev.depsgraph == NULL) ||
|
||||
(depsgraph != g_pydriver_state_prev.depsgraph->ptr.data)) {
|
||||
(depsgraph != g_pydriver_state_prev.depsgraph->ptr.data))
|
||||
{
|
||||
PyObject *item = bpy_pydriver_depsgraph_as_pyobject(depsgraph);
|
||||
PyDict_SetItem(bpy_pydriver_Dict, bpy_intern_str_depsgraph, item);
|
||||
Py_DECREF(item);
|
||||
@@ -753,7 +755,8 @@ float BPY_driver_exec(struct PathResolvedRNA *anim_rna,
|
||||
},
|
||||
/* Always be verbose since this can give hints to why evaluation fails. */
|
||||
true,
|
||||
__func__)) {
|
||||
__func__))
|
||||
{
|
||||
if (!(G.f & G_FLAG_SCRIPT_AUTOEXEC_FAIL_QUIET)) {
|
||||
G.f |= G_FLAG_SCRIPT_AUTOEXEC_FAIL;
|
||||
BLI_snprintf(G.autoexec_fail, sizeof(G.autoexec_fail), "Driver '%s'", expr);
|
||||
|
||||
Reference in New Issue
Block a user