mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-16 12:49:59 +01:00
New Grid Primitive, new Coloring visitor and some Scene corrections
This commit is contained in:
@@ -230,10 +230,10 @@ void Primitive::replaceShader( Shader *newshader )
|
||||
color = shader_->color;
|
||||
delete shader_;
|
||||
}
|
||||
shader_ = newshader;
|
||||
shader_->iTransform = iTransform;
|
||||
shader_->color = color;
|
||||
}
|
||||
shader_ = newshader;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -268,7 +268,6 @@ void Group::attach(Node *child)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Group::sort()
|
||||
{
|
||||
// reorder list of nodes
|
||||
@@ -338,17 +337,17 @@ NodeSet::iterator Group::end()
|
||||
}
|
||||
|
||||
|
||||
Node *Group::front()
|
||||
Node *Group::front() const
|
||||
{
|
||||
if (!children_.empty())
|
||||
return *children_.rbegin();
|
||||
return *children_.crbegin();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Node *Group::back()
|
||||
Node *Group::back() const
|
||||
{
|
||||
if (!children_.empty())
|
||||
return *children_.begin();
|
||||
return *children_.cbegin();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user