Skip to content

Commit fad7b50

Browse files
committed
synced with latest engine version
1 parent a87213b commit fad7b50

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/editor/plugins.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,19 @@ struct ModelWriter {
8383
const cgltf_attribute& attr = import_mesh.primitives[0].attributes[i];
8484
switch (attr.type) {
8585
case cgltf_attribute_type_position:
86-
write(Mesh::AttributeSemantic::POSITION);
86+
write(AttributeSemantic::POSITION);
8787
break;
8888
case cgltf_attribute_type_normal:
89-
write(Mesh::AttributeSemantic::NORMAL);
89+
write(AttributeSemantic::NORMAL);
9090
break;
9191
case cgltf_attribute_type_texcoord:
92-
write(Mesh::AttributeSemantic::TEXCOORD0);
92+
write(AttributeSemantic::TEXCOORD0);
9393
break;
9494
case cgltf_attribute_type_color:
95-
write(Mesh::AttributeSemantic::COLOR0);
95+
write(AttributeSemantic::COLOR0);
9696
break;
9797
case cgltf_attribute_type_tangent:
98-
write(Mesh::AttributeSemantic::TANGENT);
98+
write(AttributeSemantic::TANGENT);
9999
break;
100100
default: ASSERT(false); break;
101101
}
@@ -108,10 +108,10 @@ struct ModelWriter {
108108
}
109109

110110
if (is_rigid_animated) {
111-
write(Mesh::AttributeSemantic::INDICES);
111+
write(AttributeSemantic::INDICES);
112112
write(gpu::AttributeType::I16);
113113
write((u8)4);
114-
write(Mesh::AttributeSemantic::WEIGHTS);
114+
write(AttributeSemantic::WEIGHTS);
115115
write(gpu::AttributeType::FLOAT);
116116
write((u8)4);
117117
}

0 commit comments

Comments
 (0)