Merge branch 'improved-material-support-1' of gitlab.com:danreeves/bitsquid-blender-tools into improved-material-support-1
This commit is contained in:
commit
f8f2a955ea
2 changed files with 5 additions and 5 deletions
|
@ -198,12 +198,12 @@ classes = [
|
||||||
|
|
||||||
def import_template():
|
def import_template():
|
||||||
cwd = os.path.dirname(os.path.realpath(__file__))
|
cwd = os.path.dirname(os.path.realpath(__file__))
|
||||||
blendfile = cwd + "\\BitsquidPBR.blend"
|
blendfile = "BitsquidPBR.blend"
|
||||||
section = "\\Material\\"
|
section = "Material"
|
||||||
object = "Stingray Standard"
|
object = "Stingray Standard"
|
||||||
|
|
||||||
filepath = blendfile + section + object
|
filepath = os.path.join(cwd, blendfile, section, object)
|
||||||
directory = blendfile + section
|
directory = os.path.join(cwd, blendfile, section)
|
||||||
filename = object
|
filename = object
|
||||||
|
|
||||||
bpy.ops.wm.append(
|
bpy.ops.wm.append(
|
||||||
|
|
|
@ -117,7 +117,7 @@ def save(self, context, material):
|
||||||
namespace['emissive'] = nodes["Emissive"].outputs[0].default_value
|
namespace['emissive'] = nodes["Emissive"].outputs[0].default_value
|
||||||
namespace['emissive_intensity'] = nodes["Emissive Intensity"].outputs[0].default_value
|
namespace['emissive_intensity'] = nodes["Emissive Intensity"].outputs[0].default_value
|
||||||
except:
|
except:
|
||||||
print("Couldn't find Stingray Standard nodes")
|
self.report({'WARNING'}, "Couldn't find Stingray Standard nodes")
|
||||||
|
|
||||||
content = step.Template(template, strip=False).expand(namespace)
|
content = step.Template(template, strip=False).expand(namespace)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue