Cleanup: replace the use of listbase in io_alembic.cc with vector #108686

Merged
Hans Goudey merged 7 commits from guishe/blender:cleanup-io-allembic-listbase into main 2023-06-15 23:00:33 +02:00
Contributor

No visible changes expected.

See: #103343

No visible changes expected. See: #103343
Guillermo Venegas added 1 commit 2023-06-07 05:08:37 +02:00
Member

In Blender code we typically use Vector (blender::Vector) instead of std::vector.

In Blender code we typically use `Vector` (`blender::Vector`) instead of `std::vector`.
Guillermo Venegas added 1 commit 2023-06-07 14:46:58 +02:00
Guillermo Venegas changed title from Cleanup: replace the use of listbase in io_allembic.cc with vector to Cleanup: replace the use of listbase in io_alembic.cc with vector 2023-06-07 14:58:24 +02:00
Guillermo Venegas added 1 commit 2023-06-07 15:05:16 +02:00
Guillermo Venegas added 1 commit 2023-06-10 04:10:28 +02:00

if (frames.size() > 0) {...} return 1; -> if (frames.is_empty()) { return 1; } ...
blender::Vector<CacheFrame> frames{}; -> blender::Vector<CacheFrame> frames;
int frame_curr = frames[0].framenr; -> int frame_curr = frames.first().framenr;

`if (frames.size() > 0) {...} return 1;` -> `if (frames.is_empty()) { return 1; } ...` `blender::Vector<CacheFrame> frames{};` -> `blender::Vector<CacheFrame> frames;` `int frame_curr = frames[0].framenr;` -> `int frame_curr = frames.first().framenr;`
Guillermo Venegas added 1 commit 2023-06-10 19:13:51 +02:00
Guillermo Venegas added 1 commit 2023-06-10 19:28:06 +02:00
Guillermo Venegas added 1 commit 2023-06-10 21:28:06 +02:00
buildbot/vexp-code-patch-coordinator Build done. Details
995d87c439
cleanup
Author
Contributor

Thanks, done!

Thanks, done!
Hans Goudey reviewed 2023-06-15 21:53:44 +02:00
Hans Goudey left a comment
Member

Just to be sure, did you test this functionality before and after the change?

Just to be sure, did you test this functionality before and after the change?
Member

@blender-bot build

@blender-bot build
Author
Contributor

yes here is a test on console

image

and with this files, but tbh not I'm not really sure what the importer does with that number

image

yes here is a test on console ![image](/attachments/c29e23f6-84c6-46fe-b5dc-ecc94b0bff7d) and with this files, but tbh not I'm not really sure what the importer does with that number ![image](/attachments/e1a5485b-778c-4ec2-bcfb-9665317859b4)
Hans Goudey approved these changes 2023-06-15 22:59:33 +02:00
Member

Thanks!

Thanks!
Hans Goudey merged commit 75c2374565 into main 2023-06-15 23:00:33 +02:00
Guillermo Venegas deleted branch cleanup-io-allembic-listbase 2023-06-15 23:07:35 +02:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#108686
No description provided.