|
@@ -26,7 +26,8 @@ from bpy.props import (
|
|
|
EnumProperty,
|
|
|
BoolProperty,
|
|
|
FloatProperty,
|
|
|
- IntProperty
|
|
|
+ IntProperty,
|
|
|
+ StringProperty
|
|
|
)
|
|
|
|
|
|
from . import constants
|
|
@@ -295,6 +296,7 @@ def save_settings_export(properties):
|
|
|
constants.COMPRESSION: properties.option_compression,
|
|
|
constants.INDENT: properties.option_indent,
|
|
|
constants.COPY_TEXTURES: properties.option_copy_textures,
|
|
|
+ constants.TEXTURE_FOLDER: properties.option_texture_folder,
|
|
|
|
|
|
constants.SCENE: properties.option_export_scene,
|
|
|
#constants.EMBED_GEOMETRY: properties.option_embed_geometry,
|
|
@@ -420,6 +422,10 @@ def restore_settings_export(properties):
|
|
|
constants.COPY_TEXTURES,
|
|
|
constants.EXPORT_OPTIONS[constants.COPY_TEXTURES])
|
|
|
|
|
|
+ properties.option_texture_folder = settings.get(
|
|
|
+ constants.TEXTURE_FOLDER,
|
|
|
+ constants.EXPORT_OPTIONS[constants.TEXTURE_FOLDER])
|
|
|
+
|
|
|
properties.option_embed_animation = settings.get(
|
|
|
constants.EMBED_ANIMATION,
|
|
|
constants.EXPORT_OPTIONS[constants.EMBED_ANIMATION])
|
|
@@ -617,6 +623,9 @@ class ExportThree(bpy.types.Operator, ExportHelper):
|
|
|
description="Copy textures",
|
|
|
default=constants.EXPORT_OPTIONS[constants.COPY_TEXTURES])
|
|
|
|
|
|
+ option_texture_folder = StringProperty(name="Texture folder",
|
|
|
+ description="add this folder to textures path", default="")
|
|
|
+
|
|
|
option_lights = BoolProperty(
|
|
|
name="Lights",
|
|
|
description="Export default scene lights",
|
|
@@ -812,6 +821,9 @@ class ExportThree(bpy.types.Operator, ExportHelper):
|
|
|
row = layout.row()
|
|
|
row.prop(self.properties, 'option_copy_textures')
|
|
|
|
|
|
+ row = layout.row()
|
|
|
+ row.prop(self.properties, "option_texture_folder")
|
|
|
+
|
|
|
row = layout.row()
|
|
|
row.prop(self.properties, 'option_scale')
|
|
|
|