change <marker><[xyz]> to <marker><[xyz]-m> (for consistency with the
animation syntax, and to make tutorials noisier and harder to read :-)
This commit is contained in:
parent
706483bc27
commit
b47f8f439d
2 changed files with 5 additions and 5 deletions
|
@ -146,7 +146,6 @@ var startTutorial = func {
|
|||
init_nasal();
|
||||
|
||||
STEP_INTERVAL = delay(tutorial, STEP_INTERVAL);
|
||||
set_marker(tutorial);
|
||||
run_nasal(tutorial);
|
||||
set_models(tutorial.getNode("models"));
|
||||
|
||||
|
@ -392,9 +391,9 @@ var set_marker = func(node = nil) {
|
|||
if (loc != nil) {
|
||||
var s = loc.getNode("scale");
|
||||
marker.setValues({
|
||||
"x/value": loc.getNode("x", 1).getValue(),
|
||||
"y/value": loc.getNode("y", 1).getValue(),
|
||||
"z/value": loc.getNode("z", 1).getValue(),
|
||||
"x/value": loc.getNode("x-m", 1).getValue(),
|
||||
"y/value": loc.getNode("y-m", 1).getValue(),
|
||||
"z/value": loc.getNode("z-m", 1).getValue(),
|
||||
"scale/value": s != nil ? s.getValue() : 1,
|
||||
"arrow-enabled": 1,
|
||||
});
|
||||
|
|
|
@ -110,7 +110,8 @@
|
|||
var dump = func {
|
||||
print("<marker>");
|
||||
foreach (var v; values) {
|
||||
print(sprintf(" <%s>%.4f</%s>", v.name, v.valueN.getValue(), v.name));
|
||||
var tag = v.name == "scale" ? "scale" : v.name ~ "-m";
|
||||
print(sprintf(" <%s>%.4f</%s>", tag, v.valueN.getValue(), tag));
|
||||
}
|
||||
print("</marker>");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue