@@ -62,7 +62,7 @@ class BoneMapperButton : public TextureButton {
62
62
bool selected = false ;
63
63
bool require = false ;
64
64
65
- TextureRect *circle;
65
+ TextureRect *circle = nullptr ;
66
66
67
67
void fetch_textures ();
68
68
@@ -87,8 +87,8 @@ class BoneMapperItem : public VBoxContainer {
87
87
88
88
Ref<BoneMap> bone_map;
89
89
90
- EditorPropertyText *skeleton_bone_selector;
91
- Button *picker_button;
90
+ EditorPropertyText *skeleton_bone_selector = nullptr ;
91
+ Button *picker_button = nullptr ;
92
92
93
93
void _update_property ();
94
94
void _open_picker ();
@@ -135,24 +135,24 @@ class BonePicker : public AcceptDialog {
135
135
class BoneMapper : public VBoxContainer {
136
136
GDCLASS (BoneMapper, VBoxContainer);
137
137
138
- Skeleton3D *skeleton;
138
+ Skeleton3D *skeleton = nullptr ;
139
139
Ref<BoneMap> bone_map;
140
140
141
- EditorPropertyResource *profile_selector;
141
+ EditorPropertyResource *profile_selector = nullptr ;
142
142
143
143
Vector<BoneMapperItem *> bone_mapper_items;
144
144
145
- Button *clear_mapping_button;
145
+ Button *clear_mapping_button = nullptr ;
146
146
147
- VBoxContainer *mapper_item_vbox;
147
+ VBoxContainer *mapper_item_vbox = nullptr ;
148
148
149
149
int current_group_idx = 0 ;
150
150
int current_bone_idx = -1 ;
151
151
152
- AspectRatioContainer *bone_mapper_field;
153
- EditorPropertyEnum *profile_group_selector;
154
- ColorRect *profile_bg;
155
- TextureRect *profile_texture;
152
+ AspectRatioContainer *bone_mapper_field = nullptr ;
153
+ EditorPropertyEnum *profile_group_selector = nullptr ;
154
+ ColorRect *profile_bg = nullptr ;
155
+ TextureRect *profile_texture = nullptr ;
156
156
Vector<BoneMapperButton *> bone_mapper_buttons;
157
157
158
158
void create_editor ();
@@ -201,9 +201,9 @@ class BoneMapper : public VBoxContainer {
201
201
class BoneMapEditor : public VBoxContainer {
202
202
GDCLASS (BoneMapEditor, VBoxContainer);
203
203
204
- Skeleton3D *skeleton;
204
+ Skeleton3D *skeleton = nullptr ;
205
205
Ref<BoneMap> bone_map;
206
- BoneMapper *bone_mapper;
206
+ BoneMapper *bone_mapper = nullptr ;
207
207
208
208
void fetch_objects ();
209
209
void clear_editors ();
@@ -219,7 +219,7 @@ class BoneMapEditor : public VBoxContainer {
219
219
220
220
class EditorInspectorPluginBoneMap : public EditorInspectorPlugin {
221
221
GDCLASS (EditorInspectorPluginBoneMap, EditorInspectorPlugin);
222
- BoneMapEditor *editor;
222
+ BoneMapEditor *editor = nullptr ;
223
223
224
224
public:
225
225
virtual bool can_handle (Object *p_object) override ;
0 commit comments