2
0
ncannasse 6 жил өмнө
parent
commit
830704e3ba

+ 1 - 1
hide/Ide.hx

@@ -615,7 +615,7 @@ class Ide {
 		var file = path.pop();
 		var c = isWindows ? "\\" : "/";
 		var path = path.join(c);
-		var e = new Element('<input type="file" style="visibility:hidden" value="" nwworkingdir="$path" nwsaveas="$path$c$file"/>');
+		var e = new Element('<input type="file" style="visibility:hidden" value="" nwworkingdir="$path" nwsaveas="$file"/>');
 		e.change(function(_) {
 			var file = makeRelative(e.val());
 			e.remove();

+ 2 - 1
hide/view/Particles3D.hx

@@ -251,7 +251,7 @@ class Particles3D extends FileView {
 						model.playAnimation(anim);
 					} catch( e : Dynamic ) {
 						ide.error(e);
-						props.anim = e;
+						props.anim = null;
 					}
 				}
 				if( model != null ) {
@@ -277,6 +277,7 @@ class Particles3D extends FileView {
 					var anims = scene.listAnims(props.model);
 					new Element('<option value="">-- none --</option>').appendTo(anim);
 					for( a in anims ) {
+						var a = ide.makeRelative(a);
 						var name = scene.animationName(a);
 						new Element('<option value="$a" ${a == prev ? "selected='selected'" : ""}>$name</option>').appendTo(anim);
 					}