Aras Pranckevicius aras_p
Aras Pranckevicius commented on pull request blender/blender#126660 2024-10-03 10:39:29 +02:00
VSE: Add text alignment feature

Maybe for (const rcti &box, no need to copy them for each loop iteration

Aras Pranckevicius commented on pull request blender/blender#126660 2024-10-03 10:37:12 +02:00
VSE: Add text alignment feature

No need to copy lines vector into this function, passing by reference would work fine

Aras Pranckevicius commented on pull request blender/blender#126660 2024-10-03 10:35:53 +02:00
VSE: Add text alignment feature

Should this break only on literal space, or on other "white space" characters (e.g. \t)?

Aras Pranckevicius commented on pull request blender/blender#126660 2024-10-03 10:34:09 +02:00
VSE: Add text alignment feature

No need to keep on calling BLI_strnlen on each loop iteration, call it once before the loop

Aras Pranckevicius commented on pull request blender/blender#126660 2024-10-03 10:30:08 +02:00
VSE: Add text alignment feature

Why is DNA_curve_types.h include needed here?

Aras Pranckevicius commented on pull request blender/blender#126660 2024-10-03 10:29:06 +02:00
VSE: Add text alignment feature

All of the TextVarsRuntime, LineInfo, CharInfo seem to be only used within effects.cc, so they don't need to be in any header. And maybe rename TextVarsRuntime to some other name, since usually "Runtime" structs are for runtime fields within DNA types. Which is not the case here.

Aras Pranckevicius commented on pull request blender/blender#126660 2024-10-03 10:26:59 +02:00
VSE: Add text alignment feature

Why BLI_index_range.hh and BLI_span.hh includes are needed in this header?

Aras Pranckevicius commented on pull request blender/blender#126660 2024-10-03 10:25:54 +02:00
VSE: Add text alignment feature

Maybe "Horizontal alignment for multi-line text" sound easier to understand than "Align the text along the X axis"

Aras Pranckevicius commented on pull request blender/blender#126660 2024-10-03 10:25:04 +02:00
VSE: Add text alignment feature

Is the tooltip technically correct? I think the position of the text box is not relative to the image center, but rather to the "Location" property (which defaults to image center, yes).

Aras Pranckevicius commented on pull request blender/blender#126660 2024-10-03 10:19:32 +02:00
VSE: Add text alignment feature

BLI_str_utf8_size_or_error can return -1 for malformed UTF8 sequences, in which case the whole loop would probably start walking into nonsensical memory and crash. Maybe break out of the loop of char_length is <= 0?

Aras Pranckevicius commented on pull request blender/blender#128337 2024-10-03 10:10:41 +02:00
WIP: IO: Add file unit type selector to stl importer and exporter

btw I'm not too familiar with the whole units system, perhaps @ideasman42 would have better opinions

Aras Pranckevicius commented on pull request blender/blender#128337 2024-10-03 10:09:09 +02:00
WIP: IO: Add file unit type selector to stl importer and exporter

Not quite like hardcoding unit system indices in that way. As far as I can tell, these would only work as long as no one reorders to alters the unit systems arrays inside unit.cc. Would it be better to use something like BKE_unit_base_scalar to get the scaling factors instead?

Aras Pranckevicius commented on pull request blender/blender#128337 2024-09-30 10:50:23 +02:00
WIP: IO: Add file unit type selector to stl importer and exporter

That's an interesting idea, but it makes me wonder: should some other formats that are "unit-less" (e.g. OBJ, PLY) also get the same feature?

Aras Pranckevicius commented on pull request blender/blender#128274 2024-09-27 20:28:59 +02:00
WIP: Sculpt: Experiment with compressed undo step storage

which is actually why this change has been in the back of my mind for a while :)

Ah!

but I'm sure there are smarter ways to compress a potentially sparse array

If the "sparse array"…

Aras Pranckevicius commented on pull request blender/blender#128274 2024-09-27 18:52:43 +02:00
WIP: Sculpt: Experiment with compressed undo step storage

Ha! I was just looking at a very similar topic some 1.5 years ago. Two possible notes:

  • At least in my tests back then, zstd compression level 1 was a tiny bit of compression ratio loss, but…
Aras Pranckevicius pushed to main at blender/blender-developer-docs 2024-09-26 20:33:51 +02:00
fbf82be725 Update docs/release_notes/4.3/sequencer.md
Aras Pranckevicius deleted branch vse_retiming_draw_opt from aras_p/blender 2024-09-26 20:33:20 +02:00
Aras Pranckevicius merged pull request blender/blender#128170 2024-09-26 20:33:16 +02:00
VSE: Faster timeline retiming keys drawing
Aras Pranckevicius pushed to main at blender/blender 2024-09-26 20:33:15 +02:00
f095f41c4a VSE: Faster timeline retiming keys drawing