Fix (unreported) broken python resgistrable classes checks logic.

Logic for registering and checking properties of registrable classes was
broken, allowing to ignore some errors.

Recent fix rBeb798de101a `broke` the result of the
pyapi_idprop_datablock test, because previously that test would fail
(i.e. suceed, as it is an 'expected to break test') for a reason it was
not designed to check.

This is the problem with that kind of tests - you cannot really check
that they are failing on the expected reason(s)...
This commit is contained in:
Bastien Montagne 2019-11-28 15:50:31 +01:00
parent 66328c0f4f
commit 627a344635
Notes: blender-bot 2023-02-14 08:49:53 +01:00
Referenced by issue #71983, script_pyapi_idprop_datablock test fails
Referenced by issue #71858, Inharitance for `ShaderNodeCustomGroup` is broken
1 changed files with 1 additions and 1 deletions

View File

@ -7818,7 +7818,7 @@ static int pyrna_deferred_register_props(StructRNA *srna, PyObject *class_dict)
}
}
{
if (ret == 0) {
/* This block can be removed once 2.8x is released and annotations are in use. */
bool has_warning = false;
while (PyDict_Next(class_dict, &pos, &key, &item)) {