2
0
David Rose 17 жил өмнө
parent
commit
05917ee0b4

+ 8 - 4
panda/src/tinydisplay/tinyOsxGraphicsWindow.mm

@@ -545,10 +545,14 @@ bool TinyOsxGraphicsWindow::set_icon_filename(const Filename &icon_filename)
 
   Filename icon_pathname = icon_filename;
   if (!vfs->resolve_filename(icon_pathname, get_model_path())) {
-    // The filename doesn't exist.
-    tinydisplay_cat.warning()
-      << "Could not find icon filename " << icon_filename << "\n";
-    return false;
+    // The filename doesn't exist along the search path.
+    if (icon_pathname.is_fully_qualified() && vfs->exists(icon_pathname)) {
+      // But it does exist locally, so accept it.
+    } else {
+      tinydisplay_cat.warning()
+        << "Could not find icon filename " << icon_filename << "\n";
+      return false;
+    }
   }