make cppcheck run with quiet flag when QUIET env var is set, make bpy.ops.image.proje...
authorCampbell Barton <ideasman42@gmail.com>
Sun, 9 Dec 2012 14:17:33 +0000 (14:17 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 9 Dec 2012 14:17:33 +0000 (14:17 +0000)
build_files/cmake/cmake_static_check_cppcheck.py
release/scripts/startup/bl_operators/image.py

index 12369a5e8cddd9a3f5c2b9b1ff733c0bf35f8a36..d79145f8586d67f754e5c0f49bffc81b116aeef7 100644 (file)
@@ -46,6 +46,9 @@ CHECKER_ARGS = [
     #  "--enable=all",  # if you want sixty hundred pedantic suggestions
     ]
 
+if USE_QUIET:
+    CHECKER_ARGS.append("--quiet")
+
 
 def main():
     source_info = project_source_info.build_info(ignore_prefix_list=CHECKER_IGNORE_PREFIX)
@@ -78,6 +81,8 @@ def main():
 
     project_source_info.queue_processes(process_functions)
 
+    print("Finished!")
+
 
 if __name__ == "__main__":
     main()
index 074069255bc2c50bbc4a6c5dd2ad6f8e3a92045e..ce328b86eac3f873128f01ac9cd3ee10f4949780 100644 (file)
@@ -224,7 +224,7 @@ class ProjectApply(Operator):
         image_name = ProjectEdit._proj_hack[0]  # TODO, deal with this nicer
 
         try:
-            image = bpy.data.images[image_name]
+            image = bpy.data.images[image_name, None]
         except KeyError:
             import traceback
             traceback.print_exc()