EpicGamesExt / BlenderTools

Blender addons that improve the game development workflow between Blender and Unreal.
https://epicgamesext.github.io/BlenderTools/
MIT License
2.76k stars 47 forks source link

Do not create multiple skeletons for meshes that use one armature #412

Open keeborgue opened 2 years ago

keeborgue commented 2 years ago

if you make a number of separate meshes, assign vertex groups and apply aramture modifier, then ue will create multiple skeleton assets for them, instead of a single one.

Example:

This is quite important when making composite objects like guns or animated procedural mechanical objects

james-baber commented 2 years ago

@truepak if a skeleton exists in your project you can import meshes onto it. skeleton asset unreal

keeborgue commented 2 years ago

@truepak if a skeleton exists in your project you can import meshes onto it. skeleton asset unreal

The skeleton does not exist. File contains multiple armature objects:

adding armature modifier does nothing (as armature and objects have the same origin)

I have attached the .blend file so you may try. File is located at "/Game/Project/" location (according to blender) Hands.zip

blender version is 3.0.0 uneral 5 preview 2

keeborgue commented 2 years ago

Actually, as I have removed the armature modifier, it now gives me the following error: image

keeborgue commented 2 years ago

Actually, as I have removed the armature modifier, it now gives me the following error: image

As far as I can tell, with the "use collection as folders" option, this makes the armatures unusable, because it is, for some reason, adds "export" folder to the path. Static meshes export fine.

james-baber commented 2 years ago

Hmm yea so that needs to be fixed. Can you save a blend file in this state so that it will produce this error and upload it here? Thanks!

keeborgue commented 2 years ago

Hmm yea so that needs to be fixed. Can you save a blend file in this state so that it will produce this error and upload it here? Thanks!

I have already attached file to this comment. Hope this helps!