Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormeta-androcto <meta.androcto1@gmail.com>2016-08-15 03:57:54 +0300
committermeta-androcto <meta.androcto1@gmail.com>2016-08-15 03:57:54 +0300
commitc9056066c6e053f1eda57499738149d53967ce04 (patch)
tree609e07c6993afd86677064d4fc5fdbe8f1f43afa /materials_utils
parent78b3fba23824c412a81229d88125e357e94ff601 (diff)
materials utils: fix save file path as preference
Diffstat (limited to 'materials_utils')
-rw-r--r--materials_utils/__init__.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/materials_utils/__init__.py b/materials_utils/__init__.py
index fb84c4a9..94021dab 100644
--- a/materials_utils/__init__.py
+++ b/materials_utils/__init__.py
@@ -1805,7 +1805,7 @@ class MATERIAL_MT_biconv_help(Menu):
layout.label(text="If possible, avoid multiple conversions in a row")
layout.label(text="Save Your Work Often", icon="ERROR")
use_separator(self, context)
- layout.label(text="Try to link them manually using Mix Color nodes")
+ layout.label(text="Add a Mix Shader & Duplicate Missing Links")
layout.label(text="Only the last Image in the stack gets linked to Shader")
layout.label(text="Current limitation:", icon="MOD_EXPLODE")
use_separator(self, context)
@@ -1952,6 +1952,14 @@ class material_specials_scene_props(PropertyGroup):
class VIEW3D_MT_material_utils_pref(AddonPreferences):
bl_idname = __name__
+ conv_path = StringProperty(
+ name="Save Directory",
+ description=("Path to save images during conversion \n"
+ "Default is the location of the blend file"),
+ default="//",
+ subtype='DIR_PATH',
+ )
+
show_warnings = BoolProperty(
name="Enable Warning messages",
default=False,
@@ -2045,6 +2053,13 @@ class VIEW3D_MT_material_utils_pref(AddonPreferences):
def draw(self, context):
layout = self.layout
+ sc = context.scene
+ box = layout.box()
+ box.label("Save Directory")
+ split = box.split(0.85)
+ split.prop(sc.mat_specials, "conv_path", text="", icon="RENDER_RESULT")
+ split.operator("material.check_converter_path",
+ text="", icon="EXTERNAL_DATA")
box = layout.box()
split = box.split(align=True)