From 318517c1adc953ed1770fe927a0c049ca6f1fe0c Mon Sep 17 00:00:00 2001 From: kevancress Date: Sun, 3 Nov 2019 19:10:16 -0500 Subject: [PATCH] Comment out experimental line texture operator --- measureit_arch_lines.py | 58 ++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/measureit_arch_lines.py b/measureit_arch_lines.py index 31d1aa5..c76dc23 100644 --- a/measureit_arch_lines.py +++ b/measureit_arch_lines.py @@ -546,35 +546,35 @@ def execute(self, context): context.area.tag_redraw() return {'FINISHED'} -class UseLineTexture(Operator): - bl_idname = "measureit_arch.uselinetexture" - bl_label = "Create a Line Texture to Use" - bl_description = "Create a Line Texture to Use" - bl_category = 'MeasureitArch' - tag = IntProperty() - is_style= BoolProperty() - # ------------------------------ - # Execute button action - # ------------------------------ - def execute(self, context): - mainObj = context.object - - if self.is_style is True: - Generator = context.scene.StyleGenerator[0] - else: - Generator = mainObj.LineGenerator[0] - line = Generator.line_groups[self.tag] - - if 'Line Texture' not in bpy.data.textures: - texture = bpy.data.textures.new("Line Texture", type='NONE') - texture.use_nodes = True - nodes = texture.node_tree.nodes - nodes.clear() - node = nodes.new('TextureNodeCurveTime') - node.location = (100,100) - line.useLineTexture = True - - return {'FINISHED'} +# class UseLineTexture(Operator): +# bl_idname = "measureit_arch.uselinetexture" +# bl_label = "Create a Line Texture to Use" +# bl_description = "Create a Line Texture to Use" +# bl_category = 'MeasureitArch' +# tag = IntProperty() +# is_style= BoolProperty() +# # ------------------------------ +# # Execute button action +# # ------------------------------ +# def execute(self, context): +# mainObj = context.object + +# if self.is_style is True: +# Generator = context.scene.StyleGenerator[0] +# else: +# Generator = mainObj.LineGenerator[0] +# line = Generator.line_groups[self.tag] + +# if 'Line Texture' not in bpy.data.textures: +# texture = bpy.data.textures.new("Line Texture", type='NONE') +# texture.use_nodes = True +# nodes = texture.node_tree.nodes +# nodes.clear() +# node = nodes.new('TextureNodeCurveTime') +# node.location = (100,100) +# line.useLineTexture = True + +# return {'FINISHED'} def sLineExists(sLine,a,b): if (sLine.pointA == a and sLine.pointB == b):