diff --git a/data_structure.py b/data_structure.py index f0a58960fe..0804d72668 100755 --- a/data_structure.py +++ b/data_structure.py @@ -36,7 +36,7 @@ tile as np_tile, float64, int32, int64) -from sverchok.utils.logging import info +from sverchok.utils.logging import info, debug DEBUG_MODE = False @@ -1349,7 +1349,7 @@ def changable_sockets(node, inputsocketname, outputsocketname): if not inputsocketname in node.inputs: # - node not initialized in sv_init yet, # - or socketname incorrect - info(f"changable_socket was called on {node.name} with a socket named {inputsocketname}, this socket does not exist") + debug(f"changable_socket was called on {node.name} with a socket named {inputsocketname}, this socket does not exist") return in_socket = node.inputs[inputsocketname] diff --git a/ui/sv_IO_panel.py b/ui/sv_IO_panel.py index b16b0c74a4..eb2aeeda85 100644 --- a/ui/sv_IO_panel.py +++ b/ui/sv_IO_panel.py @@ -284,6 +284,7 @@ class SvNodeTreeExportToGist(bpy.types.Operator): bl_label = "Export to GIST (github account)" selected_only: bpy.props.BoolProperty(name="Selected only", default=False) + compact: bpy.props.BoolProperty(default=True, description="Compact representation of the JSON file") @classmethod def poll(cls, context): @@ -295,12 +296,6 @@ def execute(self, context): return {'CANCELLED'} ng = context.space_data.node_tree - - is_tree_exportable, msg = self.can_be_exported(ng) - if not is_tree_exportable: - self.report({'ERROR'}, msg) - return {'CANCELLED'} - gist_filename = ng.name app_version = bpy.app.version_string.replace(" ", "") @@ -364,6 +359,7 @@ def draw(self, context): col = self.layout.column() # old syntax in <= 2.83 col.use_property_split = True + col.prop(self, 'compact') col.prop(self, 'selected_only')