Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added message class for meshsetc when creating archives #6098

Merged
merged 1 commit into from Oct 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -69,6 +69,7 @@
import com.dynamo.render.proto.Font.FontMap;
import com.dynamo.rig.proto.Rig.MeshSet;
import com.dynamo.rig.proto.Rig.Skeleton;
import com.dynamo.rig.proto.Rig.RigScene;

import com.google.protobuf.DescriptorProtos.FieldOptions;
import com.google.protobuf.Descriptors.FieldDescriptor;
Expand Down Expand Up @@ -103,6 +104,7 @@ public Task<Void> create(IResource input) throws IOException, CompileExceptionEr
ProtoBuilder.addMessageClass(".meshc", MeshDesc.class);
ProtoBuilder.addMessageClass(".meshsetc", MeshSet.class);
ProtoBuilder.addMessageClass(".modelc", Model.class);
ProtoBuilder.addMessageClass(".rigscenec", RigScene.class);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For each output resource type, which wish to register the message class, if we wish to parse it further. In this case we do, since the rig scene refers to e.g. the mesh set resource.

ProtoBuilder.addMessageClass(".skeletonc", Skeleton.class);
ProtoBuilder.addMessageClass(".texturesetc", TextureSet.class);

Expand Down