mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 08:13:14 +00:00
Fix #1908. Extracting elements using IfcPatch now includes all properties.
This commit is contained in:
@@ -120,7 +120,6 @@ class IfcHeaderExtractor:
|
||||
line = next(ifc_file)
|
||||
if isinstance(line, bytes):
|
||||
line = line.decode("utf-8")
|
||||
print(line)
|
||||
if line.startswith("FILE_DESCRIPTION"):
|
||||
for i, part in enumerate(line.split("'")):
|
||||
if i == 1:
|
||||
|
||||
@@ -128,6 +128,9 @@ class RunMigratePatch(bpy.types.Operator):
|
||||
|
||||
def execute(self, context):
|
||||
core.run_migrate_patch(tool.Patch, infile=self.infile, outfile=self.outfile, schema=self.schema)
|
||||
bpy.ops.file.refresh()
|
||||
try:
|
||||
bpy.ops.file.refresh()
|
||||
except:
|
||||
pass # Probably running in headless mode
|
||||
blenderbim.bim.handler.refresh_ui_data()
|
||||
return {"FINISHED"}
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import blenderbim.core.owner as subject
|
||||
import blenderbim.core.patch as subject
|
||||
from test.core.bootstrap import patch
|
||||
|
||||
|
||||
class TestRunMigratePatch:
|
||||
def test_run(self, patch):
|
||||
patch.run_migrate_patch("infile", "outfile", "schema").should_be_called()
|
||||
assert subject.run_migrate_patch(patch, infile="infile", outfile="outfile", schema="schema")
|
||||
subject.run_migrate_patch(patch, infile="infile", outfile="outfile", schema="schema")
|
||||
|
||||
Reference in New Issue
Block a user