Skip to content

Commit b27e5fc

Browse files
committed
SceneGraph::save(), SceneGraph::load_object() take "filename" instead
of "value" as an argument.
1 parent 7d75726 commit b27e5fc

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

src/lib/OGF/scene_graph/skin/application_base.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ namespace OGF {
212212
Object* scene_graph = interpreter()->resolve_object("scene_graph");
213213
if(scene_graph != nullptr) {
214214
ArgList args;
215-
args.create_arg("value",filename);
215+
args.create_arg("filename",filename);
216216
scene_graph->invoke_method("save", args);
217217
}
218218
}
@@ -231,7 +231,7 @@ namespace OGF {
231231
if(scene_graph != nullptr) {
232232
ArgList args;
233233
scene_graph->invoke_method("clear",args);
234-
args.create_arg("value",filename);
234+
args.create_arg("filename",filename);
235235
scene_graph->invoke_method("load_object", args);
236236
}
237237
}

src/lib/OGF/scene_graph/skin/application_base.h

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,15 +367,24 @@ namespace OGF {
367367

368368
/**
369369
* \brief Saves Graphite state to a file.
370+
* \param[in] filename a filename with or without path with .graphite
371+
* extension.
372+
* \details The Graphite state contains all the objects of the
373+
* scene graph, their graphic attributes, the command-line parameters,
374+
* the placement of the windows and the command history.
370375
*/
371376
virtual void save_state_to_file(const std::string& filename);
372377

373378
/**
374-
* \brief Saves Graphite state to a file.
379+
* \brief Loads Graphite state from a file.
380+
* \param[in] filename a filename with or without path with .graphite
381+
* extension.
382+
* \details The Graphite state contains all the objects of the
383+
* scene graph, their graphic attributes, the command-line parameters,
384+
* the placement of the windows and the command history.
375385
*/
376386
virtual void load_state_from_file(const std::string& filename);
377387

378-
379388
/**
380389
* \brief Gets the file name to be used to store a state buffer.
381390
* \details Used by undo() / redo(). State buffers are stored

0 commit comments

Comments
 (0)