Skip to content

Commit

Permalink
Fix enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Aug 21, 2024
1 parent de5f6f1 commit f290eef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ class VoxelInstanceLibraryEditorPlugin;
class VoxelInstanceLibraryInspectorPlugin : public zylann::godot::ZN_EditorInspectorPlugin {
GDCLASS(VoxelInstanceLibraryInspectorPlugin, zylann::godot::ZN_EditorInspectorPlugin)
public:
enum Buttons { //
BUTTON_ADD_MULTIMESH_ITEM,
BUTTON_ADD_SCENE_ITEM,
BUTTON_REMOVE_ITEM
};

Control *icon_provider = nullptr;
VoxelInstanceLibraryEditorPlugin *plugin = nullptr;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void VoxelInstanceLibraryListEditor::on_button_pressed(int button_id) {

void VoxelInstanceLibraryListEditor::on_open_scene_dialog_file_selected(String fpath) {
switch (_last_used_button) {
case VoxelInstanceLibraryInspectorPlugin::BUTTON_ADD_SCENE_ITEM:
case BUTTON_ADD_SCENE_ITEM:
add_scene_item(fpath);
break;

Expand Down

0 comments on commit f290eef

Please sign in to comment.