mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-02 03:37:13 +02:00
[core] Add support for "3d" semantic
This commit is contained in:
parent
e65dc09710
commit
38e82b926f
1 changed files with 2 additions and 0 deletions
|
@ -1565,6 +1565,8 @@ class BaseNode(BaseObject):
|
||||||
for attr in self._attributes:
|
for attr in self._attributes:
|
||||||
if not attr.enabled or not attr.isOutput:
|
if not attr.enabled or not attr.isOutput:
|
||||||
continue
|
continue
|
||||||
|
if attr.desc.semantic == "3d":
|
||||||
|
return True
|
||||||
# If the attribute is a File attribute, it is an instance of str and can be iterated over
|
# If the attribute is a File attribute, it is an instance of str and can be iterated over
|
||||||
hasSupportedExt = isinstance(attr.value, str) and any(ext in attr.value for ext in supportedExts)
|
hasSupportedExt = isinstance(attr.value, str) and any(ext in attr.value for ext in supportedExts)
|
||||||
if hasSupportedExt:
|
if hasSupportedExt:
|
||||||
|
|
Loading…
Add table
Reference in a new issue