See #1848. Refactor resource data class.

This commit is contained in:
Dion Moult
2023-01-31 18:30:26 +11:00
parent 1066e5e0a7
commit 0fddd243c2
@@ -19,7 +19,6 @@
import bpy
import ifcopenshell.api
from blenderbim.bim.ifc import IfcStore
from ifcopenshell.api.resource.data import Data
import blenderbim.bim.module.pset.data
from blenderbim.bim.prop import StrProperty, Attribute
from bpy.types import PropertyGroup
@@ -53,7 +52,6 @@ def updateResourceName(self, context):
self.file,
**{"resource": self.file.by_id(self.ifc_definition_id), "attributes": {"Name": self.name}},
)
Data.load(IfcStore.get_file())
if props.active_resource_id == self.ifc_definition_id:
attribute = props.resource_attributes.get("Name")
attribute.string_value = self.name