Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.
This repository was archived by the owner on May 18, 2019. It is now read-only.

don't repeat meshes - use Linked Duplicates instead #43

@MinnieTheMoocher

Description

@MinnieTheMoocher

Improvement suggestion:

As far as I can see, currently each and every single LDRAW file
gets imported into a Blender scene without creating references.

For example, if a primitive 1-4cyli.dat is used, it is repeated in each
and every instance as a separate mesh.

I think that Blender supports re-use of objects.
I cannot really imagine that it does not.

My suggestion is to search for that feature and modify the loading script
to not repeat and repeat and repeat each mesh, but instead only load it once,
and then in all places where it is used, make a reference to that one instance,
just applying transformation matrix, i.e., rotation and translation and coloring.

This should dramatically reduce the resulting blender scene size,
rendering time, importing time etc.

I cannot really imagine that Blender does not have such a feature...

Also: the already loaded files should be cached inside the importing script.
Currently it seems to me that a file like 1-4cyli.dat gets repeatedly parsed
each time it is used. That's not necessary. It should get read just once,
and its parsed contents saved in some python object.
When the next occurrence of it is met, and it is already parsed,
then the parsed version will be used. This should save a LOT of loading time.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions