Apply 2 suggestion(s) to 2 file(s)
This commit is contained in:
parent
d2c7fc7811
commit
3f0c3f5370
2 changed files with 5 additions and 5 deletions
|
@ -216,12 +216,12 @@ def unregister():
|
|||
|
||||
def import_template():
|
||||
cwd = os.path.dirname(os.path.realpath(__file__))
|
||||
blendfile = cwd + "\\BitsquidPBR.blend"
|
||||
section = "\\Material\\"
|
||||
blendfile = "BitsquidPBR.blend"
|
||||
section = "Material"
|
||||
object = "Stingray Standard"
|
||||
|
||||
filepath = blendfile + section + object
|
||||
directory = blendfile + section
|
||||
filepath = os.path.join(cwd, blendfile, section, object)
|
||||
directory = os.path.join(cwd, blendfile, section)
|
||||
filename = object
|
||||
|
||||
bpy.ops.wm.append(
|
||||
|
|
|
@ -117,7 +117,7 @@ def save(self, context, material):
|
|||
namespace['emissive'] = nodes["Emissive"].outputs[0].default_value
|
||||
namespace['emissive_intensity'] = nodes["Emissive Intensity"].outputs[0].default_value
|
||||
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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue