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
diff options
context:
space:
mode:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2021-09-25 10:20:51 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2021-09-25 10:31:00 +0300
commit43394e41a8e0a866631bc7fdf07ac50e9d7094e4 (patch)
treed3266467fbb4aa1d715147daf896c382543ab0d0 /source/blender/io/alembic/intern/abc_reader_points.cc
parentab09844be8ff4a15cfdf9457f5b39256e3cbfd19 (diff)
Fix Alembic point cloud streaming.
Point clouds are not imported and read anymore. This was caused by an API change in rB128eb6cbe928e58dfee1c64f340fd8d663134c26 which was not applied to `AbcPointsReader`. It did not cause a compile error as the base class as a default implementation for this method.
Diffstat (limited to 'source/blender/io/alembic/intern/abc_reader_points.cc')
-rw-r--r--source/blender/io/alembic/intern/abc_reader_points.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/io/alembic/intern/abc_reader_points.cc b/source/blender/io/alembic/intern/abc_reader_points.cc
index 3aeacbd14fe..75ed18f57f2 100644
--- a/source/blender/io/alembic/intern/abc_reader_points.cc
+++ b/source/blender/io/alembic/intern/abc_reader_points.cc
@@ -82,7 +82,7 @@ bool AbcPointsReader::accepts_object_type(
void AbcPointsReader::readObjectData(Main *bmain, const Alembic::Abc::ISampleSelector &sample_sel)
{
Mesh *mesh = BKE_mesh_add(bmain, m_data_name.c_str());
- Mesh *read_mesh = this->read_mesh(mesh, sample_sel, 0, nullptr);
+ Mesh *read_mesh = this->read_mesh(mesh, sample_sel, 0, "", 0.0f, nullptr);
if (read_mesh != mesh) {
BKE_mesh_nomain_to_mesh(read_mesh, mesh, m_object, &CD_MASK_MESH, true);
@@ -127,6 +127,8 @@ void read_points_sample(const IPointsSchema &schema,
struct Mesh *AbcPointsReader::read_mesh(struct Mesh *existing_mesh,
const ISampleSelector &sample_sel,
int read_flag,
+ const char * /*velocity_name*/,
+ const float /*velocity_scale*/,
const char **err_str)
{
IPointsSchema::Sample sample;