mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Rename class causing unregistering error
This commit is contained in:
@@ -33,7 +33,6 @@ import logging
|
||||
logger = logging.getLogger('sverchok.ifc')
|
||||
from sverchok.ui.nodeview_space_menu import add_node_menu
|
||||
|
||||
|
||||
def nodes_index():
|
||||
return [
|
||||
(
|
||||
@@ -285,12 +284,6 @@ def register():
|
||||
def unregister():
|
||||
global imported_modules
|
||||
for module in reversed(imported_modules):
|
||||
try:
|
||||
module.unregister()
|
||||
except:
|
||||
logger.error(f"Unable to unregister module: {module}")
|
||||
module.unregister()
|
||||
for cls in reversed(CLASSES):
|
||||
try:
|
||||
bpy.utils.unregister_class(cls)
|
||||
except:
|
||||
logger.error(f"Unable to unregister class: {cls}")
|
||||
bpy.utils.unregister_class(cls)
|
||||
|
||||
@@ -23,6 +23,8 @@ import ifcsverchok.helper
|
||||
from bpy.props import StringProperty, EnumProperty
|
||||
from sverchok.node_tree import SverchCustomTreeNode
|
||||
from sverchok.data_structure import updateNode
|
||||
import logging
|
||||
logger = logging.getLogger('sverchok.ifc')
|
||||
|
||||
|
||||
def update_usecase(self, context):
|
||||
@@ -98,8 +100,8 @@ class SvIfcApi(bpy.types.Node, SverchCustomTreeNode, ifcsverchok.helper.SvIfcCor
|
||||
|
||||
|
||||
def register():
|
||||
bpy.utils.register_class(SvIfcTooltip)
|
||||
bpy.utils.register_class(SvIfcApi)
|
||||
bpy.utils.register_class(SvIfcTooltip)
|
||||
|
||||
|
||||
def unregister():
|
||||
|
||||
@@ -26,8 +26,8 @@ from sverchok.data_structure import updateNode
|
||||
import importlib
|
||||
|
||||
|
||||
class SvIfcTooltip(bpy.types.Operator):
|
||||
bl_idname = "node.sv_ifc_tooltip"
|
||||
class SvIfcTooltipWIP(bpy.types.Operator):
|
||||
bl_idname = "node.sv_ifc_tooltipWIP"
|
||||
bl_label = "IFC Info"
|
||||
tooltip: bpy.props.StringProperty()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user