soc-2008-mxcurioni: first version of lib3ds code. It does NOT work yet and has to be debugged. It can be activate in app_blender/api.cpp by replacing the FRS_scene_3ds_export call in FRS_prepare, by FRS_load_mesh.
All of the reference to the original Material class were renamed to FrsMaterial to resolve a name collision with Blender. To keep the window context necessary to draw the strokes after RE_Database_FromScene has been called, the display_clear function is used.
This commit is contained in:
@@ -190,9 +190,9 @@ PyObject * BPy_ViewShape_from_ViewShape( ViewShape& vs ) {
|
||||
return py_vs;
|
||||
}
|
||||
|
||||
PyObject * BPy_FrsMaterial_from_Material( Material& m ){
|
||||
PyObject * BPy_FrsMaterial_from_FrsMaterial( FrsMaterial& m ){
|
||||
PyObject *py_m = FrsMaterial_Type.tp_new( &FrsMaterial_Type, 0, 0 );
|
||||
((BPy_FrsMaterial*) py_m)->m = new Material( m );
|
||||
((BPy_FrsMaterial*) py_m)->m = new FrsMaterial( m );
|
||||
|
||||
return py_m;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user