[Bf-extensions-cvs] [c905606] master: materials utils: fix save file path as preference

meta-androcto noreply at git.blender.org
Mon Aug 15 02:58:21 CEST 2016


Commit: c9056066c6e053f1eda57499738149d53967ce04
Author: meta-androcto
Date:   Mon Aug 15 10:57:54 2016 +1000
Branches: master
https://developer.blender.org/rBAc9056066c6e053f1eda57499738149d53967ce04

materials utils: fix save file path as preference

===================================================================

M	materials_utils/__init__.py

===================================================================

diff --git a/materials_utils/__init__.py b/materials_utils/__init__.py
index fb84c4a..94021da 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)



More information about the Bf-extensions-cvs mailing list