You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Statically protect Object::cast_to for unrelated Object types.
Fix a handful of bugs associated with it.
This commit is contained in:
@@ -1131,7 +1131,9 @@ void SceneImportSettingsDialog::_animation_slider_value_changed(double p_value)
|
||||
|
||||
void SceneImportSettingsDialog::_skeleton_tree_entered(Skeleton3D *p_skeleton) {
|
||||
bones_mesh_preview->set_skeleton_path(p_skeleton->get_path());
|
||||
bones_mesh_preview->set_skin(p_skeleton->register_skin(p_skeleton->create_skin_from_rest_transforms()));
|
||||
Ref<Skin> skin = p_skeleton->create_skin_from_rest_transforms();
|
||||
p_skeleton->register_skin(skin);
|
||||
bones_mesh_preview->set_skin(skin);
|
||||
}
|
||||
|
||||
void SceneImportSettingsDialog::_animation_finished(const StringName &p_name) {
|
||||
|
||||
Reference in New Issue
Block a user