Skip to content

Commit

Permalink
Update CustomSupportsCylinder.py
Browse files Browse the repository at this point in the history
Rename catalog
  • Loading branch information
5axes committed Jan 18, 2023
1 parent e727e87 commit 4d9cc2b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CustomSupportsCylinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
os.path.join(os.path.abspath(os.path.dirname(__file__)))
) # Plugin translation file import

i18n_catalog = i18nCatalog("customsupport")
catalog = i18nCatalog("customsupport")

if i18n_catalog.hasTranslationLoaded():
if catalog.hasTranslationLoaded():
Logger.log("i", "Custom Support Cylinder Plugin translation loaded!")


Expand All @@ -123,7 +123,7 @@ def __init__(self):
self._MirrorSupport = False
self._SType = 'cylinder'
self._SubType = 'cross'
self._SMsg = i18n_catalog.i18nc("@message", "Remove All")
self._SMsg = catalog.i18nc("@message", "Remove All")

# Shortcut
if not VERSION_QT5:
Expand Down Expand Up @@ -430,7 +430,7 @@ def _createSupportMesh(self, parent: CuraSceneNode, position: Vector , position2
op.push()
node.setPosition(position, CuraSceneNode.TransformSpace.World)
self._all_picked_node.append(node)
self._SMsg = i18n_catalog.i18nc("@message", "Remove Last")
self._SMsg = catalog.i18nc("@message", "Remove Last")
self.propertyChanged.emit()

CuraApplication.getInstance().getController().getScene().sceneChanged.emit(node)
Expand Down Expand Up @@ -976,7 +976,7 @@ def removeAllSupportMesh(self):
if node_stack.getProperty("support_mesh", "value"):
self._removeSupportMesh(node)
self._all_picked_node = []
self._SMsg = i18n_catalog.i18nc("@message", "Remove All")
self._SMsg = catalog.i18nc("@message", "Remove All")
self.propertyChanged.emit()
else:
for node in DepthFirstIterator(self._application.getController().getScene().getRoot()):
Expand Down

0 comments on commit 4d9cc2b

Please sign in to comment.