forked from pppalain/blendercam
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pppalain#235 from SpectralVectors/master
Custom Cutter Icons and README updates
- Loading branch information
Showing
12 changed files
with
132 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import os | ||
from pathlib import Path | ||
|
||
import bpy | ||
import bpy.utils.previews | ||
|
||
preview_collections = {} | ||
|
||
|
||
def register(): | ||
icon_images = [ | ||
"EndMillIcon", | ||
"BallnoseIcon", | ||
"VCarveIcon", | ||
"CylinderConeIcon", | ||
"LaserPlasmaIcon", | ||
"BullnoseIcon", | ||
"BallconeIcon", | ||
"FabexCNC_Logo", | ||
] | ||
|
||
fabex_icons = bpy.utils.previews.new() | ||
icons_dir = Path(__file__).parent | ||
for image in icon_images: | ||
fabex_icons.load(image, os.path.join(icons_dir, f"{image}.png"), "IMAGE") | ||
preview_collections["FABEX"] = fabex_icons | ||
|
||
|
||
def unregister(): | ||
|
||
for fabex_icons in preview_collections.values(): | ||
bpy.utils.previews.remove(fabex_icons) | ||
preview_collections.clear() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters