Merge remote-tracking branch 'origin/blender-v2.83-release'
This commit is contained in:
commit
1b289029bb
|
@ -514,6 +514,9 @@ int ed_screen_context(const bContext *C, const char *member, bContextDataResult
|
|||
|
||||
ANIM_animdata_filter(&ac, &anim_data, ANIMFILTER_DATA_VISIBLE, ac.data, ac.datatype);
|
||||
for (ale = anim_data.first; ale; ale = ale->next) {
|
||||
if (ale->datatype != ALE_NLASTRIP) {
|
||||
continue;
|
||||
}
|
||||
NlaTrack *nlt = (NlaTrack *)ale->data;
|
||||
NlaStrip *strip;
|
||||
for (strip = nlt->strips.first; strip; strip = strip->next) {
|
||||
|
|
|
@ -481,6 +481,19 @@ bool AbcMeshReader::valid() const
|
|||
return m_schema.valid();
|
||||
}
|
||||
|
||||
/* Specialisation of has_animations() as defined in abc_reader_object.h. */
|
||||
template<> bool has_animations(Alembic::AbcGeom::IPolyMeshSchema &schema, ImportSettings *settings)
|
||||
{
|
||||
if (settings->is_sequence || !schema.isConstant()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
IV2fGeomParam uvsParam = schema.getUVsParam();
|
||||
IN3fGeomParam normalsParam = schema.getNormalsParam();
|
||||
return (uvsParam.valid() && !uvsParam.isConstant()) ||
|
||||
(normalsParam.valid() && !normalsParam.isConstant());
|
||||
}
|
||||
|
||||
void AbcMeshReader::readObjectData(Main *bmain, const Alembic::Abc::ISampleSelector &sample_sel)
|
||||
{
|
||||
Mesh *mesh = BKE_mesh_add(bmain, m_data_name.c_str());
|
||||
|
|
|
@ -333,7 +333,7 @@ void AbcGenericMeshWriter::writeMesh(struct Mesh *mesh)
|
|||
V3fArraySample(points), Int32ArraySample(poly_verts), Int32ArraySample(loop_counts));
|
||||
|
||||
UVSample sample;
|
||||
if (m_first_frame && m_settings.export_uvs) {
|
||||
if (m_settings.export_uvs) {
|
||||
const char *name = get_uv_sample(sample, m_custom_data_config, &mesh->ldata);
|
||||
|
||||
if (!sample.indices.empty() && !sample.uvs.empty()) {
|
||||
|
|
Loading…
Reference in New Issue