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:
@@ -46,6 +46,9 @@ CHECKER_ARGS = [
|
|||||||
# "--enable=all", # if you want sixty hundred pedantic suggestions
|
# "--enable=all", # if you want sixty hundred pedantic suggestions
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if USE_QUIET:
|
||||||
|
CHECKER_ARGS.append("--quiet")
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
source_info = project_source_info.build_info(ignore_prefix_list=CHECKER_IGNORE_PREFIX)
|
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)
|
project_source_info.queue_processes(process_functions)
|
||||||
|
|
||||||
|
print("Finished!")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
@@ -224,7 +224,7 @@ class ProjectApply(Operator):
|
|||||||
image_name = ProjectEdit._proj_hack[0] # TODO, deal with this nicer
|
image_name = ProjectEdit._proj_hack[0] # TODO, deal with this nicer
|
||||||
|
|
||||||
try:
|
try:
|
||||||
image = bpy.data.images[image_name]
|
image = bpy.data.images[image_name, None]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
Reference in New Issue
Block a user