Skip to content

Commit

Permalink
Documentation: Added some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jun 20, 2015
1 parent c35214b commit 84ef3b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doomsday/apps/client/include/render/modelrenderer.h
Expand Up @@ -30,6 +30,9 @@
* The model renderer prepares available model assets for drawing (using ModelDrawable),
* and keeps the set of needed ModelDrawable instances in memory.
*
* ModelRenderer also owns the shaders for rendering models, and maintains the set of GL
* uniforms for rendering models, including transformation and lighting data.
*
* @todo Consider renaming the class: the term "renderer" has the connotation of actually
* performing rendering, while in practice the ModelDrawables will be drawing themselves.
* This is the top-level class responsible for model assets and all their associated
Expand Down
1 change: 1 addition & 0 deletions doomsday/sdk/libcore/src/scriptsys/scriptedinfo.cpp
Expand Up @@ -450,6 +450,7 @@ String ScriptedInfo::absolutePathInContext(Record const &context, String const &
if(context.has(VAR_SOURCE))
{
String src = context[VAR_SOURCE].value<TextValue>();
// Exclude the possible line number following a colon.
int pos = src.lastIndexOf(':');
if(pos < 0) return src / relativePath;
src.truncate(pos);
Expand Down

0 comments on commit 84ef3b6

Please sign in to comment.