Material picker

This commit is contained in:
luboslenco
2019-03-15 00:32:24 +01:00
parent 8c809124af
commit e29df80e85
7 changed files with 60 additions and 21 deletions
+2 -1
View File
@@ -246,11 +246,12 @@ class RenderPathDeferred {
UITrait.inst.roughnessPicked = c.get(1) / 255;
UITrait.inst.metallicPicked = c.get(2) / 255;
// Pick material
if (UITrait.inst.pickMaterial) {
if (UITrait.inst.pickerSelectMaterial) {
var matid = b.get(3);
for (m in UITrait.inst.materials) {
if (m.id == matid) {
UITrait.inst.setMaterial(m);
UITrait.inst.materialIdPicked = matid;
break;
}
}