@@ -1936,7 +1936,7 @@ AnimationMixer *AnimationPlayerEditor::fetch_mixer_for_library() const {
19361936 return nullptr ;
19371937 }
19381938 // Does AnimationTree have AnimationPlayer?
1939- if (original_node->derives_from <AnimationTree>( )) {
1939+ if (original_node->is_class ( " AnimationTree " )) {
19401940 AnimationTree *src_tree = Object::cast_to<AnimationTree>(original_node);
19411941 Node *src_player = src_tree->get_node_or_null (src_tree->get_animation_player ());
19421942 if (src_player) {
@@ -2339,7 +2339,7 @@ void AnimationPlayerEditorPlugin::edit(Object *p_object) {
23392339
23402340 AnimationMixer *src_node = Object::cast_to<AnimationMixer>(p_object);
23412341 bool is_dummy = false ;
2342- if (!p_object->derives_from <AnimationPlayer>( )) {
2342+ if (!p_object->is_class ( " AnimationPlayer " )) {
23432343 // If it needs dummy AnimationPlayer, assign original AnimationMixer to LibraryEditor.
23442344 _update_dummy_player (src_node);
23452345
@@ -2409,7 +2409,7 @@ void AnimationPlayerEditorPlugin::_update_dummy_player(AnimationMixer *p_mixer)
24092409}
24102410
24112411bool AnimationPlayerEditorPlugin::handles (Object *p_object) const {
2412- return p_object->derives_from <AnimationPlayer>( ) || p_object->derives_from <AnimationTree>( ) || p_object->derives_from <AnimationMixer>( );
2412+ return p_object->is_class ( " AnimationPlayer " ) || p_object->is_class ( " AnimationTree " ) || p_object->is_class ( " AnimationMixer " );
24132413}
24142414
24152415void AnimationPlayerEditorPlugin::make_visible (bool p_visible) {
@@ -2455,7 +2455,7 @@ AnimationTrackKeyEditEditorPlugin::AnimationTrackKeyEditEditorPlugin() {
24552455}
24562456
24572457bool AnimationTrackKeyEditEditorPlugin::handles (Object *p_object) const {
2458- return p_object->derives_from <AnimationTrackKeyEdit>( );
2458+ return p_object->is_class ( " AnimationTrackKeyEdit " );
24592459}
24602460
24612461bool EditorInspectorPluginAnimationMarkerKeyEdit::can_handle (Object *p_object) {
@@ -2476,5 +2476,5 @@ AnimationMarkerKeyEditEditorPlugin::AnimationMarkerKeyEditEditorPlugin() {
24762476}
24772477
24782478bool AnimationMarkerKeyEditEditorPlugin::handles (Object *p_object) const {
2479- return p_object->derives_from <AnimationMarkerKeyEdit>( );
2479+ return p_object->is_class ( " AnimationMarkerKeyEdit " );
24802480}
0 commit comments