from . import STLWriter
def getMetaData():
    return {
        'type': 'mesh_writer',
        'plugin': {
            "name": "STL Writer"
        }
    }

def register(app):
    return STLWriter.STLWriter()

from . import STLWriter
def getMetaData():
    return {
        'type': 'mesh_writer',
        'plugin': {
            "name": "STL Writer"
        },
        'mesh_writer': {
            'extension': 'stl',
            'description': 'STL File'
        }
    }

def register(app):
    return STLWriter.STLWriter()

Add writer metadata to the STL writer plugin so it can be used in Cura
Add writer metadata to the STL writer plugin so it can be used in Cura

  from . import STLWriter
  def getMetaData():
      return {
          'type': 'mesh_writer',
          'plugin': {
              "name": "STL Writer"
+         },
+         'mesh_writer': {
+             'extension': 'stl',
+             'description': 'STL File'
          }
      }
  
  def register(app):
      return STLWriter.STLWriter()
  
Add writer metadata to the STL writer plugin so it can be used in Cura
## Code Before:
from . import STLWriter
def getMetaData():
    return {
        'type': 'mesh_writer',
        'plugin': {
            "name": "STL Writer"
        }
    }

def register(app):
    return STLWriter.STLWriter()

## Instruction:
Add writer metadata to the STL writer plugin so it can be used in Cura
## Code After:
from . import STLWriter
def getMetaData():
    return {
        'type': 'mesh_writer',
        'plugin': {
            "name": "STL Writer"
        },
        'mesh_writer': {
            'extension': 'stl',
            'description': 'STL File'
        }
    }

def register(app):
    return STLWriter.STLWriter()
