Merge branch 'master' into blender2.8
[blender.git] / source / blender / alembic / intern / abc_mesh.cc
index 15a72cf4453abc94cb6ce549f0b143144b8509f6..bc62db5702c0874a950f7719ae0ad189aef3cbd7 100644 (file)
@@ -354,7 +354,7 @@ bool AbcMeshWriter::isAnimated() const
                md = md->next;
        }
 
-       return false;
+       return me->adt != NULL;
 }
 
 void AbcMeshWriter::do_write()
@@ -917,12 +917,6 @@ static void *add_customdata_cb(void *user_data, const char *name, int data_type)
        numloops = dm->getNumLoops(dm);
        cd_ptr = CustomData_add_layer_named(loopdata, cd_data_type, CD_DEFAULT,
                                            NULL, numloops, name);
-       if (cd_data_type == CD_MLOOPUV) {
-               CustomData_add_layer_named(dm->getPolyDataLayout(dm),
-                                          CD_MTEXPOLY, CD_DEFAULT,
-                                          NULL, numloops, name);
-       }
-
        return cd_ptr;
 }