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

v2.0.5 still import only 1 mesh #39

Open
corealt044 opened this issue Mar 6, 2021 · 0 comments
Open

v2.0.5 still import only 1 mesh #39

corealt044 opened this issue Mar 6, 2021 · 0 comments

Comments

@corealt044
Copy link

corealt044 commented Mar 6, 2021

Hello, for some reason for me v2.0.5 still only import 1 mesh. I did change the source code and now it works. but I'm wondering if it's save to do that.
I've modified from this;

    if characterArmature != None or characterArmature.type in ["ARMATURE"]:            
        bpy.data.objects[characterArmature.name][armature_key] = armature_key            
        if len(characterArmature.children) > 0:
            for mesh in characterArmature.children: 
                bpy.data.objects[mesh.name][armature_key] = armature_key

into this;

    if characterArmature != None or characterArmature.type in ["ARMATURE"]:
        for mesh in characterArmature.children: 
            bpy.data.objects[mesh.name][armature_key] = armature_key

Will someone tell me if this is fine and won't cause any problem? I'm new to programming and was changing the code just to make that one feature work.

p/s sorry if I shouldn't be posting here, never use this website before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant