mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Minor fix. See #1567.
This commit is contained in:
@@ -290,9 +290,6 @@ class file(object):
|
|||||||
if attrs:
|
if attrs:
|
||||||
self.transaction = transaction
|
self.transaction = transaction
|
||||||
|
|
||||||
if self.transaction:
|
|
||||||
self.transaction.store_create(e)
|
|
||||||
|
|
||||||
# Once the values are populated add the instance
|
# Once the values are populated add the instance
|
||||||
# to the file.
|
# to the file.
|
||||||
self.wrapped_data.add(e.wrapped_data, eid)
|
self.wrapped_data.add(e.wrapped_data, eid)
|
||||||
@@ -302,6 +299,9 @@ class file(object):
|
|||||||
# the owner.
|
# the owner.
|
||||||
e.wrapped_data.this.disown()
|
e.wrapped_data.this.disown()
|
||||||
|
|
||||||
|
if self.transaction:
|
||||||
|
self.transaction.store_create(e)
|
||||||
|
|
||||||
return e
|
return e
|
||||||
|
|
||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
|
|||||||
Reference in New Issue
Block a user