Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2015-02-20 10:41:21 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2015-02-20 10:41:31 +0300
commitd0978103aefab710c9d433a5a0a32b40b5e287eb (patch)
tree5d125af5bfabf818b769efea48d7eb96920aa480 /source
parentb1191e5caf1a888bfad2185ed41db2e91fbf46e2 (diff)
Revert "Cast result of rna_RenderSettings_use_game_engine_get to {0, 1}"
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_scene.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index 617758fd91d..205cd0c1ed6 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -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;
}