Skip to content

Commit

Permalink
correct a little
Browse files Browse the repository at this point in the history
  • Loading branch information
satabol committed Aug 19, 2023
1 parent c725ceb commit d2103b9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 18 deletions.
6 changes: 3 additions & 3 deletions old_nodes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def register_all():
# when a code of an old node is copied to old folder
# it can be copied with other classes (property groups)
# which does not change it version to MK2, so we have the error
sv_logger.error( (bl_id, e) )
sv_logger.error( e )


def register():
Expand All @@ -141,8 +141,8 @@ def register():


def unregister():
for i, mod in enumerate(imported_mods.values()):
for mod in imported_mods.values():
try:
mod.unregister()
except Exception as e:
sv_logger.error( (mod, e) )
sv_logger.error(e)
2 changes: 0 additions & 2 deletions old_nodes/getprop.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,8 @@ def process(self):
self.outputs[0].sv_set(wrap_output_data(self.obj))

def register():
# bpy.utils.register_class(SvSetPropNode)
bpy.utils.register_class(SvGetPropNode)


def unregister():
# bpy.utils.unregister_class(SvSetPropNode)
bpy.utils.unregister_class(SvGetPropNode)
11 changes: 1 addition & 10 deletions old_nodes/objects_mk3.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class SvOB3BItemOperator(bpy.types.Operator, SvGenericNodeLocator):

bl_idname = "node.sv_ob3b_collection_operator"
bl_label = "generic bladibla"
#bl_options = {'INTERNAL'}

fn_name: StringProperty(default='')
idx: IntProperty()
Expand Down Expand Up @@ -311,12 +310,4 @@ def load_from_json(self, node_data: dict, import_version: float):


classes = [SvOB3BItemOperator, SvOB3BDataCollection, SVOB3B_UL_NamesList, SvOB3Callback, SvObjectsNodeMK3]
#register, unregister = bpy.utils.register_classes_factory(classes)
def register():
for cls in classes:
bpy.utils.register_class(cls)

def unregister():
for cls in reversed(classes):
bpy.utils.unregister_class(cls)

register, unregister = bpy.utils.register_classes_factory(classes)
4 changes: 1 addition & 3 deletions old_nodes/setprop.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@
from mathutils import Matrix, Vector, Euler, Quaternion, Color

from sverchok.node_tree import SverchCustomTreeNode

from sverchok.data_structure import Matrix_generate, updateNode, node_id

from sverchok.old_nodes.getprop import assign_data
from sverchok.old_nodes.getprop import assign_data, get_object, apply_alias, parse_to_path, secondary_type_assesment, types

class SvSetPropNode(SverchCustomTreeNode, bpy.types.Node):
''' Set Property '''
Expand Down

0 comments on commit d2103b9

Please sign in to comment.