Fix material data ref
This commit is contained in:
@@ -191,7 +191,7 @@ class ImportBlend {
|
||||
|
||||
for (mat in mats) {
|
||||
// Material slot
|
||||
Context.material = new MaterialSlot();
|
||||
Context.material = new MaterialSlot(Project.materials[0].data);
|
||||
Project.materials.push(Context.material);
|
||||
UINodes.inst.updateCanvasMap();
|
||||
var nodes = UINodes.inst.nodes;
|
||||
|
||||
@@ -97,7 +97,7 @@ class ImportFolder {
|
||||
});
|
||||
}
|
||||
else {
|
||||
Context.material = new MaterialSlot();
|
||||
Context.material = new MaterialSlot(Project.materials[0].data);
|
||||
Project.materials.push(Context.material);
|
||||
}
|
||||
UINodes.inst.updateCanvasMap();
|
||||
|
||||
@@ -71,8 +71,7 @@ class Path {
|
||||
public static function checkOpacTex(p:String):Bool {
|
||||
return p.endsWith("_opac") ||
|
||||
p.endsWith("_alpha") ||
|
||||
p.endsWith("_opacity") ||
|
||||
p.endsWith("_mask");
|
||||
p.endsWith("_opacity");
|
||||
}
|
||||
|
||||
public static function checkNorTex(p:String):Bool {
|
||||
|
||||
Reference in New Issue
Block a user