Cast result of rna_RenderSettings_use_game_engine_get to {0, 1}
rna_RenderSettings_use_game_engine_get() in rna_scene.c would return 0 or 2, whereas the assertion in rna_access.c:1843 indicates that boolean values should only be 0 or 1.
This commit is contained in:
@@ -1245,7 +1245,7 @@ static int rna_RenderSettings_use_game_engine_get(PointerRNA *ptr)
|
||||
|
||||
for (type = R_engines.first; type; type = type->next)
|
||||
if (STREQ(type->idname, rd->engine))
|
||||
return (type->flag & RE_GAME);
|
||||
return !!(type->flag & RE_GAME);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user