diff options
author | Daniel Salazar <zanqdo@gmail.com> | 2011-05-17 06:50:56 +0400 |
---|---|---|
committer | Daniel Salazar <zanqdo@gmail.com> | 2011-05-17 06:50:56 +0400 |
commit | 50d154eb1ed421fbbe00deea9baa90f05e122f88 (patch) | |
tree | 30abc7fc86a0be126820e06f33eeb738b4c3c640 /io_import_gimp_image_to_scene.py | |
parent | 0d80e4066525ea38b13735dbbe9c8ee9e00f5a37 (diff) |
Update Gimp importer for API changes
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') |