[Bf-blender-cvs] [83adce7] alembic_basic_io: Cleanup: remove unneeded 3d cursor position changes.

Kévin Dietrich noreply at git.blender.org
Mon Apr 11 23:48:00 CEST 2016


Commit: 83adce7e5eeb6dee923e6beb34ad3c0c90d7e70a
Author: Kévin Dietrich
Date:   Fri Apr 8 16:29:57 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rB83adce7e5eeb6dee923e6beb34ad3c0c90d7e70a

Cleanup: remove unneeded 3d cursor position changes.

===================================================================

M	source/blender/editors/io/io_alembic.c

===================================================================

diff --git a/source/blender/editors/io/io_alembic.c b/source/blender/editors/io/io_alembic.c
index 86c6433..48d429f 100644
--- a/source/blender/editors/io/io_alembic.c
+++ b/source/blender/editors/io/io_alembic.c
@@ -329,10 +329,6 @@ static int wm_alembic_import_exec(bContext *C, wmOperator *op)
 
 	Scene *scene = CTX_data_scene(C);
 
-	/* TODO: handle cursor */
-	float cursor_location[3];
-	copy_v3_v3(cursor_location, scene->cursor);
-
 	char filename[FILE_MAX];
 	RNA_string_get(op->ptr, "filepath", filename);
 
@@ -341,9 +337,6 @@ static int wm_alembic_import_exec(bContext *C, wmOperator *op)
 
 	ABC_import(C, filename, from_forward, from_up);
 
-	/* restore cursor */
-	copy_v3_v3(scene->cursor, cursor_location);
-
 	return OPERATOR_FINISHED;
 }




More information about the Bf-blender-cvs mailing list