From c48d9a96e30d814d8e50ac3c52b0f887b01db1e7 Mon Sep 17 00:00:00 2001 From: Philipp Bokatius Date: Wed, 30 Mar 2022 18:58:03 +0200 Subject: [PATCH] updated for R25 --- .gitignore | 1 + source/disable_materials.cpp | 4 ++-- source/main.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 0634f73..3eeca77 100644 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,6 @@ *.filters *.xcodeproj *.vcxproj +*.xdl64.manifest generated/ \ No newline at end of file diff --git a/source/disable_materials.cpp b/source/disable_materials.cpp index 15c38c9..d95ad8e 100644 --- a/source/disable_materials.cpp +++ b/source/disable_materials.cpp @@ -55,7 +55,7 @@ Bool DisableMaterials::Execute(BaseDocument* doc, GeDialog* parentManager) } Bool DisableMaterials::register_class() { - return RegisterCommandPlugin(ID, "Disable Materials"_s, 0, AutoBitmap("DisableMaterials.tif"_s), "Disable selected materials"_s, NewObjClear(DisableMaterials)); + return RegisterCommandPlugin(ID, "Disable Materials"_s, 0, AutoBitmap("DisableMaterials.tif"_s), "Disable selected materials"_s, NewObj(DisableMaterials).GetPointer()); } void DisableMaterials::disable(BaseTag* tag) @@ -122,7 +122,7 @@ Bool EnableMaterials::Execute(BaseDocument* doc, GeDialog* parentManager) } Bool EnableMaterials::register_class() { - return RegisterCommandPlugin(ID, "Enable Materials"_s, 0, AutoBitmap("EnableMaterials.tif"_s), "Enable selected materials"_s, NewObjClear(EnableMaterials)); + return RegisterCommandPlugin(ID, "Enable Materials"_s, 0, AutoBitmap("EnableMaterials.tif"_s), "Enable selected materials"_s, NewObj(EnableMaterials).GetPointer()); } void EnableMaterials::enable(BaseTag* tag) diff --git a/source/main.cpp b/source/main.cpp index b7da34d..1911069 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -5,7 +5,7 @@ const char* AUTHOR{ "Philipp Bokatius & Henrik S." }; const unsigned MAJOR_VER{ 1 }; -const unsigned MINOR_VER{ 4 }; +const unsigned MINOR_VER{ 5 }; ::Bool PluginStart() {