make cppcheck run with quiet flag when QUIET env var is set, make bpy.ops.image.project_apply() only use local images.
This commit is contained in:
parent
98fab9e530
commit
7376fb2913
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue