[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [47929] branches/soc-2012-bratwurst/source /blender/assimp/SceneImporter.cpp: - bf_assimp: read the few camera parameters that assimp has builtin.

Alexander Gessler alexander.gessler at gmx.net
Fri Jun 15 02:46:21 CEST 2012


Revision: 47929
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47929
Author:   aramis_acg
Date:     2012-06-15 00:46:19 +0000 (Fri, 15 Jun 2012)
Log Message:
-----------
- bf_assimp: read the few camera parameters that assimp has builtin.

Modified Paths:
--------------
    branches/soc-2012-bratwurst/source/blender/assimp/SceneImporter.cpp

Modified: branches/soc-2012-bratwurst/source/blender/assimp/SceneImporter.cpp
===================================================================
--- branches/soc-2012-bratwurst/source/blender/assimp/SceneImporter.cpp	2012-06-15 00:45:13 UTC (rev 47928)
+++ branches/soc-2012-bratwurst/source/blender/assimp/SceneImporter.cpp	2012-06-15 00:46:19 UTC (rev 47929)
@@ -334,7 +334,11 @@
 		return NULL;
 	}
 
-	// XXX: import camera attributes
+	cam->clipend = camera.mClipPlaneFar;
+	cam->clipsta = camera.mClipPlaneNear;
+	cam->type = CAM_PERSP;
+	cam->dof_ob = 0;
+
 	Camera* const old_cam = static_cast<Camera*>(ob->data);
 
 	ob->data = cam;




More information about the Bf-blender-cvs mailing list