forked from bartvdbraak/blender
- slowly starting FBX exporter conversion
- added Bone.matrix and Bone.armature_matrix
This commit is contained in:
parent
ad0b2c87d5
commit
f7438ff77a
3112
release/io/export_fbx.py
Normal file
3112
release/io/export_fbx.py
Normal file
File diff suppressed because it is too large
Load Diff
@ -962,3 +962,4 @@ if __name__ == "__main__":
|
||||
# - NURBS - needs API additions
|
||||
# - all scenes export
|
||||
# - normals calculation
|
||||
# - get rid of cleanName somehow
|
||||
|
@ -609,6 +609,16 @@ static void rna_def_bone(BlenderRNA *brna)
|
||||
prop= RNA_def_property(srna, "selected", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", BONE_SELECTED);
|
||||
RNA_def_property_ui_text(prop, "Selected", "");
|
||||
|
||||
prop= RNA_def_property(srna, "matrix", PROP_FLOAT, PROP_MATRIX);
|
||||
RNA_def_property_float_sdna(prop, NULL, "bone_mat");
|
||||
RNA_def_property_array(prop, 9);
|
||||
RNA_def_property_ui_text(prop, "Bone Matrix", "3x3 bone matrix.");
|
||||
|
||||
prop= RNA_def_property(srna, "armature_matrix", PROP_FLOAT, PROP_MATRIX);
|
||||
RNA_def_property_float_sdna(prop, NULL, "arm_mat");
|
||||
RNA_def_property_array(prop, 16);
|
||||
RNA_def_property_ui_text(prop, "Bone Armature Matrix", "4x4 bone matrix relative to armature.");
|
||||
}
|
||||
|
||||
static void rna_def_edit_bone(BlenderRNA *brna)
|
||||
|
56
source/blender/makesrna/intern/rna_pose_api.c
Normal file
56
source/blender/makesrna/intern/rna_pose_api.c
Normal file
@ -0,0 +1,56 @@
|
||||
/**
|
||||
*
|
||||
*
|
||||
* ***** BEGIN GPL LICENSE BLOCK *****
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software Foundation,
|
||||
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* The Original Code is Copyright (C) 2009 Blender Foundation.
|
||||
* All rights reserved.
|
||||
*
|
||||
*
|
||||
* Contributor(s): Blender Foundation
|
||||
*
|
||||
* ***** END GPL LICENSE BLOCK *****
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "RNA_define.h"
|
||||
#include "RNA_types.h"
|
||||
|
||||
#include "DNA_object_types.h"
|
||||
|
||||
/* #include "BLO_sys_types.h" */
|
||||
|
||||
#ifdef RNA_RUNTIME
|
||||
|
||||
/* #include "DNA_anim_types.h" */
|
||||
#include "DNA_action_types.h" /* bPose */
|
||||
|
||||
#else
|
||||
|
||||
void RNA_api_pose(StructRNA *srna)
|
||||
{
|
||||
FunctionRNA *func;
|
||||
PropertyRNA *parm;
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user