also small optimization in MaterialCreator.create to address ifc a couple times less
This commit is contained in:
Andrej730
2024-09-07 10:55:16 +05:00
parent 13ed4d3a6c
commit e87faa167c
5 changed files with 23 additions and 14 deletions
@@ -16,6 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
import ifcopenshell
from typing import Any
def assign_representation_styles(
@@ -112,6 +113,10 @@ def assign_representation_styles(
class Usecase:
file: ifcopenshell.file
settings: dict[str, Any]
results: list[ifcopenshell.entity_instance]
def execute(self):
if not self.settings["styles"]:
return []