Revert "Cast result of rna_RenderSettings_use_game_engine_get to {0, 1}"
authorSybren A. Stüvel <sybren@stuvel.eu>
Fri, 20 Feb 2015 07:41:21 +0000 (08:41 +0100)
committerSybren A. Stüvel <sybren@stuvel.eu>
Fri, 20 Feb 2015 07:41:31 +0000 (08:41 +0100)
There are more flags that trigger this assertion, so I want to discuss
an appropriate way to fix it before changing them all.

This reverts commit b1191e5caf1a888bfad2185ed41db2e91fbf46e2.

source/blender/makesrna/intern/rna_scene.c

index 617758fd91d15888f1e84498eda97bfb640bd8d6..205cd0c1ed6b672a1c7da441bdaa9536dc71cc47 100644 (file)
@@ -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;
 }