Fix T43707: FBX 7.4 Binary Exporter replaces all meshes with the same name when working with linked libraries.
Now take libname (lib namespace) into account when generating ID's name or key...
This commit is contained in:
parent
2f5c0c99b5
commit
17a28df49c
Notes:
blender-bot
2023-02-14 19:58:43 +01:00
Referenced by issue #43707, FBX 7.4 Binary Exporter replaces all meshes with the same name when working with linked libraries.
|
@ -284,18 +284,24 @@ def get_key_from_fbx_uuid(uuid):
|
|||
|
||||
|
||||
# Blender-specific key generators
|
||||
def get_bid_name(bid):
|
||||
if bid.library is not None:
|
||||
return "_L_".join((bid.name, bid.library.name))
|
||||
return bid.name
|
||||
|
||||
|
||||
def get_blenderID_key(bid):
|
||||
if isinstance(bid, Iterable):
|
||||
return "|".join("B" + e.rna_type.name + "#" + e.name for e in bid)
|
||||
return "|".join("B" + e.rna_type.name + "#" + get_bid_name(e) for e in bid)
|
||||
else:
|
||||
return "B" + bid.rna_type.name + "#" + bid.name
|
||||
return "B" + bid.rna_type.name + "#" + get_bid_name(bid)
|
||||
|
||||
|
||||
def get_blenderID_name(bid):
|
||||
if isinstance(bid, Iterable):
|
||||
return "|".join(e.name for e in bid)
|
||||
return "|".join(get_bid_name(e) for e in bid)
|
||||
else:
|
||||
return bid.name
|
||||
return get_bid_name(bid)
|
||||
|
||||
|
||||
def get_blender_empty_key(obj):
|
||||
|
|
Loading…
Reference in New Issue