diff options
Diffstat (limited to 'io_import_gimp_image_to_scene.py')
-rw-r--r-- | io_import_gimp_image_to_scene.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/io_import_gimp_image_to_scene.py b/io_import_gimp_image_to_scene.py index b141975b..f9e4b7eb 100644 --- a/io_import_gimp_image_to_scene.py +++ b/io_import_gimp_image_to_scene.py @@ -293,7 +293,8 @@ def main(File, Path, LayerViewers, MixerViewers, LayerOffset,\ enter_editmode=False,\ rotation=(0, 0, pi)) - bpy.ops.object.rotation_apply() + bpy.ops.object.transform_apply(location=False, rotation=True, scale=False) + Active = bpy.context.active_object @@ -310,7 +311,7 @@ def main(File, Path, LayerViewers, MixerViewers, LayerOffset,\ Active.dimensions = float(Coords[0])*LayerScale, float(Coords[1])*LayerScale, 0 - bpy.ops.object.scale_apply() + bpy.ops.object.transform_apply(location=False, rotation=False, scale=True) bpy.ops.object.origin_set(type='ORIGIN_GEOMETRY', center='MEDIAN') |