Alembic export: renamed func object_is_shape → object_type_is_exportable

The function doesn't return whether the object is a shape at all, since
it also returns true for camera objects (and soon also for empties). It
returns true when objects of this type can be exported to Alembic at all.
This is now reflected in the name.
This commit is contained in:
Sybren A. Stüvel 2017-04-26 12:25:45 +02:00
parent edc9f8b766
commit afe1c25d06
1 changed files with 3 additions and 3 deletions

View File

@ -108,7 +108,7 @@ static bool object_is_smoke_sim(Object *ob)
return false;
}
static bool object_is_shape(Object *ob)
static bool object_type_is_exportable(Object *ob)
{
switch (ob->type) {
case OB_MESH:
@ -387,7 +387,7 @@ void AbcExporter::exploreTransform(EvaluationContext *eval_ctx, Object *ob, Obje
return;
}
if (object_is_shape(ob)) {
if (object_type_is_exportable(ob)) {
createTransformWriter(ob, parent, dupliObParent);
}
@ -552,7 +552,7 @@ void AbcExporter::createParticleSystemsWriters(Object *ob, AbcTransformWriter *x
void AbcExporter::createShapeWriter(Object *ob, Object *dupliObParent)
{
if (!object_is_shape(ob)) {
if (!object_type_is_exportable(ob)) {
return;
}