Skip to content
Snippets Groups Projects
Commit 50d154eb authored by Daniel Salazar's avatar Daniel Salazar
Browse files

Update Gimp importer for API changes

parent 0d80e406
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment