mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 23:20:56 +00:00
remove debug code
This commit is contained in:
@@ -296,7 +296,6 @@ class Loader(bonsai.core.tool.Loader):
|
|||||||
value = texture["RasterCode"]
|
value = texture["RasterCode"]
|
||||||
image_bytes = int(value, 2).to_bytes(len(value) // 8, "big")
|
image_bytes = int(value, 2).to_bytes(len(value) // 8, "big")
|
||||||
pil_image = Image.open(io.BytesIO(image_bytes))
|
pil_image = Image.open(io.BytesIO(image_bytes))
|
||||||
pil_image.save("test_image.png")
|
|
||||||
byte_to_normalized = 1.0 / 255.0
|
byte_to_normalized = 1.0 / 255.0
|
||||||
bpy_image = bpy.data.images.new("blob_texture", width=pil_image.width, height=pil_image.height)
|
bpy_image = bpy.data.images.new("blob_texture", width=pil_image.width, height=pil_image.height)
|
||||||
# PIL returns rows ordered from top to bottom, blender from bottom to top
|
# PIL returns rows ordered from top to bottom, blender from bottom to top
|
||||||
|
|||||||
Reference in New Issue
Block a user