Forráskód Böngészése

materials: fix preview sphere with multiple shaders

lviguier 1 éve
szülő
commit
0ead5acaf0
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      hrt/prefab/Material.hx

+ 3 - 0
hrt/prefab/Material.hx

@@ -63,6 +63,9 @@ class Material extends Prefab {
 		var mats = findFirstLocal3d().getMaterials();
 		var mats = findFirstLocal3d().getMaterials();
 
 
 		#if editor
 		#if editor
+		if (this.previewSphere != null)
+			mats = previewSphere.getMaterials();
+
 		if (!includePreviewMats && mats != null) {
 		if (!includePreviewMats && mats != null) {
 			var idx = mats.length - 1;
 			var idx = mats.length - 1;
 			while (idx >= 0) {
 			while (idx >= 0) {