void AnimationPlayerEditorPlugin::edit(Object *p_object) {

	anim_editor->set_undo_redo(&get_undo_redo());
	if (!p_object)
		return;
	anim_editor->edit(p_object->cast_to<AnimationPlayer>());
}
void ResourcePreloaderEditorPlugin::edit(Object *p_object) {

	preloader_editor->set_undo_redo(&get_undo_redo());
	ResourcePreloader * s = p_object->cast_to<ResourcePreloader>();
	if (!s)
		return;

	preloader_editor->edit(s);
}
Exemplo n.º 3
0
void SpriteFramesEditorPlugin::edit(Object *p_object) {

	frames_editor->set_undo_redo(&get_undo_redo());
	SpriteFrames *s = p_object->cast_to<SpriteFrames>();
	if (!s)
		return;

	frames_editor->edit(s);
}
void SampleLibraryEditorPlugin::edit(Object *p_object) {

    sample_library_editor->set_undo_redo(&get_undo_redo());
    SampleLibrary * s = p_object->cast_to<SampleLibrary>();
    if (!s)
        return;

    sample_library_editor->edit(Ref<SampleLibrary>(s));
}
void ControlEditorPlugin::edit(Object *p_object) {

	control_editor->set_undo_redo(&get_undo_redo());
	control_editor->edit(p_object->cast_to<Control>());
}