|
@@ -12,8 +12,8 @@ class SampleApp extends hxd.App {
|
|
#if hxbit
|
|
#if hxbit
|
|
override function mainLoop() {
|
|
override function mainLoop() {
|
|
if( hxd.Key.isDown(hxd.Key.CTRL) && hxd.Key.isPressed("S".code) ) {
|
|
if( hxd.Key.isDown(hxd.Key.CTRL) && hxd.Key.isPressed("S".code) ) {
|
|
- var bytes = new h3d.impl.Serializable.SceneSerializer().saveSCN(s3d,false);
|
|
|
|
- hxd.File.saveBytes("scene.scn", bytes);
|
|
|
|
|
|
+ var bytes = new h3d.impl.Serializable.SceneSerializer().saveHSD(s3d,false);
|
|
|
|
+ hxd.File.saveBytes("scene.hsd", bytes);
|
|
}
|
|
}
|
|
super.mainLoop();
|
|
super.mainLoop();
|
|
}
|
|
}
|
|
@@ -107,4 +107,4 @@ class SampleApp extends hxd.App {
|
|
return tf;
|
|
return tf;
|
|
}
|
|
}
|
|
|
|
|
|
-}
|
|
|
|
|
|
+}
|