1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-28 04:17:39 +00:00

rotate immediately when editing models::rotation

This commit is contained in:
Zeno Rogue
2023-08-14 17:42:15 +02:00
parent 757579fb18
commit dff8db44b0
2 changed files with 4 additions and 0 deletions

View File

@@ -1157,6 +1157,7 @@ EX namespace dialog {
ne.reaction = [re, this] { *edit_matrix = spin(angle * degree); if(re) re(); };
ne.reaction_final = reaction;
ne.animatable = false;
ne.dialogflags |= dialogflags;
});
}
if(dim == 3) {
@@ -1172,6 +1173,7 @@ EX namespace dialog {
ne.reaction = [re, i, j, this, cur] { *edit_matrix = cspin(i, j, angle * degree) * cur; if(re) re(); };
ne.reaction_final = reaction;
ne.animatable = false;
ne.dialogflags |= dialogflags;
});
};
rot_but(0, 1, "rotate in XY", 'z');
@@ -1204,6 +1206,7 @@ EX namespace dialog {
}
catch(hr_parse_exception&) { }
};
dialog::get_di().dialogflags |= dialogflags;
});
if(extra_options) extra_options();
addBack();