diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-09 05:48:04 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-09 05:52:34 +0400 |
commit | 9de24c82bab8fc6f1b8810979ac492787d32a964 (patch) | |
tree | 3c2466ebd791a52859ce19ffee8ff5ed518a6061 /source/blender/makesrna/intern/rna_object.c | |
parent | b1f97a0cdb1bf6c7e0f80c6edb3182870625b9a6 (diff) |
View3D: disable LOD when game engine is disabled or ifdef'd
Diffstat (limited to 'source/blender/makesrna/intern/rna_object.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_object.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c index 193d7baad33..4a862928838 100644 --- a/source/blender/makesrna/intern/rna_object.c +++ b/source/blender/makesrna/intern/rna_object.c @@ -1482,7 +1482,12 @@ int rna_Object_use_dynamic_topology_sculpting_get(PointerRNA *ptr) static void rna_Object_lod_distance_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr) { Object *ob = (Object *)ptr->id.data; + +#ifdef WITH_GAMEENGINE BKE_object_lod_sort(ob); +#else + (void)ob; +#endif } #else |