remove trailing whitespace
This commit is contained in:
+19
-19
@@ -49,36 +49,36 @@ class Skeleton : public Spatial {
|
||||
bool disable_rest;
|
||||
Transform rest;
|
||||
Transform rest_global_inverse;
|
||||
|
||||
|
||||
Transform pose;
|
||||
Transform pose_global;
|
||||
|
||||
bool custom_pose_enable;
|
||||
Transform custom_pose;
|
||||
|
||||
|
||||
List<uint32_t> nodes_bound;
|
||||
|
||||
|
||||
Bone() { parent=-1; enabled=true; custom_pose_enable=false; disable_rest=false; }
|
||||
};
|
||||
|
||||
bool rest_global_inverse_dirty;
|
||||
|
||||
Vector<Bone> bones;
|
||||
|
||||
|
||||
RID skeleton;
|
||||
|
||||
|
||||
void _make_dirty();
|
||||
bool dirty;
|
||||
|
||||
|
||||
//bind helpers
|
||||
Array _get_bound_child_nodes_to_bone(int p_bone) const {
|
||||
|
||||
|
||||
Array bound;
|
||||
List<Node*> childs;
|
||||
get_bound_child_nodes_to_bone(p_bone,&childs);
|
||||
|
||||
|
||||
for (int i=0;i<childs.size();i++) {
|
||||
|
||||
|
||||
bound.push_back( childs[i] );
|
||||
}
|
||||
return bound;
|
||||
@@ -93,11 +93,11 @@ protected:
|
||||
void _get_property_list( List<PropertyInfo>* p_list ) const;
|
||||
void _notification(int p_what);
|
||||
static void _bind_methods();
|
||||
|
||||
|
||||
public:
|
||||
|
||||
enum {
|
||||
|
||||
|
||||
NOTIFICATION_UPDATE_SKELETON=50
|
||||
};
|
||||
|
||||
@@ -108,7 +108,7 @@ public:
|
||||
void add_bone(const String&p_name);
|
||||
int find_bone(String p_name) const;
|
||||
String get_bone_name(int p_bone) const;
|
||||
|
||||
|
||||
void set_bone_parent(int p_bone, int p_parent);
|
||||
int get_bone_parent(int p_bone) const;
|
||||
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
bool is_bone_rest_disabled(int p_bone) const;
|
||||
|
||||
int get_bone_count() const;
|
||||
|
||||
|
||||
void set_bone_rest(int p_bone, const Transform& p_rest);
|
||||
Transform get_bone_rest(int p_bone) const;
|
||||
Transform get_bone_transform(int p_bone) const;
|
||||
@@ -128,15 +128,15 @@ public:
|
||||
|
||||
void set_bone_enabled(int p_bone, bool p_enabled);
|
||||
bool is_bone_enabled(int p_bone) const;
|
||||
|
||||
|
||||
void bind_child_node_to_bone(int p_bone,Node *p_node);
|
||||
void unbind_child_node_from_bone(int p_bone,Node *p_node);
|
||||
void get_bound_child_nodes_to_bone(int p_bone,List<Node*> *p_bound) const;
|
||||
|
||||
|
||||
void clear_bones();
|
||||
|
||||
|
||||
// posing api
|
||||
|
||||
|
||||
void set_bone_pose(int p_bone, const Transform& p_pose);
|
||||
Transform get_bone_pose(int p_bone) const;
|
||||
|
||||
@@ -144,8 +144,8 @@ public:
|
||||
Transform get_bone_custom_pose(int p_bone) const;
|
||||
|
||||
void localize_rests(); // used for loaders and tools
|
||||
|
||||
Skeleton();
|
||||
|
||||
Skeleton();
|
||||
~Skeleton();
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user