From 63765db7880e4eb7ccb6e3dde0a0986300b26bef Mon Sep 17 00:00:00 2001 From: Philippe Crassous Date: Thu, 6 Aug 2020 11:47:01 +0200 Subject: [PATCH] fix: build packed_file image --- mixer/blender_data/specifics.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mixer/blender_data/specifics.py b/mixer/blender_data/specifics.py index 112f0627..c942b4e5 100644 --- a/mixer/blender_data/specifics.py +++ b/mixer/blender_data/specifics.py @@ -24,9 +24,7 @@ def bpy_data_ctor(collection_name: str, proxy: BpyIDProxy) -> Union[T.ID, None]: image = None if is_packed: name = proxy.data("name") - size = proxy.data("size") - width = size.data(0) - height = size.data(1) + width, height = proxy.data("size") image = collection.new(name, width, height) # remaning attributes will be saved from the received proxy attributes else: