Aras Pranckevicius aras_p
Aras Pranckevicius commented on issue blender/blender#128541 2024-10-03 19:52:58 +02:00
Obj with rational bsplines not imported correctly

@matteolegna-2 yeah, only very limited set of curve types are supported right now. I know that @Germain-Le-Chapelain was a WIP PR to improve it in some way here: #117371 but I haven't followed…

Aras Pranckevicius commented on issue blender/blender#128464 2024-10-03 15:11:35 +02:00
Blender VSE suddenly laggy. Lag persists after deleting all strips.

@PratikPB2123 it is a good question however, how that many "broken" animation drivers ended up there. Maybe some operations within Blender itself create/leak drivers? In the LagTest.blend

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

"Text Alignment" sounds good to me too

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

The compiler can not know/assume that, generally. Inside the loop there's a function call to BLF_glyph_advance and the compiler has no idea whatsoever what it does -- it can very much end up…

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

Ah ok then!

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

Fair! How about just "Horizontal text alignment"?

Aras Pranckevicius suggested changes for blender/blender#126660 2024-10-03 10:42:19 +02:00
VSE: Add text alignment feature

I added a handful of comments that while minor, should perhaps be addressed (the "possible crash on invalid text data" is perhaps the main one, but then some others wrt small performance issues too). Overall very nice!

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