orange: cleaning up / (msvc) compile fixes to the new editnla functions (experimental / made for baking and AvailRot/Loc keying methods)

This commit is contained in:
2005-12-19 13:41:50 +00:00
parent f5b5bd03b5
commit 20eccd99ab
4 changed files with 8 additions and 2 deletions

View File

@@ -132,6 +132,9 @@ struct bActionChannel *get_action_channel(struct bAction *act, const char *name
*/
struct bActionChannel *verify_action_channel(struct bAction *act, const char *name);
/* baking */
struct bAction *bake_obIPO_to_action(struct Object *ob);
/* exported for game engine */
void blend_poses(struct bPose *dst, struct bPose *src, float srcweight, short mode);
void extract_pose_from_pose(struct bPose *pose, const struct bPose *src);

View File

@@ -54,6 +54,8 @@ void reset_action_strips(int val);
void synchronize_action_strips(void);
void snap_action_strips(void);
/* Baking */
void bake_all_to_action(void);
#endif

View File

@@ -69,6 +69,7 @@
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_utildefines.h"
#include "BKE_object.h" /* for where_is_object in obanim -> action baking */
#include "BIF_butspace.h"
#include "BIF_editaction.h"

View File

@@ -1847,8 +1847,8 @@ static void add_nla_block_by_name(char name[32], Object *ob, short hold, short a
void bake_all_to_action(void)
{
Object *ob;
bAction *newAction=NULL;
Ipo *ipo=NULL;
bAction *newAction;
Ipo *ipo;
ID *id;
short hold, add;
float repeat;