Campbell Barton
e757c4a3be
Cleanup: use colon separator after parameter
...
Helps separate variable names from descriptive text.
Was already used in some parts of the code,
double space and dashes were used elsewhere.
2018-12-12 12:50:58 +11:00
Campbell Barton
75fc1c3507
Cleanup: trailing whitespace (comment blocks)
...
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-06-01 18:19:39 +02:00
Campbell Barton
43b4913051
Math Lib: Add non-clamped round_* functions
...
Replace iroundf with round_fl_to_int, add other types
2017-09-27 11:13:03 +10:00
Bastien Montagne
c919ce3aa9
Fix (unreported) broken export of timecodes in SubRip VSE exporter.
...
Would write 1.04 seconds as `00:00:01,40` instead of `00:00:01,040`...
Anyway, we already have BLI API for timecodes, much better to add
SubRip timecode format there, heavily simplifies code.
To be backported to final 2.76.
2015-10-04 16:43:24 +02:00
Campbell Barton
8bef305b6d
Cleanup: move BLI_timestr to BLI_timecode
2015-06-30 14:47:31 +10:00
Campbell Barton
5d30c23c35
doxygen: corrections/updates
...
Also add depsgraph & physics
2015-05-20 14:12:22 +10:00
Campbell Barton
bf69453ae7
BLI_string: add BLI_snprintf_rlen
...
use when the length of the destination string is needed.
2015-04-22 05:37:22 +10:00
Bastien Montagne
e3c8cf0a9e
Add (r)partition funcs to BLI_string, to get left-most/right-most first occurence of delimiters.
...
Inspired by Python (r)partition str functions. Also added some Gtest cases for those new funcs.
Reviewed by Campbell Barton, many thanks!
2014-07-04 14:14:06 +02:00
Campbell Barton
48881ad1e0
Code cleanup: doxy comments
2014-05-14 15:00:47 +10:00
Campbell Barton
0319db1063
Correct own recent changes broke release builds
2014-03-30 20:35:59 +11:00
Campbell Barton
39eb314cb9
UI: Refactor timecode functions into BLI_timecode
...
- deduplicate timecode_simple_string from image.c
- replace V2D_UNIT_SECONDSSEQ with V2D_UNIT_SECONDS
- avoid possible buffer overflow bugs (sprintf -> BLI_snprintf)
- remove option not to use timecode and split into 2 functions
Patch D227 by Andrew Buttery with own refactoring.
2014-01-29 20:44:01 +11:00