filename_ext = ".object"
- external_tech = bpy.props.BoolProperty(name="External technique", description="Use an external technique specified in the object's properties", default=True)
-
textures = bpy.props.EnumProperty(name="Textures", description="Export textures", default="REF",
items=(("NONE", "None", "Ignore textures"),
("REF", "Referenced", "Reference external data"),
super().draw(context)
col = self.general_col
- col.prop(self, "external_tech")
col.prop(self, "export_lods")
col.prop(self, "textures")
col.separator()
filename_ext = ".scene"
- external_tech = bpy.props.BoolProperty(name="External techniques", description="Use external techniques specified in objects' properties", default=True)
resource_collection = bpy.props.BoolProperty(name="Resource collection", description="Put resources to a single collection file", default=True)
def create_exporter(self):
self.separate_mesh = False
self.shared_mesh = True
self.separate_tech = False
- self.external_tech = True
self.shared_tech = True
self.export_lods = True
mat = l.material_slots[0].material.name
if mat!=prev_tech[1]:
same_tech = False
- if self.external_tech and l.technique!=prev_tech[0]:
+ if l.technique!=prev_tech[0]:
same_tech = False
if i==0 or not same_tech:
self.export_object_technique(l, mesh, out_file, i)
from .outfile import open_output
path, name = external_name(out_file, ".tech", lod_index)
- if self.external_tech and obj.technique:
+ if obj.technique:
if obj.inherit_tech and material and (obj.override_material or material.texture_slots):
out_file.begin("technique")
out_file.begin("inherit", '"{}"'.format(obj.technique))
class SceneExporter:
def __init__(self):
- self.external_tech = True
self.resource_collection = True
def export(self, context, out_file):
from .export_object import ObjectExporter
object_export = ObjectExporter()
- object_export.external_tech = self.external_tech
object_prototypes = {}
unique_objects = []