Fix material data ref

This commit is contained in:
luboslenco
2019-06-30 18:43:08 +02:00
parent 53c0168dcc
commit e64537adcf
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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();
+1 -2
View File
@@ -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 {