misc changes from trunk (avoid confusion since these were not intentional differences) bmesh
authorCampbell Barton <ideasman42@gmail.com>
Sun, 19 Feb 2012 18:41:30 +0000 (18:41 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 19 Feb 2012 18:41:30 +0000 (18:41 +0000)
CMakeLists.txt
build_files/cmake/cmake_static_check_cppcheck.py
release/scripts/modules/bpy_types.py
release/scripts/startup/bl_ui/space_info.py
source/blender/collada/MeshImporter.cpp

index 9f6e8f88fd9465b449f6f5781faf8a0a62a89d22..ae39f7ce5b3319fac5e329c8647fb0db52c52007 100644 (file)
@@ -129,7 +129,7 @@ option(WITH_BUILDINFO     "Include extra build details (only disable for develop
 option(WITH_IK_ITASC      "Enable ITASC IK solver (only disable for development & for incompatible C++ compilers)" ON)
 option(WITH_FFTW3         "Enable FFTW3 support (Used for smoke and audio effects)" OFF)
 option(WITH_BULLET        "Enable Bullet (Physics Engine)" ON)
-option(WITH_GAMEENGINE    "Enable Game Engine" OFF)  # DISABLE FOR BMESH UNTIL NAVMESH IS WORKING
+option(WITH_GAMEENGINE    "Enable Game Engine" ON)
 option(WITH_PLAYER        "Build Player" OFF)
 
 # GHOST Windowing Library Options
index f9f951b6e645b153e30635098050c33256cd2fc3..436470a702064dec862ffc3e1673099f1999186e 100644 (file)
@@ -40,7 +40,7 @@ CHECKER_ARGS = [
     "--suppress=*:%s/extern/glew/include/GL/glew.h:241" % project_source_info.SOURCE_DIR,
     # "--max-configs=1",  # speeds up execution
     #  "--check-config", # when includes are missing
-    "--enable=all",  # if you want sixty hundred pedantic suggestions
+    #  "--enable=all",  # if you want sixty hundred pedantic suggestions
     ]
 
 
@@ -49,8 +49,6 @@ def main():
 
     check_commands = []
     for c, inc_dirs, defs in source_info:
-        # if not 'bevel' in c: continue
-        # if 'MOD' in c: continue
         cmd = ([CHECKER_BIN] +
                 CHECKER_ARGS +
                [c] +
@@ -63,7 +61,7 @@ def main():
     process_functions = []
 
     def my_process(i, c, cmd):
-        percent = 100.0 * (i / (len(check_commands)))
+        percent = 100.0 * (i / (len(check_commands) - 1))
         percent_str = "[" + ("%.2f]" % percent).rjust(7) + " %:"
 
         sys.stdout.flush()
index eeb8f375c3de0e8422b076296d931eece939af5d..c5dc07e493a43441ed2186115550dc35a65f429c 100644 (file)
@@ -202,7 +202,7 @@ class _GenericBone:
     @property
     def center(self):
         """The midpoint between the head and the tail."""
-        return self.head.lerp(self.tail, 0.5)
+        return (self.head + self.tail) * 0.5
 
     @property
     def length(self):
@@ -650,7 +650,7 @@ class _GenericUI:
         draw_funcs = cls._dyn_ui_initialize()
         try:
             draw_funcs.remove(draw_func)
-        except ValueError:
+        except:
             pass
 
 
index a7592ec937594fcd8c1c062489127877376651d3..b6a450e1a02e9cdae5c0b3eaaa7912669844da2e 100644 (file)
@@ -170,8 +170,6 @@ class INFO_MT_file_export(Menu):
         if hasattr(bpy.types, "WM_OT_collada_export"):
             self.layout.operator("wm.collada_export", text="COLLADA (.dae)")
 
-        self.layout.operator("export_mesh.wavefront", text="Wavefront (.obj), BMesh")
-
 
 class INFO_MT_file_external_data(Menu):
     bl_label = "External Data"
index 26ec7be1002a5e1e4728afa35c4f2b4a84019490..ebfeb0c6301686507fe0c2240cb77a447f5a6d8e 100644 (file)
@@ -746,6 +746,9 @@ MTex *MeshImporter::assign_textures_to_uvlayer(COLLADAFW::TextureCoordinateBindi
        
        const CustomData *data = &me->fdata;
        int layer_index = CustomData_get_layer_index(data, CD_MTFACE);
+
+       if(layer_index == -1) return NULL;
+
        CustomDataLayer *cdl = &data->layers[layer_index+setindex];
        
        /* set uvname to bind_vertex_input semantic */