Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-07-15blend_render_info: add check for negative BHead length (corrupt file)Campbell Barton
Without this check, corrupt files would raise a Python exception, now early exit with a useful error.
2022-06-14blend_render_info: minor improvements to file parsingCampbell Barton
- Stop once `ENDB` is reached, as files could include additional data. - Prevent the possibility of an infinite loop from malformed BHEAD blocks that could seek backwards in the file.
2022-06-07blend_render_info: Zstd support, skip redundant file reading & cleanupCampbell Barton
- Use a context manager to handle file handlers (closing both in the case of compressed files). - Seek past BHead data instead of continually reading (checking for 'REND'). - Write errors to the stderr (so callers can differentiate it from the stdout). - Use `surrogateescape` in the unlikely event of encoding errors so the result is always a string (possible with files pre 2.4x). - Remove '.blend' extension check as it excludes `.blend1` files (we can assume the caller is passing in blend files). - Define `__all__` to make it clear only one function is intended to be used.
2022-06-02Cleanup: remove "<pep8 compliant>" from headersCampbell Barton
It can be assumed that all scripts comply with basic pep8 formatting regarding white-space, indentation etc. Also remove note in best practices page & update `tests/python/pep8.py`. If we want to exclude some scripts from make format, this can be done by adding them to `ignore_files` in: source/tools/utils_maintenance/autopep8_format_paths.py Or using `# nopep8` for to ignore for individual lines. Ref T98554
2022-02-11Cleanup: remove white-space before headersCampbell Barton
2022-02-11File headers: SPDX License migrationCampbell Barton
Use a shorter/simpler license convention, stops the header taking so much space. Follow the SPDX license specification: https://spdx.org/licenses - C/C++/objc/objc++ - Python - Shell Scripts - CMake, GNUmakefile While most of the source tree has been included - `./extern/` was left out. - `./intern/cycles` & `./intern/atomic` are also excluded because they use different header conventions. doc/license/SPDX-license-identifiers.txt has been added to list SPDX all used identifiers. See P2788 for the script that automated these edits. Reviewed By: brecht, mont29, sergey Ref D14069
2018-09-03Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3668
2018-07-03Cleanup: pep8Campbell Barton
2016-09-20Small speedup for blend_render_info.pyDmitry Dygalo
Do not close and re-open the file in case it's compressed, gzip module can now directly take a file object as parameter. Differential Revision: https://developer.blender.org/D2235
2016-07-25Call to python3 for stand-alone scriptsCampbell Barton
Needed since Debian & FreeBSD both move away from keeping a synlink to `python`.
2013-11-18Maintenance: Shebang lines fix for some python scriptsCampbell Barton
2012-08-22fix for blend_render_info.py not closing file & some edits to comments.Campbell Barton
2012-06-20style cleanupCampbell Barton
2012-04-26fix for buffer overrun crash with saving scene name longer then 24 characters.Campbell Barton
writing render info would try write= 64 length string into 24 length buffer. updated py script to extract render info too.
2011-10-17correct spelling errors in commentsCampbell Barton
2010-09-07ran through pep8 checkerCampbell Barton
2010-07-06pedantic pep8 warnings, mostly white space.Campbell Barton
2010-06-15- module for reading blend start/end frames and scene name (useful for ↵Campbell Barton
finding the total frame count without loading a blend file) - added render api as unstable to the docs.