Browse Source

- Material inspector now removes references to textures correctly
- Stopped the project frame from referencing the texture being assinged from the resource select menu.

Johnny 9 years ago
parent
commit
b0a91d3416
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Script/AtomicEditor/ui/frames/inspector/MaterialInspector.ts

+ 1 - 2
Script/AtomicEditor/ui/frames/inspector/MaterialInspector.ts

@@ -279,8 +279,6 @@ class MaterialInspector extends ScriptWidget {
             if (texture) {
                 inspector.material.setTexture(textureUnit, texture);
                 textureWidget.texture = inspector.getTextureThumbnail(texture);
-
-                this.sendEvent(EditorEvents.InspectorProjectReference, { "path": texture.getName() });
             }
 
         });
@@ -324,6 +322,7 @@ class MaterialInspector extends ScriptWidget {
 
         if (texture != null && textureWidget != null) {
             textureWidget.setTexture(null);
+            this.material.setTexture(textureUnit, null);
         }
 
     }